47 lines
1.8 KiB
Ruby
47 lines
1.8 KiB
Ruby
class LinkGrammar < Formula
|
|
desc "Carnegie Mellon University's link grammar parser"
|
|
homepage "http://www.abisource.com/projects/link-grammar/"
|
|
url "http://www.abisource.com/downloads/link-grammar/5.3.2/link-grammar-5.3.2.tar.gz"
|
|
sha256 "59c6a2e5aca78ced741709317e1858ea57f2cefcece277daa8197c5247dec11d"
|
|
|
|
bottle do
|
|
sha256 "7a95ab8e3cb206cc534588c9991fdc7c9b4774d61abcadf40051a7d782957403" => :el_capitan
|
|
sha256 "b8aa7f4c829d15aeceb8eb3e7ebf7006e7b4f1a6a9e64f0d67b59f85472216d0" => :yosemite
|
|
sha256 "e4cf2295ccd5db52f0dbddc30f62e254745e48f42f3e0ae2feb585cbc48385d9" => :mavericks
|
|
end
|
|
|
|
# Can be removed with the next release
|
|
# Bug fix in the test_enabled macro
|
|
# https://github.com/opencog/link-grammar/issues/255
|
|
patch do
|
|
url "https://github.com/opencog/link-grammar/commit/61a788512b78b12b94429f8863ca6c3ee6eafe05.patch"
|
|
sha256 "8da30ed3a86120101b8f5253af4bf42e23b5da2a9f2f0336fd9e8761c1d37399"
|
|
end
|
|
|
|
# Can be removed with the next release
|
|
# Disable Perl bindings by default
|
|
# https://github.com/opencog/link-grammar/issues/255
|
|
patch do
|
|
url "https://github.com/ampli/link-grammar/commit/adabf00ddb05b32c98b34da6691f0638781b0994.patch"
|
|
sha256 "6d9ec0de8349ab694035d75e3a3afefe7c031661b447eda1c0e673d4d0e1e2a4"
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "autoconf" => :build
|
|
depends_on "autoconf-archive" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on :ant => :build
|
|
|
|
def install
|
|
inreplace "autogen.sh", "libtoolize", "glibtoolize"
|
|
system "./autogen.sh", "--no-configure"
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/link-parser", "--version"
|
|
end
|
|
end
|