aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gettext.rb
diff options
context:
space:
mode:
authorJosé Martínez2011-06-20 23:07:08 +0200
committerAdam Vandenberg2011-06-21 06:31:48 -0700
commit32d9b9180ee5903821813483dc2015feacef3143 (patch)
treee745e19f501bef0fc7b9d7b03e25a6809d185196 /Library/Formula/gettext.rb
parent58039d543695b0c78d76b6643bde6b8a3afcf902 (diff)
downloadhomebrew-32d9b9180ee5903821813483dc2015feacef3143.tar.bz2
gettext: fix build with Xcode 4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/gettext.rb')
-rw-r--r--Library/Formula/gettext.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/Library/Formula/gettext.rb b/Library/Formula/gettext.rb
index 5e06a3185..6df647bc7 100644
--- a/Library/Formula/gettext.rb
+++ b/Library/Formula/gettext.rb
@@ -14,15 +14,17 @@ class Gettext < Formula
]
end
-
def patches
+ # Patch to allow building with Xcode 4; safe for any compiler.
+ p = {:p0 => ['https://trac.macports.org/export/79617/trunk/dports/devel/gettext/files/stpncpy.patch']}
+
unless ARGV.include? '--with-examples'
- # Use a MacPorts patch to disable building examples at all
+ # Use a MacPorts patch to disable building examples at all,
# rather than build them and remove them afterwards.
- {:p0 =>
- "https://trac.macports.org/export/79183/trunk/dports/devel/gettext/files/patch-gettext-tools-Makefile.in"
- }
+ p[:p0] << 'https://trac.macports.org/export/79183/trunk/dports/devel/gettext/files/patch-gettext-tools-Makefile.in'
end
+
+ return p
end
def install