homebrew-core/Formula/gettext.rb

50 lines
1.8 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Gettext < Formula
homepage 'http://www.gnu.org/software/gettext/'
2013-08-20 15:31:44 +00:00
url 'http://ftpmirror.gnu.org/gettext/gettext-0.18.3.1.tar.gz'
mirror 'http://ftp.gnu.org/gnu/gettext/gettext-0.18.3.1.tar.gz'
sha256 '0d8f9a33531b77776b3dc473e7940019ca19bfca5b4c06db6e96065eeb07245d'
2010-08-10 20:05:20 +00:00
2013-01-31 05:06:21 +00:00
bottle do
2013-08-20 15:31:44 +00:00
sha1 '2aa3a9363106fff9c7adf87527a60a4351dbc6e1' => :mountain_lion
sha1 '59cc5083d0cc6053ecbb857146730ed8953357e8' => :lion
sha1 'd1c2af7389a8234954d1093c4beb4c6484e6e250' => :snow_leopard
2013-01-31 05:06:21 +00:00
end
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
option 'with-examples', 'Keep example files'
def patches
2012-08-10 04:58:02 +00:00
unless build.include? 'with-examples'
# Use a MacPorts patch to disable building examples at all,
# rather than build them and remove them afterwards.
{:p0 => ['https://trac.macports.org/export/102008/trunk/dports/devel/gettext/files/patch-gettext-tools-Makefile.in']}
end
end
def install
ENV.libxml2
2012-08-10 04:58:02 +00:00
ENV.universal_binary if build.universal?
2011-06-05 02:51:51 +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",
"--disable-java",
"--disable-csharp",
# Don't use VCS systems to create these archives
"--without-git",
"--without-cvs"
system "make"
ENV.deparallelize # install doesn't support multiple make jobs
system "make install"
end
end