homebrew-core/Formula/gettext.rb

35 lines
1.3 KiB
Ruby

require 'formula'
class Gettext < Formula
homepage 'http://www.gnu.org/software/gettext/'
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'
keg_only "OS X provides the BSD gettext library and some software gets confused if both are in the library path."
option :universal
def install
ENV.libxml2
ENV.universal_binary if build.universal?
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