2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-06 22:54:52 +00:00
|
|
|
|
|
|
|
class Gettext <Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
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
|
|
|
|
2010-08-10 20:05:20 +00:00
|
|
|
keg_only "OS X provides the BSD gettext library and some software gets confused if both are in the library path."
|
|
|
|
|
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
|
|
|
|
2010-08-10 20:05:20 +00:00
|
|
|
def options
|
|
|
|
[['--with-examples', 'Keep example files.']]
|
|
|
|
end
|
2009-09-17 20:10:39 +00:00
|
|
|
|
2009-06-06 22:54:52 +00:00
|
|
|
def install
|
2009-08-07 14:41:43 +00:00
|
|
|
ENV.libxml2
|
2010-02-11 23:02:11 +00:00
|
|
|
ENV.O3 # Issues with LLVM & O4 on Mac Pro 10.6
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--disable-debug",
|
2009-08-07 14:41:43 +00:00
|
|
|
"--prefix=#{prefix}",
|
2010-04-07 05:58:35 +00:00
|
|
|
"--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
|