link-grammar 5.10.2
* link-grammar 5.10.1 * link-grammar: 5.10.2 * update sha Closes #84708. Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com> Co-authored-by: rui <chenrui333@gmail.com> Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
840ba20980
commit
6ebc155000
|
@ -1,9 +1,10 @@
|
|||
class LinkGrammar < Formula
|
||||
desc "Carnegie Mellon University's link grammar parser"
|
||||
homepage "https://www.abisource.com/projects/link-grammar/"
|
||||
url "https://www.abisource.com/downloads/link-grammar/5.9.1/link-grammar-5.9.1.tar.gz"
|
||||
sha256 "e03febaa820696f47eabb033f04d713d849040c24c45579133d1d021b8ecb0ba"
|
||||
url "https://www.abisource.com/downloads/link-grammar/5.10.2/link-grammar-5.10.2.tar.gz"
|
||||
sha256 "28cec752eaa0e3897ae961333b6927459f8b69fefe68c2aa5272983d7db869b6"
|
||||
license "LGPL-2.1"
|
||||
head "https://github.com/opencog/link-grammar.git", branch: "master"
|
||||
|
||||
livecheck do
|
||||
url :homepage
|
||||
|
@ -30,15 +31,16 @@ class LinkGrammar < Formula
|
|||
|
||||
def install
|
||||
ENV["PYTHON_LIBS"] = "-undefined dynamic_lookup"
|
||||
inreplace "bindings/python/Makefile.am",
|
||||
"$(PYTHON_LDFLAGS) -module -no-undefined",
|
||||
inreplace "bindings/python/Makefile.am", "$(PYTHON_LDFLAGS) -module -no-undefined",
|
||||
"$(PYTHON_LDFLAGS) -module"
|
||||
system "autoreconf", "-fiv"
|
||||
system "./configure", "--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--with-regexlib=c"
|
||||
system "make", "install"
|
||||
system "autoreconf", "--verbose", "--install", "--force"
|
||||
system "./configure", *std_configure_args, "--with-regexlib=c"
|
||||
|
||||
# Work around error due to install using detected path inside Python formula.
|
||||
# install: .../site-packages/linkgrammar.pth: Operation not permitted
|
||||
site_packages = prefix/Language::Python.site_packages("python3")
|
||||
system "make", "install", "pythondir=#{site_packages}",
|
||||
"pyexecdir=#{site_packages}"
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in New Issue