class Gettext < Formula desc "GNU internationalization (i18n) and localization (l10n) library" homepage "https://www.gnu.org/software/gettext/" url "https://ftp.gnu.org/gnu/gettext/gettext-0.21.tar.xz" mirror "https://ftpmirror.gnu.org/gettext/gettext-0.21.tar.xz" sha256 "d20fcbb537e02dcf1383197ba05bd0734ef7bf5db06bdb241eb69b7d16b73192" license "GPL-3.0" livecheck do url :stable end bottle do sha256 "cdea54f52b7c36ebcb5fe26a1cf736d7cd6fd5f2fd016dd8357a8624ffd6b5f8" => :catalina sha256 "99707d4dcc731faf980333365a694e9500f2f012f84c0bcb6d8cb5d620c2ce08" => :mojave sha256 "5ac5783e31205b92907b46bfaaa142620aea7ee3fc4d996876b0913fd2315695" => :high_sierra end uses_from_macos "ncurses" def install system "./configure", "--disable-dependency-tracking", "--disable-silent-rules", "--disable-debug", "--prefix=#{prefix}", "--with-included-gettext", # Work around a gnulib issue with macOS Catalina "gl_cv_func_ftello_works=yes", "--with-included-glib", "--with-included-libcroco", "--with-included-libunistring", "--with-emacs", "--with-lispdir=#{elisp}", "--disable-java", "--disable-csharp", # Don't use VCS systems to create these archives "--without-git", "--without-cvs", "--without-xz" system "make" ENV.deparallelize # install doesn't support multiple make jobs system "make", "install" end test do system bin/"gettext", "test" end end