Created
October 6, 2012 17:50
-
-
Save rtxanson/3845609 to your computer and use it in GitHub Desktop.
Mac Brew formula for Apertium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Apertium < Formula | |
homepage 'http://wiki.apertium.org/' | |
url 'http://downloads.sourceforge.net/project/apertium/apertium/3.2/apertium-3.2.0.tar.gz' | |
sha1 '1e784dcb20cf99215c04c642b62e1ff35ef76dba' | |
head 'https://apertium.svn.sourceforge.net/svnroot/apertium' | |
depends_on 'lttoolbox' | |
# NOTE: can assume users have these? depends_on 'autoconf' | |
# NOTE: can assume users have these? depends_on 'automake' | |
# TODO: no brew for depends_on 'flex' | |
# TODO: no brew for depends_on 'gperf' | |
# TODO: no brew for depends_on 'libiconv' | |
# TODO: no brew for depends_on 'm4' | |
# TODO: no brew for depends_on 'ncurses' | |
# TODO: no brew for depends_on 'p5-locale-gettext' | |
# TODO: no brew for depends_on 'perl5' | |
# TODO: no brew for depends_on 'zlib' | |
depends_on 'expat' | |
depends_on 'gawk' | |
depends_on 'gettext' | |
depends_on 'help2man' | |
depends_on 'libtool' | |
depends_on 'libxml2' | |
depends_on 'libxslt' | |
depends_on 'pcre' | |
depends_on 'pkgconfig' | |
def install | |
# TODO: PKG_CONFIG_PATH required? | |
system "./autogen.sh" | |
system "make" | |
system "make install" | |
end | |
def test | |
system "make test" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works for me, but I need to track down some potential dependencies before submitting to Brew.