diff options
| author | José MartÃnez | 2011-06-20 23:07:08 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-21 06:31:48 -0700 |
| commit | 32d9b9180ee5903821813483dc2015feacef3143 (patch) | |
| tree | e745e19f501bef0fc7b9d7b03e25a6809d185196 /Library/Formula/gettext.rb | |
| parent | 58039d543695b0c78d76b6643bde6b8a3afcf902 (diff) | |
| download | homebrew-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.rb | 12 |
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 |
