aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2014-05-11 09:21:35 -0700
committerAdam Vandenberg2014-05-11 13:24:30 -0700
commit2e9bcf9800bcf972f37d963cd4a04013af0cb812 (patch)
treeb650ecc3320fd6c54bb86f791cc34028f6a9ab46 /Library/Formula
parent61d8a8e029079ca1922df735683c2b5eb6a39db1 (diff)
downloadhomebrew-2e9bcf9800bcf972f37d963cd4a04013af0cb812.tar.bz2
gupnp 0.20.11
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gupnp.rb49
1 files changed, 38 insertions, 11 deletions
diff --git a/Library/Formula/gupnp.rb b/Library/Formula/gupnp.rb
index 076f13139..bf4a3124c 100644
--- a/Library/Formula/gupnp.rb
+++ b/Library/Formula/gupnp.rb
@@ -1,20 +1,47 @@
-require 'formula'
+require "formula"
class Gupnp < Formula
- homepage 'https://wiki.gnome.org/GUPnP/'
- url 'http://ftp.gnome.org/pub/GNOME/sources/gupnp/0.20/gupnp-0.20.3.tar.xz'
- sha256 'ed7db7506506434d0fd272e3866d7ae985af5b9d7e9e5e120f8581ade90869f0'
+ homepage "https://wiki.gnome.org/GUPnP/"
+ url "https://download.gnome.org/sources/gupnp/0.20/gupnp-0.20.11.tar.xz"
+ sha1 "df8fd34bc50a567610899e071e0fa724188ebcfd"
- depends_on 'pkg-config' => :build
- depends_on 'intltool' => :build
- depends_on 'gettext'
- depends_on 'glib'
- depends_on 'libsoup'
- depends_on 'gssdp'
+ 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
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
+ "--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
end
+
+__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);
+ }