2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-06 22:54:52 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gettext < Formula
|
2012-02-26 05:00:28 +00:00
|
|
|
homepage 'http://www.gnu.org/software/gettext/'
|
2014-01-14 02:11:56 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/gettext/gettext-0.18.3.2.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/gettext/gettext-0.18.3.2.tar.gz'
|
|
|
|
sha256 'd1a4e452d60eb407ab0305976529a45c18124bd518d976971ac6dc7aa8b4c5d7'
|
2013-01-31 05:06:21 +00:00
|
|
|
|
2014-02-04 16:07:02 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "b051e525a42aa11242dc80afd19aa914d38b1e4b" => :mavericks
|
|
|
|
sha1 "a1e9a0835d6f2ac2134ac3583e40ac3e4315c5d0" => :mountain_lion
|
|
|
|
sha1 "674f284e9fb6be58df47b788a84eaa5a0c64d195" => :lion
|
|
|
|
end
|
|
|
|
|
2013-07-09 20:46:19 +00:00
|
|
|
keg_only "OS X provides the BSD gettext library and some software gets confused if both are in the library path."
|
|
|
|
|
2012-08-10 04:58:02 +00:00
|
|
|
option :universal
|
2011-06-05 02:51:00 +00:00
|
|
|
|
2009-06-06 22:54:52 +00:00
|
|
|
def install
|
2009-08-07 14:41:43 +00:00
|
|
|
ENV.libxml2
|
2012-08-10 04:58:02 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2011-06-05 02:51:51 +00:00
|
|
|
|
2013-06-10 14:32:15 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-included-gettext",
|
|
|
|
"--with-included-glib",
|
|
|
|
"--with-included-libcroco",
|
|
|
|
"--with-included-libunistring",
|
|
|
|
"--with-emacs",
|
2013-07-09 22:42:38 +00:00
|
|
|
"--disable-java",
|
2013-07-31 04:32:59 +00:00
|
|
|
"--disable-csharp",
|
2013-06-10 14:32:15 +00:00
|
|
|
# Don't use VCS systems to create these archives
|
|
|
|
"--without-git",
|
|
|
|
"--without-cvs"
|
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"
|
|
|
|
end
|
|
|
|
end
|