Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2018 03:55:24 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r462897 - head/textproc/link-grammar
Message-ID:  <201802250355.w1P3tOJV013079@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Feb 25 03:55:24 2018
New Revision: 462897
URL: https://svnweb.freebsd.org/changeset/ports/462897

Log:
  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)

Modified:
  head/textproc/link-grammar/Makefile
  head/textproc/link-grammar/distinfo
  head/textproc/link-grammar/pkg-descr
  head/textproc/link-grammar/pkg-plist

Modified: head/textproc/link-grammar/Makefile
==============================================================================
--- head/textproc/link-grammar/Makefile	Sun Feb 25 03:52:38 2018	(r462896)
+++ head/textproc/link-grammar/Makefile	Sun Feb 25 03:55:24 2018	(r462897)
@@ -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
 
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
 BUILD_DEPENDS=	autoconf-archive>=0:devel/autoconf-archive
 
-USES=		autoreconf compiler:c++11-lib dos2unix gmake libtool localbase \
-		pathfix pkgconfig sqlite
-
+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

Modified: head/textproc/link-grammar/distinfo
==============================================================================
--- head/textproc/link-grammar/distinfo	Sun Feb 25 03:52:38 2018	(r462896)
+++ head/textproc/link-grammar/distinfo	Sun Feb 25 03:55:24 2018	(r462897)
@@ -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

Modified: head/textproc/link-grammar/pkg-descr
==============================================================================
--- head/textproc/link-grammar/pkg-descr	Sun Feb 25 03:52:38 2018	(r462896)
+++ head/textproc/link-grammar/pkg-descr	Sun Feb 25 03:55:24 2018	(r462897)
@@ -4,4 +4,4 @@ assigns to it a syntactic structure, which consists of
 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/

Modified: head/textproc/link-grammar/pkg-plist
==============================================================================
--- head/textproc/link-grammar/pkg-plist	Sun Feb 25 03:52:38 2018	(r462896)
+++ head/textproc/link-grammar/pkg-plist	Sun Feb 25 03:55:24 2018	(r462897)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802250355.w1P3tOJV013079>