link-grammar 5.12.0

* link-grammar 5.12.0
* link-grammar: depends_on libedit
* link-grammar: add build patch for `threads.h` header

Closes #118387.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: Patrick Linnane <patrick@linnane.io>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Rui Chen 2022-12-17 11:37:11 -05:00 committed by BrewTestBot
parent 7c2bd86e50
commit 7338d93777
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 10 additions and 2 deletions

View File

@ -1,8 +1,8 @@
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.11.0/link-grammar-5.11.0.tar.gz"
sha256 "bdb9a359f877ff95d60f44d1780387324fa3763de5084ba1817dbf561a0ebed4"
url "https://www.abisource.com/downloads/link-grammar/5.12.0/link-grammar-5.12.0.tar.gz"
sha256 "3f113daca2bd3ec8c20c7f86d5ef7e56cf8f80135f903bb7569924d6d0720383"
license "LGPL-2.1-or-later"
head "https://github.com/opencog/link-grammar.git", branch: "master"
@ -30,8 +30,16 @@ class LinkGrammar < Formula
depends_on "python@3.10" => :build
uses_from_macos "flex" => :build
uses_from_macos "libedit"
uses_from_macos "sqlite"
# Fix for fatal error: 'threads.h' file not found
# remove in next release
patch do
url "https://github.com/opencog/link-grammar/commit/725de848e4ac832ba7cd876e01f3d6a67d6e578b.patch?full_index=1"
sha256 "e167c0c5a2713b539099ea1839c31801709e3fd5c9368eae9aa3f480fa5f1f13"
end
def install
ENV["PYTHON_LIBS"] = "-undefined dynamic_lookup"
inreplace "bindings/python/Makefile.am", "$(PYTHON_LDFLAGS) -module -no-undefined",