aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-02-01 16:01:50 -0600
committerMisty De Meo2013-02-01 16:04:37 -0600
commit6345f023fdaa3a3c3d05efcf1d0eb351b701619a (patch)
treeaf1b9eea2b710f45b17b225c998d33938b2a86df /Library
parenta0ee86d90631ddcf7829a4242fcd54b222d58a92 (diff)
downloadhomebrew-6345f023fdaa3a3c3d05efcf1d0eb351b701619a.tar.bz2
abiword: fails_with :clang, update patches
* Devel patches no longer apply; seems to need none * Add a libpng patch, required on all OS X versions * fails with clang; need to test on 425 Fixes #17513.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/abiword.rb18
1 files changed, 12 insertions, 6 deletions
diff --git a/Library/Formula/abiword.rb b/Library/Formula/abiword.rb
index c62d5f988..94f7f2767 100644
--- a/Library/Formula/abiword.rb
+++ b/Library/Formula/abiword.rb
@@ -20,14 +20,20 @@ class Abiword < Formula
depends_on 'wv'
depends_on 'imagemagick'
- def patches
- if build.devel?
- {:p0 => "http://bugzilla.abisource.com/attachment.cgi?id=5477"}
- else
- DATA
- end
+ fails_with :clang do
+ build 421
+ cause "error: static_cast from 'id' to 'XAP_Menu_Id' (aka 'int') is not allowed"
end
+ def patches
+ {
+ # Fixes newer libpng versions; needed for libpng 1.2, too
+ :p0 => "https://trac.macports.org/export/102401/trunk/dports/editors/abiword-x11/files/patch-libpng-1.5.diff",
+ # Fixes bad glib include
+ :p1 => DATA
+ }
+ end if build.stable?
+
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"