Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/link-grammar/
Date: Sat, 22 Jan 2022 12:34:32
Message-Id: 1642854808.0cd4dfd888c697fb2bfbff2d54ed5d163f79c6d7.soap@gentoo
1 commit: 0cd4dfd888c697fb2bfbff2d54ed5d163f79c6d7
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 22 12:33:28 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 22 12:33:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cd4dfd8
7
8 dev-libs/link-grammar: remove broken USE=java
9
10 Bug: https://bugs.gentoo.org/806157
11 Bug: https://bugs.gentoo.org/806160
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 dev-libs/link-grammar/link-grammar-5.9.1.ebuild | 30 +++++++++----------------
15 1 file changed, 10 insertions(+), 20 deletions(-)
16
17 diff --git a/dev-libs/link-grammar/link-grammar-5.9.1.ebuild b/dev-libs/link-grammar/link-grammar-5.9.1.ebuild
18 index 7d7c3b6289d0..9cd72d301f29 100644
19 --- a/dev-libs/link-grammar/link-grammar-5.9.1.ebuild
20 +++ b/dev-libs/link-grammar/link-grammar-5.9.1.ebuild
21 @@ -1,11 +1,11 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 +# Copyright 1999-2022 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 -EAPI=7
27 +EAPI=8
28
29 -PYTHON_COMPAT=( python3_{7..9} )
30 +PYTHON_COMPAT=( python3_{8..10} )
31
32 -inherit autotools java-pkg-opt-2 python-r1 out-of-source
33 +inherit autotools python-r1 out-of-source
34
35 DESCRIPTION="A Syntactic English parser"
36 HOMEPAGE="https://www.abisource.com/projects/link-grammar/ https://www.link.cs.cmu.edu/link/"
37 @@ -14,7 +14,7 @@ SRC_URI="https://www.abisource.com/downloads/${PN}/${PV}/${P}.tar.gz"
38 LICENSE="LGPL-2.1"
39 SLOT="0/5"
40 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
41 -IUSE="aspell +hunspell java python" # pcre
42 +IUSE="aspell +hunspell python" # pcre
43 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
44
45 # XXX: sqlite is automagic
46 @@ -24,10 +24,6 @@ RDEPEND="
47 dev-db/sqlite:3
48 aspell? ( app-text/aspell )
49 hunspell? ( app-text/hunspell )
50 - java? (
51 - >=virtual/jdk-1.6:*
52 - dev-java/ant-core
53 - )
54 python? ( ${PYTHON_DEPS} )
55 !sci-mathematics/minisat"
56 DEPEND="${RDEPEND}"
57 @@ -36,21 +32,18 @@ BDEPEND="
58 sys-devel/autoconf-archive
59 virtual/pkgconfig"
60
61 +PATCHES=( "${FILESDIR}"/${PN}-5.8.1-lld.patch )
62 +
63 pkg_setup() {
64 if use aspell && use hunspell; then
65 ewarn "You have enabled 'aspell' and 'hunspell' support, but both cannot coexist,"
66 ewarn "only hunspell will be built. Press Ctrl+C and set only 'aspell' USE flag if"
67 ewarn "you want aspell support."
68 fi
69 - use java && java-pkg-opt-2_pkg_setup
70 }
71
72 src_prepare() {
73 default
74 - use java && java-pkg-opt-2_src_prepare
75 -
76 - eapply "${FILESDIR}"/${PN}-5.8.1-lld.patch
77 -
78 eautoreconf
79 }
80
81 @@ -58,13 +51,14 @@ my_src_configure() {
82 local myconf=(
83 --disable-maintainer-mode
84 --disable-editline
85 + # java is hopelessly broken, invokes maven at build time (bug #806157)
86 + --disable-java-bindings
87 --disable-perl-bindings
88 --disable-static
89 --enable-sat-solver=bundled
90 $(use_enable aspell)
91 $(use_enable hunspell)
92 - $(usex hunspell --with-hunspell-dictdir="${EPREFIX}"/usr/share/myspell '')
93 - $(use_enable java java-bindings)
94 + $(usev hunspell --with-hunspell-dictdir="${EPREFIX}"/usr/share/myspell)
95 # $(use_enable pcre regex-tokenizer)
96 # $(use_with pcre)
97 )
98 @@ -117,7 +111,3 @@ my_src_install() {
99 # no static archives
100 find "${ED}" -name '*.la' -delete || die
101 }
102 -
103 -pkg_preinst() {
104 - use java && java-pkg-opt-2_pkg_preinst
105 -}