summaryrefslogtreecommitdiff
path: root/dev-libs/link-grammar
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/link-grammar')
-rw-r--r--dev-libs/link-grammar/Manifest8
-rw-r--r--dev-libs/link-grammar/files/link-grammar-5.3.9-out-of-source-build.patch61
-rw-r--r--dev-libs/link-grammar/link-grammar-5.3.10.ebuild155
-rw-r--r--dev-libs/link-grammar/link-grammar-5.3.11.ebuild164
-rw-r--r--dev-libs/link-grammar/metadata.xml18
5 files changed, 406 insertions, 0 deletions
diff --git a/dev-libs/link-grammar/Manifest b/dev-libs/link-grammar/Manifest
new file mode 100644
index 000000000000..dff499dac279
--- /dev/null
+++ b/dev-libs/link-grammar/Manifest
@@ -0,0 +1,8 @@
+AUX link-grammar-5.3.9-out-of-source-build.patch 2541 SHA256 2299023a296c3d72eebf90bf8cf4221d5eea880a59d6dce41eee1864834b3528 SHA512 340a03c31ed94f53b00622bf7f925d8f47c658ec81843f0139deb5b38074f346ad4d65dc49653cccf1b7b49966c77029ab64e993d113e709e75ebb930448b8f6 WHIRLPOOL 839e46942984352038c84ad96ef4b5f83901cf6dffbc078bc041004d8e75c677c19be4fff00dc61cdde073da9a33f19cbf05b8c92fb3801458db00c19445db61
+DIST link-grammar-5.3.10.tar.gz 3612522 SHA256 7ead9a5190cfac2f8a0f8b2608fd48b6d71a50aa55cb4fedd3f52e85a4df0a95 SHA512 b91c79c6c668c7d1ccb0f29e3762e4426f082421fc3a15e77bfacbc3681d4f969db7015010504dc8418e4d8c90847ed156bcc0ea01fd6589ef31c4d35af6e989 WHIRLPOOL 3c1d05f3523e6b411b653803c4f2490078d3a227eec3fc4497c0d801127c00fe3eca7bb9d1b868b2c776b59829ea96da42ceee70d24d6617f9040b0164dfe1bc
+DIST link-grammar-5.3.11.tar.gz 3632617 SHA256 73ca3ae82ec7ddbfce827eb7017a2953afea2cea854b4d7517139881e1170cd7 SHA512 09671d187deac3b9530dd63eb4497de9c2c9db32d79da06c677bdbccac015adef06813819692a92d15499c7cb347071c58b73c52505af154bdc8a8fcd409ddd2 WHIRLPOOL c4f1cfa11d7d1b07dfdd15d9798789fd5c7b2d8f79d12e717c9b92527757b7b9e67c9813deb8aac93e60a145c0783c23f3ee9654e570858ec428af094ba95831
+EBUILD link-grammar-5.3.10.ebuild 3731 SHA256 7d475fb226a2bf3afafb69027191eba36d2f0f3b1625254349789740775d5781 SHA512 ee0b9a2b1e9f25085d3ef819258af635e46ba6afb970d517cf5fd34592154e9623fdb5dcaa7b6fb4fee7c1fcce76177d953f091cf3d42aed6e7d6241197c4047 WHIRLPOOL f583ab426824eae038cba6690de380e8abc5276fdc3a927b6f0a91f7a13bc0774770a919e93111b9fdc06741d52af7b46b9e86ecf3f73167be002ad0b24c4c80
+EBUILD link-grammar-5.3.11.ebuild 4021 SHA256 4bbba5d8dfff98c128ab513834e011fa137ce91a35d9f343fb3b3db60b1e6928 SHA512 d4de7832e33ebd89c8264506fa01ea5b695fc0ca67590f4426d7b8034c7c2f8734f6a0da13558c9cebb333c1bf1770ed7ef4ba4396034ac05b0ad651921e6bca WHIRLPOOL 37ffaa30b25b2abe7de33aaa7c9c0e1e4f55ecb8605f05a063005e4cb667515e83d70cb021ec467ac8a2e53ab2eef7d50c8f9e89540b619ae5968893c18c3ad8
+MISC ChangeLog 5445 SHA256 792d8d61ec393f5715a1c1f4fec696aea1ba7cfc62fb302ce074038e95d02fa9 SHA512 883804a66daede01fa425150bf57b674d89bf8d3dbd0f83c7ad4bd7c26584109ec3d1dfc9a80aae53f89c4856b8c91142157efe5bd2eac6ef1f663e655ff578a WHIRLPOOL df9d66eef4b3be549b16271878c47fd367171dd63702d51295235d8401a0a3bd9342459976f7939aa8a718769057f3e8974b79282b11691c7e486858a0c88fbd
+MISC ChangeLog-2015 9979 SHA256 5c5610c66e433eb9fbfa2c5e87c81e8f7c339f6565b574d8013467ddc6e83c9f SHA512 d30c53130a637dd14a95cbcb7e75f7acdb274c0ad0e9016dee1e5c1e9d2e380b25a23114d7c74d97321052f787505f28a33ed91e908689af6df7621ab2a54749 WHIRLPOOL 717622f2cb82891534acef385939d4fe35ab2371fbc577e06ac9c840517653d900dfee25b0d6cdc6ed66ac0f5a9f410d3a1414e1f1b4e3d0131d824b33fc0441
+MISC metadata.xml 963 SHA256 42cdc20c5ef5f74d5a5f0a7d274bdf69e542a79fb004dcb4c74b0978b54cde7d SHA512 d53e9c7867629e8caf488cef531e258bb2cad3fcbe458e80024b0292fe90148656a77069c45f42e782ba473daafec5cf1fa93e9be00571ceefd21bf59b0ea5a2 WHIRLPOOL 1b6b42fcd0f7263cd7c025d970efa8d1bbe1a199b1703090e541fb3e93a9de0e195825884ec9ac4c87eaeb69ce929e71a55b56bb118d58ff79de08e8550ed82e
diff --git a/dev-libs/link-grammar/files/link-grammar-5.3.9-out-of-source-build.patch b/dev-libs/link-grammar/files/link-grammar-5.3.9-out-of-source-build.patch
new file mode 100644
index 000000000000..6eacc6610f90
--- /dev/null
+++ b/dev-libs/link-grammar/files/link-grammar-5.3.9-out-of-source-build.patch
@@ -0,0 +1,61 @@
+--- a/bindings/python/Makefile.am 2016-08-26 04:28:48.000000000 +0200
++++ b/bindings/python/Makefile.am 2016-09-10 16:13:33.554781694 +0200
+@@ -4,9 +4,8 @@
+ # Created by Linas Vepstas February 2014
+ #
+
+-SWIG_SOURCES = ../swig/link_grammar.i
+-# BUILT_C_SOURCES = $(top_builddir)/bindings/python/lg_python_wrap.cc
+-BUILT_C_SOURCES = ../../bindings/python/lg_python_wrap.cc
++SWIG_SOURCES = $(top_srcdir)/bindings/swig/link_grammar.i
++BUILT_C_SOURCES = $(top_builddir)/bindings/python/lg_python_wrap.cc
+ BUILT_PY_SOURCES = $(top_builddir)/bindings/python/clinkgrammar.py
+
+ # Over-ride the install location, so as to remove the dash in the
+@@ -20,7 +19,7 @@
+ pkgpython_PYTHON = \
+- linkgrammar.py \
++ $(srcdir)/linkgrammar.py \
+ $(top_builddir)/bindings/python/__init__.py \
+- $(top_builddir)/bindings/python/clinkgrammar.py
++ $(BUILT_PY_SOURCES)
+
+
+ # These are packaged in the tarball; make clean should not remove them.
+--- a/bindings/python3/Makefile.am 2016-08-26 04:28:48.000000000 +0200
++++ b/bindings/python3/Makefile.am 2016-09-11 01:30:35.700926275 +0200
+@@ -4,9 +4,8 @@
+ # Created by Linas Vepstas February 2014
+ #
+
+-SWIG_SOURCES = ../swig/link_grammar.i
+-# BUILT_C_SOURCES = $(top_builddir)/bindings/python3/lg_python_wrap.cc
+-BUILT_C_SOURCES = ../../bindings/python3/lg_python_wrap.cc
++SWIG_SOURCES = $(top_srcdir)/bindings/swig/link_grammar.i
++BUILT_C_SOURCES = $(top_builddir)/bindings/python3/lg_python_wrap.cc
+ BUILT_PY_SOURCES = $(top_builddir)/bindings/python3/clinkgrammar.py
+
+ # Over-ride the install location, so as to remove the dash in the
+@@ -18,9 +17,9 @@
+
+ # Files that get installed in $pkgpythondir
+ pkgpython3_PYTHON = \
+- ../../bindings/python/linkgrammar.py \
++ $(top_srcdir)/bindings/python/linkgrammar.py \
+ $(top_builddir)/bindings/python3/__init__.py \
+- $(top_builddir)/bindings/python3/clinkgrammar.py
++ $(BUILT_PY_SOURCES)
+
+
+ # Apparently, anaconda does not work without this!?
+--- a/bindings/python3/Makefile.am 2016-09-11 12:44:01.466971878 +0200
++++ b/bindings/python3/Makefile.am 2016-09-11 12:44:22.385788941 +0200
+@@ -26,7 +26,7 @@
+ # This seems wrong and lme to me, but see issue #298
+ pkgpypathdir=$(pythondir)
+ pkgpypath_PYTHON = \
+- linkgrammar.pth
++ $(srcdir)/linkgrammar.pth
+
+ # These are packaged in the tarball; make clean should not remove them.
+ maintainer-clean-local:
diff --git a/dev-libs/link-grammar/link-grammar-5.3.10.ebuild b/dev-libs/link-grammar/link-grammar-5.3.10.ebuild
new file mode 100644
index 000000000000..fdfa8ffeb611
--- /dev/null
+++ b/dev-libs/link-grammar/link-grammar-5.3.10.ebuild
@@ -0,0 +1,155 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit autotools eutils gnome2 java-pkg-opt-2 python-r1
+
+DESCRIPTION="A Syntactic English parser"
+HOMEPAGE="http://www.abisource.com/projects/link-grammar/ http://www.link.cs.cmu.edu/link/"
+SRC_URI="http://www.abisource.com/downloads/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE="aspell +hunspell java python static-libs threads"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ aspell? ( app-text/aspell )
+ hunspell? ( app-text/hunspell )
+ java? (
+ >=virtual/jdk-1.6:*
+ dev-java/ant-core )
+ python? ( ${PYTHON_DEPS} )
+"
+DEPEND="${RDEPEND}
+ dev-lang/swig:0
+ sys-devel/autoconf-archive
+ virtual/pkgconfig
+"
+
+NORMAL_BUILD_DIR="${WORKDIR}/${P}-normal"
+
+pkg_setup() {
+ if use aspell && use hunspell; then
+ ewarn "You have enabled 'aspell' and 'hunspell' support, but both cannot coexist,"
+ ewarn "only hunspell will be built. Press Ctrl+C and set only 'aspell' USE flag if"
+ ewarn "you want aspell support."
+ fi
+ use java && java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+ use java && java-pkg-opt-2_src_prepare
+
+ # http://bugzilla.abisource.com/show_bug.cgi?id=13806
+ eapply "${FILESDIR}"/${PN}-5.3.9-out-of-source-build.patch
+ eautoreconf
+
+ if use python ; then
+ prepare_python() {
+ mkdir -p "${BUILD_DIR}" || die
+ }
+ python_foreach_impl prepare_python
+ fi
+
+ mkdir -p "${NORMAL_BUILD_DIR}" || die
+ gnome2_src_prepare
+}
+
+src_configure() {
+ local myconf=(
+ --disable-editline
+ --disable-perl-bindings
+ --enable-shared
+ $(use_enable aspell)
+ $(use_enable hunspell)
+ $(usex hunspell --with-hunspell-dictdir=/usr/share/myspell)
+ $(use_enable java java-bindings)
+ $(use_enable static-libs static)
+ $(use_enable threads pthreads)
+ )
+
+ cd "${NORMAL_BUILD_DIR}" || die
+ ECONF_SOURCE="${S}" gnome2_src_configure \
+ --disable-python-bindings \
+ --disable-python3-bindings \
+ ${myconf[@]}
+
+ if use python ; then
+ prepare_python() {
+ if python_is_python3; then
+ ECONF_SOURCE="${S}" gnome2_src_configure \
+ --disable-python-bindings \
+ --enable-python3-bindings \
+ ${myconf[@]}
+ else
+ ECONF_SOURCE="${S}" gnome2_src_configure \
+ --enable-python-bindings \
+ --disable-python3-bindings \
+ ${myconf[@]}
+ fi
+ }
+ python_foreach_impl run_in_build_dir prepare_python
+ fi
+}
+
+src_compile() {
+ cd "${NORMAL_BUILD_DIR}" || die
+ gnome2_src_compile
+
+ if use python ; then
+ compile_binding() {
+ local pysuffix
+ if python_is_python3; then
+ pysuffix=3
+ else
+ pysuffix=
+ fi
+
+ emake -C bindings/python$pysuffix \
+ VPATH="${S}:${NORMAL_BUILD_DIR}" \
+ _clinkgrammar_la_DEPENDENCIES="${NORMAL_BUILD_DIR}"/link-grammar/liblink-grammar.la \
+ _clinkgrammar_la_LIBADD="${NORMAL_BUILD_DIR}"/link-grammar/liblink-grammar.la
+ }
+ python_foreach_impl run_in_build_dir compile_binding
+ fi
+}
+
+src_test() {
+ cd "${NORMAL_BUILD_DIR}" || die
+ ln -s "${S}"/data tests/data || die
+ emake check
+}
+
+src_install() {
+ cd "${NORMAL_BUILD_DIR}" || die
+ gnome2_src_install
+
+ if use python ; then
+ install_binding() {
+ local pysuffix
+ if python_is_python3; then
+ pysuffix=3
+ else
+ pysuffix=
+ fi
+
+ emake -C bindings/python$pysuffix \
+ VPATH="${S}:${NORMAL_BUILD_DIR}" \
+ _clinkgrammar_la_DEPENDENCIES="${NORMAL_BUILD_DIR}"/link-grammar/liblink-grammar.la \
+ _clinkgrammar_la_LIBADD="${NORMAL_BUILD_DIR}"/link-grammar/liblink-grammar.la \
+ DESTDIR="${D}" \
+ install
+ }
+ python_foreach_impl run_in_build_dir install_binding
+ fi
+}
+
+pkg_preinst() {
+ use java && java-pkg-opt-2_pkg_preinst
+ gnome2_pkg_preinst
+}
diff --git a/dev-libs/link-grammar/link-grammar-5.3.11.ebuild b/dev-libs/link-grammar/link-grammar-5.3.11.ebuild
new file mode 100644
index 000000000000..e4fcf63bcaf7
--- /dev/null
+++ b/dev-libs/link-grammar/link-grammar-5.3.11.ebuild
@@ -0,0 +1,164 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit autotools eutils gnome2 java-pkg-opt-2 python-r1
+
+DESCRIPTION="A Syntactic English parser"
+HOMEPAGE="http://www.abisource.com/projects/link-grammar/ http://www.link.cs.cmu.edu/link/"
+SRC_URI="http://www.abisource.com/downloads/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE="aspell +hunspell java python static-libs threads" # pcre
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+# XXX: sqlite is automagic
+# Does not build with >=sci-mathematics/minisat-2, bug #593662
+# add pcre support: pcre? ( dev-libs/libpcre )
+RDEPEND="
+ dev-db/sqlite:3
+ aspell? ( app-text/aspell )
+ hunspell? ( app-text/hunspell )
+ java? (
+ >=virtual/jdk-1.6:*
+ dev-java/ant-core )
+ python? ( ${PYTHON_DEPS} )
+ !sci-mathematics/minisat
+"
+DEPEND="${RDEPEND}
+ dev-lang/swig:0
+ sys-devel/autoconf-archive
+ virtual/pkgconfig
+"
+
+NORMAL_BUILD_DIR="${WORKDIR}/${P}-normal"
+
+pkg_setup() {
+ if use aspell && use hunspell; then
+ ewarn "You have enabled 'aspell' and 'hunspell' support, but both cannot coexist,"
+ ewarn "only hunspell will be built. Press Ctrl+C and set only 'aspell' USE flag if"
+ ewarn "you want aspell support."
+ fi
+ use java && java-pkg-opt-2_pkg_setup
+}
+
+src_prepare() {
+ use java && java-pkg-opt-2_src_prepare
+
+ # http://bugzilla.abisource.com/show_bug.cgi?id=13806
+ eapply "${FILESDIR}"/${PN}-5.3.9-out-of-source-build.patch
+ eapply_user
+ eautoreconf
+
+ if use python ; then
+ prepare_python() {
+ mkdir -p "${BUILD_DIR}" || die
+ }
+ python_foreach_impl prepare_python
+ fi
+
+ mkdir -p "${NORMAL_BUILD_DIR}" || die
+ gnome2_src_prepare
+}
+
+src_configure() {
+ local myconf=(
+ --disable-editline
+ --disable-perl-bindings
+ --enable-shared
+ --enable-sat-solver=bundled
+ $(use_enable aspell)
+ $(use_enable hunspell)
+ $(usex hunspell --with-hunspell-dictdir=/usr/share/myspell)
+ $(use_enable java java-bindings)
+ # $(use_enable pcre regex-tokenizer)
+ # $(use_with pcre)
+ $(use_enable static-libs static)
+ $(use_enable threads pthreads)
+ )
+
+ cd "${NORMAL_BUILD_DIR}" || die
+ ECONF_SOURCE="${S}" gnome2_src_configure \
+ --disable-python-bindings \
+ --disable-python3-bindings \
+ ${myconf[@]}
+
+ if use python ; then
+ prepare_python() {
+ if python_is_python3; then
+ ECONF_SOURCE="${S}" gnome2_src_configure \
+ --disable-python-bindings \
+ --enable-python3-bindings \
+ ${myconf[@]}
+ else
+ ECONF_SOURCE="${S}" gnome2_src_configure \
+ --enable-python-bindings \
+ --disable-python3-bindings \
+ ${myconf[@]}
+ fi
+ }
+ python_foreach_impl run_in_build_dir prepare_python
+ fi
+}
+
+src_compile() {
+ cd "${NORMAL_BUILD_DIR}" || die
+ gnome2_src_compile
+
+ if use python ; then
+ compile_binding() {
+ local pysuffix
+ if python_is_python3; then
+ pysuffix=3
+ else
+ pysuffix=
+ fi
+
+ emake -C bindings/python$pysuffix \
+ VPATH="${S}:${NORMAL_BUILD_DIR}" \
+ _clinkgrammar_la_DEPENDENCIES="${NORMAL_BUILD_DIR}"/link-grammar/liblink-grammar.la \
+ _clinkgrammar_la_LIBADD="${NORMAL_BUILD_DIR}"/link-grammar/liblink-grammar.la
+ }
+ python_foreach_impl run_in_build_dir compile_binding
+ fi
+}
+
+src_test() {
+ cd "${NORMAL_BUILD_DIR}" || die
+ ln -s "${S}"/data tests/data || die
+ emake check
+}
+
+src_install() {
+ cd "${NORMAL_BUILD_DIR}" || die
+ gnome2_src_install
+
+ if use python ; then
+ install_binding() {
+ local pysuffix
+ if python_is_python3; then
+ pysuffix=3
+ else
+ pysuffix=
+ fi
+
+ emake -C bindings/python$pysuffix \
+ VPATH="${S}:${NORMAL_BUILD_DIR}" \
+ _clinkgrammar_la_DEPENDENCIES="${NORMAL_BUILD_DIR}"/link-grammar/liblink-grammar.la \
+ _clinkgrammar_la_LIBADD="${NORMAL_BUILD_DIR}"/link-grammar/liblink-grammar.la \
+ DESTDIR="${D}" \
+ install
+ }
+ python_foreach_impl run_in_build_dir install_binding
+ fi
+}
+
+pkg_preinst() {
+ use java && java-pkg-opt-2_pkg_preinst
+ gnome2_pkg_preinst
+}
diff --git a/dev-libs/link-grammar/metadata.xml b/dev-libs/link-grammar/metadata.xml
new file mode 100644
index 000000000000..d0d22785b362
--- /dev/null
+++ b/dev-libs/link-grammar/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <longdescription lang="en">
+ The Link Grammar Parser is a syntactic parser of English, Russian, Arabic and Persian (and other languages as well),
+ based on Link Grammar, an original theory of syntax and morphology. Given a sentence, the system assigns to it a
+ syntactic structure, which consists of a set of labelled links connecting pairs of words. The parser also produces a "constituent"
+ (HPSG style phrase tree) representation of a sentence (showing noun phrases, verb phrases, etc.).
+ </longdescription>
+ <use>
+ <flag name="aspell">Adds support for <pkg>app-text/aspell</pkg> spell checker</flag>
+ <flag name="hunspell">Adds support for <pkg>app-text/hunspell</pkg> spell checker</flag>
+ </use>
+</pkgmetadata>