diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2016-10-17 00:17:44 +0200 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2016-10-17 00:23:08 +0200 |
commit | 8b79d5fda5f56ef4d06107b877fb3292ad96e7ab (patch) | |
tree | a241832844f3749e599a9d9bcc9270d62f11163f /dev-libs/link-grammar | |
parent | x11-libs/gtk+: move gtk-engines-adwaita to PDEPEND (diff) | |
download | gentoo-8b79d5fda5f56ef4d06107b877fb3292ad96e7ab.tar.gz gentoo-8b79d5fda5f56ef4d06107b877fb3292ad96e7ab.tar.bz2 gentoo-8b79d5fda5f56ef4d06107b877fb3292ad96e7ab.zip |
dev-libs/link-grammar: version bump 5.3.10 → 5.3.11
Fix some dependency issues. Still cannot use system minisat, see bug #593662.
Package-Manager: portage-2.3.1
Diffstat (limited to 'dev-libs/link-grammar')
-rw-r--r-- | dev-libs/link-grammar/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/link-grammar/link-grammar-5.3.11.ebuild | 164 |
2 files changed, 165 insertions, 0 deletions
diff --git a/dev-libs/link-grammar/Manifest b/dev-libs/link-grammar/Manifest index 3b7d7a8d6c7a..ff34afa6ea68 100644 --- a/dev-libs/link-grammar/Manifest +++ b/dev-libs/link-grammar/Manifest @@ -1,3 +1,4 @@ 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 DIST link-grammar-5.3.7.tar.gz 3555475 SHA256 d0cf0061cccccfdc7c539e1f402da11b5fe2783940546560cd11a05382263a6a SHA512 f1a1e03841f847d427acb24cfb7a7a552ade6731253cf5f2ce6fcb82be387426d7cb5b47a82523f01fc56771c0667881ae663380dbc644e775694029c7fef740 WHIRLPOOL 86bf7f2e26a6e3e5c560c85719d2a8823846ad1d4a273641104111bff2523c431f459a38415c22c12db61dc344ac99e8dd33dcb7210ee42d5517f39c1e0ff90f DIST link-grammar-5.3.9.tar.gz 3597250 SHA256 fa0a9957607705a42dbfa6bddae6567fdd11c0f648157dc824bb6facf873156a SHA512 1fa7c36c53c0525e774239fd3d9c6159ae6416b0ca3d1a4d6883c77443132fed22d13d367f26dc335b75e40ecdb163e0057d1cd1f76ffa92c7f7cbd18f31266f WHIRLPOOL 8954f0d285e9b1b045781a2cf40d401dfafb51a3f7506251d4542509d260f7f501375f9a9b036359717e7b3d0a90d5a78cd02df947bc7d9027eff274caacf61b 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..b4a0f176a68a --- /dev/null +++ b/dev-libs/link-grammar/link-grammar-5.3.11.ebuild @@ -0,0 +1,164 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 + +# 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 +} |