2011-03-10 05:11:03 +00:00
|
|
|
class Gettext < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "GNU internationalization (i18n) and localization (l10n) library"
|
2014-06-02 20:31:03 +00:00
|
|
|
homepage "https://www.gnu.org/software/gettext/"
|
2015-09-23 02:32:10 +00:00
|
|
|
url "http://ftpmirror.gnu.org/gettext/gettext-0.19.6.tar.xz"
|
|
|
|
mirror "https://ftp.gnu.org/gnu/gettext/gettext-0.19.6.tar.xz"
|
|
|
|
sha256 "9b95816620fd1168cb4eeca0e9dc0ffd86e864fc668f76f5e37cc054d6982e51"
|
2013-01-31 05:06:21 +00:00
|
|
|
|
2014-02-04 16:07:02 +00:00
|
|
|
bottle do
|
2015-09-23 17:53:46 +00:00
|
|
|
sha256 "8df50085d6a552958805922ce4b25ec2d57e6f0799b4a5549778bce2b1ba0b49" => :el_capitan
|
|
|
|
sha256 "b28fcdcc79bfd01f3750ef564064feac7b4f8d7d19ed1b92176684293c5016a9" => :yosemite
|
|
|
|
sha256 "cc788fa52512f86ee271cdba9591aef6ff3905f5343b3b970359f15d16461043" => :mavericks
|
2014-02-04 16:07:02 +00:00
|
|
|
end
|
|
|
|
|
2014-08-27 19:53:41 +00:00
|
|
|
keg_only :shadowed_by_osx, "OS X provides the BSD gettext library and some software gets confused if both are in the library path."
|
2013-07-09 20:46:19 +00:00
|
|
|
|
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",
|
2014-11-18 23:19:29 +00:00
|
|
|
"--disable-silent-rules",
|
2013-06-10 14:32:15 +00:00
|
|
|
"--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-included-gettext",
|
|
|
|
"--with-included-glib",
|
|
|
|
"--with-included-libcroco",
|
|
|
|
"--with-included-libunistring",
|
|
|
|
"--with-emacs",
|
2015-09-23 02:32:10 +00:00
|
|
|
"--with-lispdir=#{share}/emacs/site-lisp/gettext",
|
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",
|
2014-11-18 23:19:29 +00:00
|
|
|
"--without-cvs",
|
|
|
|
"--without-xz"
|
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
|
2014-10-17 02:52:53 +00:00
|
|
|
system "make", "install"
|
2009-06-06 22:54:52 +00:00
|
|
|
end
|
2014-12-27 16:00:45 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/gettext", "test"
|
|
|
|
end
|
2009-06-06 22:54:52 +00:00
|
|
|
end
|