homebrew-core/Formula/gupnp.rb

48 lines
1.4 KiB
Ruby
Raw Normal View History

2014-05-11 16:21:35 +00:00
require "formula"
class Gupnp < Formula
2014-05-11 16:21:35 +00:00
homepage "https://wiki.gnome.org/GUPnP/"
url "http://ftp.gnome.org/pub/gnome/sources/gupnp/0.20/gupnp-0.20.11.tar.xz"
2014-05-11 16:21:35 +00:00
sha1 "df8fd34bc50a567610899e071e0fa724188ebcfd"
2014-05-11 16:21:35 +00:00
depends_on "pkg-config" => :build
depends_on "intltool" => :build
depends_on "gettext"
depends_on "glib"
depends_on "libsoup"
depends_on "gssdp"
# Per MacPorts, fix compilation with clang
patch :DATA
def install
2014-05-11 16:21:35 +00:00
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
end
2014-05-11 16:21:35 +00:00
__END__
--- a/libgupnp/gupnp-acl.c.orig 2014-05-04 07:46:07.000000000 -0700
+++ b/libgupnp/gupnp-acl.c 2014-05-04 07:48:56.000000000 -0700
@@ -129,7 +129,7 @@
GAsyncResult *res,
GError **error)
{
- g_return_if_fail (GUPNP_IS_ACL (self));
+ g_return_val_if_fail (GUPNP_IS_ACL (self), 0);
return GUPNP_ACL_GET_INTERFACE (self)->is_allowed_finish (self,
res,
@@ -149,7 +149,7 @@
gboolean
gupnp_acl_can_sync (GUPnPAcl *self)
{
- g_return_if_fail (GUPNP_IS_ACL (self));
+ g_return_val_if_fail (GUPNP_IS_ACL (self), 0);
return GUPNP_ACL_GET_INTERFACE (self)->can_sync (self);
}