aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMax Howell2009-09-17 21:10:39 +0100
committerMax Howell2009-09-17 22:01:27 +0100
commit178dc49350029685eeee7b86704455ebc9d99760 (patch)
tree52b772d09cb5125145cea5ee68d4c15a323061fc /Library/Formula
parent01b640a8404c1bdd4130bfa693c39e9f0bc04606 (diff)
downloadhomebrew-178dc49350029685eeee7b86704455ebc9d99760.tar.bz2
Solving the GNU GetText issues
GNU GetText breaks eg. Ruby 1.9 builds, and some other formula I have been building too. But it is required by eg. glib. So to solve this we are going to by default not symlink gettext into the Homebrew prefix. Formula that depend on GetText will have the gettext paths added to the brewing environment automatically. Neat.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gettext.rb10
-rw-r--r--Library/Formula/glib.rb3
2 files changed, 7 insertions, 6 deletions
diff --git a/Library/Formula/gettext.rb b/Library/Formula/gettext.rb
index 9f5a9bfe1..c52e99d74 100644
--- a/Library/Formula/gettext.rb
+++ b/Library/Formula/gettext.rb
@@ -4,11 +4,15 @@ class Gettext <Formula
@url='http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz'
@md5='58a2bc6d39c0ba57823034d55d65d606'
@homepage='http://www.gnu.org/software/gettext/'
-
+
def patches
'http://gist.github.com/raw/186336/2fe65fab894f94a03aab2f03349ae7f1febcd301/mac-osx-105-environ.patch'
end
+ def keg_only?
+ "OS X provides the BSD gettext library and some software gets confused if both are in the library path."
+ end
+
def install
ENV.libxml2
# TODO seems like this package needs more optmisation
@@ -28,9 +32,5 @@ class Gettext <Formula
system "make install"
(doc+'examples').rmtree unless ARGV.include? '--with-examples'
-
- def caveats
- "GNU gettext is bloated and manky, please try not to depend on it"
- end
end
end
diff --git a/Library/Formula/glib.rb b/Library/Formula/glib.rb
index dd7f26dfb..bc5b841f2 100644
--- a/Library/Formula/glib.rb
+++ b/Library/Formula/glib.rb
@@ -18,7 +18,8 @@ class Glib <Formula
end
def install
-
+ ENV.gnu_gettext
+
# Snow Leopard libiconv doesn't have a 64bit version of the libiconv_open
# function, which breaks things for us, so we build our own
# http://www.mail-archive.com/gtk-list@gnome.org/msg28747.html