aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2012-06-12 09:55:32 -0700
committerAdam Vandenberg2012-06-12 20:19:18 -0700
commit906e962250217537dfdcf126e6fa8af40d9c62db (patch)
tree63fe0b966922d4ef9cc3a31f8116a866dc81b09e
parent7e9b9ddf7bda8d407c9c0c5f74b14af592748e4c (diff)
downloadhomebrew-906e962250217537dfdcf126e6fa8af40d9c62db.tar.bz2
ushare: fails with clang
-rw-r--r--Library/Formula/ushare.rb16
1 files changed, 11 insertions, 5 deletions
diff --git a/Library/Formula/ushare.rb b/Library/Formula/ushare.rb
index a8e319fdf..fd1723f56 100644
--- a/Library/Formula/ushare.rb
+++ b/Library/Formula/ushare.rb
@@ -3,24 +3,30 @@ require 'formula'
class Ushare < Formula
homepage 'http://ushare.geexbox.org/'
url 'http://ushare.geexbox.org/releases/ushare-1.1a.tar.bz2'
- md5 '5bbcdbf1ff85a9710fa3d4e82ccaa251'
+ sha1 '1539e83cde5d80f433d262d971f5fe78486c9375'
+ depends_on 'pkg-config' => :build
depends_on 'gettext'
depends_on 'libupnp'
depends_on 'libdlna'
# Correct "OPTFLAGS" to "CFLAGS"
def patches
- { :p0 =>
- "https://trac.macports.org/export/89267/trunk/dports/net/ushare/files/patch-configure.diff"
- }
+ { :p0 =>
+ "https://trac.macports.org/export/89267/trunk/dports/net/ushare/files/patch-configure.diff"
+ }
+ end
+
+ fails_with :clang do
+ cause "clang removes inline functions, causing a link error:\n" +
+ "\"_display_headers\", referenced from: _parse_command_line in cfgparser.o"
end
def install
# Need to explicitly add intl and gettext here.
gettext = Formula.factory("gettext")
- ENV.append 'LDFLAGS', "-lintl"
ENV.append 'CFLAGS', "-I#{gettext.include}"
+ ENV.append 'LDFLAGS', "-lintl"
inreplace 'configure', /config.h/, 'src/config.h'
system "./configure", "--disable-debug",