aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authoryuri <yuri@FreeBSD.org>2018-02-25 11:55:24 +0800
committeryuri <yuri@FreeBSD.org>2018-02-25 11:55:24 +0800
commit8b1cdfa19b55b3691c1250f2ad276883a98d89af (patch)
tree63002fb41bb975e1785980a5b0f9c8b9ea9ceeb3 /textproc
parentde378d4e1db8d481c7d3068628b7f81c1549c9ef (diff)
downloadfreebsd-ports-gnome-8b1cdfa19b55b3691c1250f2ad276883a98d89af.tar.gz
freebsd-ports-gnome-8b1cdfa19b55b3691c1250f2ad276883a98d89af.tar.zst
freebsd-ports-gnome-8b1cdfa19b55b3691c1250f2ad276883a98d89af.zip
textproc/link-grammar: Update to 5.4.3
Changelog: https://github.com/opencog/link-grammar/blob/master/ChangeLog Additional port changes: * Changed to DISTVERSION * Added LICENSE/LICENSE_FILE * Added USES=ncurses * Added port options SAT_SOLVER,TOKENIZER * Updated WWW with https URL Approved by: tcberner (mentor, implicit)
Diffstat (limited to 'textproc')
-rw-r--r--textproc/link-grammar/Makefile34
-rw-r--r--textproc/link-grammar/distinfo6
-rw-r--r--textproc/link-grammar/pkg-descr2
-rw-r--r--textproc/link-grammar/pkg-plist4
4 files changed, 32 insertions, 14 deletions
diff --git a/textproc/link-grammar/Makefile b/textproc/link-grammar/Makefile
index 0eefaba45e00..a853ed9c3ab3 100644
--- a/textproc/link-grammar/Makefile
+++ b/textproc/link-grammar/Makefile
@@ -1,30 +1,31 @@
# $FreeBSD$
PORTNAME= link-grammar
-PORTVERSION= 5.3.16
-PORTREVISION= 2
+DISTVERSION= 5.4.3
CATEGORIES= textproc
MASTER_SITES= http://www.abisource.com/downloads/${PORTNAME}/${PORTVERSION}/
MAINTAINER= gnome@FreeBSD.org
COMMENT= Grammar checking library
-BUILD_DEPENDS= autoconf-archive>=0:devel/autoconf-archive
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= autoreconf compiler:c++11-lib dos2unix gmake libtool localbase \
- pathfix pkgconfig sqlite
+BUILD_DEPENDS= autoconf-archive>=0:devel/autoconf-archive
+USES= autoreconf compiler:c++11-lib dos2unix gmake libtool localbase ncurses \
+ pathfix pkgconfig sqlite # autoreconf is due to this bug: https://github.com/opencog/link-grammar/issues/649
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
PLIST_SUB= VERSION=${PORTVERSION}
-DOCS= AUTHORS LICENSE MAINTAINERS README
+DOCS= AUTHORS MAINTAINERS README
OPTIONS_SUB= yes
-OPTIONS_DEFAULT= HUNSPELL
-OPTIONS_DEFINE= DOCS EDITLINE JAVA PERL PYTHON
+OPTIONS_DEFINE= DOCS EDITLINE JAVA PERL PYTHON SAT_SOLVER TOKENIZER
+OPTIONS_DEFAULT= EDITLINE HUNSPELL SAT_SOLVER
OPTIONS_MULTI= SPELL
OPTIONS_MULTI_SPELL= ASPELL HUNSPELL
@@ -50,8 +51,23 @@ PERL_USES= perl5
PYTHON_CONFIGURE_ENABLE= python-bindings
PYTHON_USES= python:2.7
+SAT_SOLVER_CONFIGURE_ENABLE= sat-solver
+SAT_SOLVER_DESC= Use boolean SAT parser
+SAT_SOLVER_CFLAGS= -I${LOCALBASE}/include/minisat # see https://github.com/opencog/link-grammar/issues/648
+SAT_SOLVER_LIB_DEPENDS= libminisat.so:math/minisat
+
+TOKENIZER_CONFIGURE_ENABLE= regex-tokenizer
+TOKENIZER_DESC= Use the regex word splitter (a demo)
+TOKENIZER_BROKEN= Missing headers, see https://github.com/opencog/link-grammar/issues/646
+
+post-extract:
+ @${RM} -r ${STAGEDIR}${PREFIX}/link-grammar/minisat # remove the bundled code
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblink-grammar.so.${DISTVERSION} # see https://github.com/opencog/link-grammar/issues/645
+
post-install-DOCS-on:
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
diff --git a/textproc/link-grammar/distinfo b/textproc/link-grammar/distinfo
index 68f1299f922c..7093f34f9e8c 100644
--- a/textproc/link-grammar/distinfo
+++ b/textproc/link-grammar/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1499527355
-SHA256 (link-grammar-5.3.16.tar.gz) = 6fbfe6937f56e1df9d6b433b7060cae7111ee6e0806056339ddcaafe83d5a0dd
-SIZE (link-grammar-5.3.16.tar.gz) = 3695797
+TIMESTAMP = 1519529888
+SHA256 (link-grammar-5.4.3.tar.gz) = 3b043693ba091647128aaa60b3ed9187dc8b80f5921d4d7a6550294ca5a8e137
+SIZE (link-grammar-5.4.3.tar.gz) = 3725145
diff --git a/textproc/link-grammar/pkg-descr b/textproc/link-grammar/pkg-descr
index 4e14bf278205..21fc646dd441 100644
--- a/textproc/link-grammar/pkg-descr
+++ b/textproc/link-grammar/pkg-descr
@@ -4,4 +4,4 @@ assigns to it a syntactic structure, which consists of a set of labeled links
connecting pairs of words. The parser also produces a "constituent"
representation of a sentence (showing noun phrases, verb phrases, etc.).
-WWW: http://www.abisource.com/projects/link-grammar/
+WWW: https://www.abisource.com/projects/link-grammar/
diff --git a/textproc/link-grammar/pkg-plist b/textproc/link-grammar/pkg-plist
index c5eec461b985..bdc29c54ff32 100644
--- a/textproc/link-grammar/pkg-plist
+++ b/textproc/link-grammar/pkg-plist
@@ -31,7 +31,6 @@ lib/liblink-grammar.so.%%VERSION%%
%%PYTHON%%%%PYTHON_SITELIBDIR%%/linkgrammar/linkgrammar.pyo
libdata/pkgconfig/link-grammar.pc
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/LICENSE
%%PORTDOCS%%%%DOCSDIR%%/MAINTAINERS
%%PORTDOCS%%%%DOCSDIR%%/README
%%DATADIR%%/ady/4.0.affix
@@ -49,6 +48,7 @@ libdata/pkgconfig/link-grammar.pc
%%DATADIR%%/any/4.0.dict
%%DATADIR%%/any/4.0.knowledge
%%DATADIR%%/any/4.0.regex
+%%DATADIR%%/any/affix-punc
%%DATADIR%%/any/README.md
%%DATADIR%%/ar/4.0.affix
%%DATADIR%%/ar/4.0.constituent-knowledge
@@ -115,6 +115,7 @@ libdata/pkgconfig/link-grammar.pc
%%DATADIR%%/en/words/units.4.dot
%%DATADIR%%/en/words/units.5
%%DATADIR%%/en/words/units.6
+%%DATADIR%%/en/words/units.a
%%DATADIR%%/en/words/words-medical.adv.1
%%DATADIR%%/en/words/words-medical.prep.1
%%DATADIR%%/en/words/words-medical.v.4.1
@@ -480,3 +481,4 @@ libdata/pkgconfig/link-grammar.pc
%%DATADIR%%/vn/4.0.dict
%%DATADIR%%/vn/4.0.knowledge
%%DATADIR%%/vn/4.0.regex
+man/man1/link-parser.1.gz