2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-06 22:54:52 +00:00
|
|
|
|
|
|
|
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/'
|
2009-09-17 20:10:39 +00:00
|
|
|
|
2009-09-16 14:33:30 +00:00
|
|
|
def patches
|
2009-09-16 16:08:32 +00:00
|
|
|
'http://gist.github.com/raw/186336/2fe65fab894f94a03aab2f03349ae7f1febcd301/mac-osx-105-environ.patch'
|
2009-09-16 14:33:30 +00:00
|
|
|
end
|
2009-06-06 22:54:52 +00:00
|
|
|
|
2009-09-17 20:10:39 +00:00
|
|
|
def keg_only?
|
|
|
|
"OS X provides the BSD gettext library and some software gets confused if both are in the library path."
|
|
|
|
end
|
|
|
|
|
2009-06-06 22:54:52 +00:00
|
|
|
def install
|
2009-08-07 14:41:43 +00:00
|
|
|
ENV.libxml2
|
2009-06-06 22:54:52 +00:00
|
|
|
# TODO seems like this package needs more optmisation
|
|
|
|
# maybe someone can tell me how glib depends on gettext, but gettext
|
|
|
|
# depends on glib and thus includes its own?!
|
2009-08-07 14:41:43 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
# '--disable-nls ',
|
|
|
|
'--without-emacs',
|
|
|
|
'--without-included-gettext',
|
|
|
|
'--without-included-glib',
|
|
|
|
'--without-included-libcroco',
|
|
|
|
'--without-included-libxml'
|
2009-06-06 22:54:52 +00:00
|
|
|
system "make"
|
2009-08-07 14:41:43 +00:00
|
|
|
ENV.deparallelize # install doesn't support multiple make jobs
|
2009-06-06 22:54:52 +00:00
|
|
|
system "make install"
|
|
|
|
|
|
|
|
(doc+'examples').rmtree unless ARGV.include? '--with-examples'
|
|
|
|
end
|
|
|
|
end
|