1 |
commit: 17ac6a90c21775f4a6d237a820d998d0d1a37c81 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 22 13:12:42 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 22 13:12:42 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17ac6a90 |
7 |
|
8 |
dev-libs/link-grammar: add 5.10.2 |
9 |
|
10 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
11 |
|
12 |
dev-libs/link-grammar/Manifest | 1 + |
13 |
dev-libs/link-grammar/link-grammar-5.10.2.ebuild | 113 +++++++++++++++++++++++ |
14 |
2 files changed, 114 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/link-grammar/Manifest b/dev-libs/link-grammar/Manifest |
17 |
index b873ef15a703..e40a0cacbd15 100644 |
18 |
--- a/dev-libs/link-grammar/Manifest |
19 |
+++ b/dev-libs/link-grammar/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
+DIST link-grammar-5.10.2.tar.gz 3853934 BLAKE2B d2cb64a6b0146f40ce5b197c21ded94f1256360615c2332a1c546f6b6c71c98d2500e97b0fcabae964377a04143fa13ba3af324f2de729cfccd280e53f6fb7c3 SHA512 71bc881cb628fe1898403024d8e949b2fbf44f5d20445f6fff7bb6038646840556d734434beb7eb43b63f661e18333657deaeb1b8c96b50d5fe3b6ef727565c2 |
22 |
DIST link-grammar-5.8.0.tar.gz 3782125 BLAKE2B 8027e91212d3269b8e3ceaa5c837ad961cd2dfd92849d3989094ab771d97d30f4b228cfc1e32e9e843676aa439d790fb444823f7db69004538ad068c7bf28a45 SHA512 1262e2faf1de6f05a62f9d622f43c02253b4c241342df9b443a70ae04bd328d1fc49cd2f91c881e694f67215005833fec8b1fa9d395b1e547985b376c7415d2e |
23 |
DIST link-grammar-5.8.1.tar.gz 3791847 BLAKE2B 8c89b95eaae87f0b576374c3f8c00529d61b62004718424d1ac1a41b694d8b56ba75d0a7068e1411376c260781f5adae8512976a6572e54f18d84abe98c1839e SHA512 0ef99d3ccb3d922a946f1f73b8b81cee9ece156886dab3367837e1e9f79944967da1391daf7f96ea5a95a0abdd346b642111a7939eb9aa079557c10b3efe8022 |
24 |
DIST link-grammar-5.9.1.tar.gz 3809872 BLAKE2B fe0c407e2e4ea4201036647cbea7d4c2606fa9943653fcc2d3505963a00773006912b8af5c2762acf498220d2f48319a031736d59790c0fed616432973ea24ec SHA512 c8d8bc99ddd6f6190ebcb24fcafc79497c3eeab1deb3099691f55c735a0a607a8372a8dca5cd86ce7c20cd3a45e4f1cbf91bef39dc781a5b5a2246006b4f601e |
25 |
|
26 |
diff --git a/dev-libs/link-grammar/link-grammar-5.10.2.ebuild b/dev-libs/link-grammar/link-grammar-5.10.2.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..9cd72d301f29 |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/link-grammar/link-grammar-5.10.2.ebuild |
31 |
@@ -0,0 +1,113 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+ |
39 |
+inherit autotools python-r1 out-of-source |
40 |
+ |
41 |
+DESCRIPTION="A Syntactic English parser" |
42 |
+HOMEPAGE="https://www.abisource.com/projects/link-grammar/ https://www.link.cs.cmu.edu/link/" |
43 |
+SRC_URI="https://www.abisource.com/downloads/${PN}/${PV}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="LGPL-2.1" |
46 |
+SLOT="0/5" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
48 |
+IUSE="aspell +hunspell python" # pcre |
49 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
50 |
+ |
51 |
+# XXX: sqlite is automagic |
52 |
+# Does not build with >=sci-mathematics/minisat-2, bug #593662 |
53 |
+# add pcre support: pcre? ( dev-libs/libpcre ) |
54 |
+RDEPEND=" |
55 |
+ dev-db/sqlite:3 |
56 |
+ aspell? ( app-text/aspell ) |
57 |
+ hunspell? ( app-text/hunspell ) |
58 |
+ python? ( ${PYTHON_DEPS} ) |
59 |
+ !sci-mathematics/minisat" |
60 |
+DEPEND="${RDEPEND}" |
61 |
+BDEPEND=" |
62 |
+ dev-lang/swig:0 |
63 |
+ sys-devel/autoconf-archive |
64 |
+ virtual/pkgconfig" |
65 |
+ |
66 |
+PATCHES=( "${FILESDIR}"/${PN}-5.8.1-lld.patch ) |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ if use aspell && use hunspell; then |
70 |
+ ewarn "You have enabled 'aspell' and 'hunspell' support, but both cannot coexist," |
71 |
+ ewarn "only hunspell will be built. Press Ctrl+C and set only 'aspell' USE flag if" |
72 |
+ ewarn "you want aspell support." |
73 |
+ fi |
74 |
+} |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ eautoreconf |
79 |
+} |
80 |
+ |
81 |
+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 |
+ $(usev hunspell --with-hunspell-dictdir="${EPREFIX}"/usr/share/myspell) |
93 |
+ # $(use_enable pcre regex-tokenizer) |
94 |
+ # $(use_with pcre) |
95 |
+ ) |
96 |
+ |
97 |
+ econf \ |
98 |
+ --disable-python-bindings \ |
99 |
+ "${myconf[@]}" |
100 |
+ |
101 |
+ if use python; then |
102 |
+ python_configure() { |
103 |
+ econf \ |
104 |
+ --enable-python-bindings \ |
105 |
+ "${myconf[@]}" |
106 |
+ } |
107 |
+ python_foreach_impl run_in_build_dir python_configure |
108 |
+ fi |
109 |
+} |
110 |
+ |
111 |
+my_src_compile() { |
112 |
+ local -x MAIN_BUILD_DIR="${BUILD_DIR}" |
113 |
+ default |
114 |
+ |
115 |
+ if use python; then |
116 |
+ python_compile() { |
117 |
+ emake -C bindings/python \ |
118 |
+ VPATH="${S}:${MAIN_BUILD_DIR}" \ |
119 |
+ _clinkgrammar_la_DEPENDENCIES="${MAIN_BUILD_DIR}"/link-grammar/liblink-grammar.la \ |
120 |
+ _clinkgrammar_la_LIBADD="${MAIN_BUILD_DIR}"/link-grammar/liblink-grammar.la |
121 |
+ } |
122 |
+ python_foreach_impl run_in_build_dir python_compile |
123 |
+ fi |
124 |
+} |
125 |
+ |
126 |
+my_src_install() { |
127 |
+ local -x MAIN_BUILD_DIR="${BUILD_DIR}" |
128 |
+ default |
129 |
+ |
130 |
+ if use python; then |
131 |
+ python_install() { |
132 |
+ emake -C bindings/python \ |
133 |
+ VPATH="${S}:${MAIN_BUILD_DIR}" \ |
134 |
+ _clinkgrammar_la_DEPENDENCIES="${MAIN_BUILD_DIR}"/link-grammar/liblink-grammar.la \ |
135 |
+ _clinkgrammar_la_LIBADD="${MAIN_BUILD_DIR}"/link-grammar/liblink-grammar.la \ |
136 |
+ DESTDIR="${D}" \ |
137 |
+ install |
138 |
+ } |
139 |
+ python_foreach_impl run_in_build_dir python_install |
140 |
+ fi |
141 |
+ |
142 |
+ # no static archives |
143 |
+ find "${ED}" -name '*.la' -delete || die |
144 |
+} |