2009-06-06 22:54:52 +00:00
|
|
|
require 'brewkit'
|
|
|
|
|
|
|
|
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 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'
|
2009-08-07 14:41:43 +00:00
|
|
|
|
2009-06-06 22:54:52 +00:00
|
|
|
def caveats
|
|
|
|
"GNU gettext is bloated and manky, please try not to depend on it"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|