aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
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