homebrew-core/Formula/gupnp.rb
Jack Nagel 87c91d094d Prefer ftp.gnome.org over download.gnome.org
download.gnome.org is served over SSL, but the download itself is not.
See: https://github.com/Homebrew/homebrew/pull/28026#issuecomment-39210557
2014-05-13 16:41:58 -05:00

47 lines
1.4 KiB
Ruby

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.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"
# Per MacPorts, fix compilation with clang
patch :DATA
def install
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);
}