public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/link-grammar/
Date: Fri,  7 Oct 2022 08:24:18 +0000 (UTC)	[thread overview]
Message-ID: <1665131047.ec0b424cc40733b0a3b00c1e6c4b78796028591d.soap@gentoo> (raw)

commit:     ec0b424cc40733b0a3b00c1e6c4b78796028591d
Author:     Guillermo Joandet <gjoandet <AT> gmail <DOT> com>
AuthorDate: Fri Oct  7 08:24:07 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Oct  7 08:24:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec0b424c

dev-libs/link-grammar: bump version to 5.11.0

Closes: https://github.com/gentoo/gentoo/pull/27622
Signed-off-by: Guillermo Joandet <gjoandet <AT> gmail.com>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 dev-libs/link-grammar/Manifest                   |   1 +
 dev-libs/link-grammar/link-grammar-5.11.0.ebuild | 109 +++++++++++++++++++++++
 2 files changed, 110 insertions(+)

diff --git a/dev-libs/link-grammar/Manifest b/dev-libs/link-grammar/Manifest
index ccf3b3c9db3f..57fee7077469 100644
--- a/dev-libs/link-grammar/Manifest
+++ b/dev-libs/link-grammar/Manifest
@@ -1 +1,2 @@
 DIST link-grammar-5.10.5.tar.gz 4637765 BLAKE2B d280a06492462725c9c62352b6bf4fb0a11a09b2b3049e41d9a078fa2ad37c8ef0f0e99e05039e355e81d127c168024068319a4fcf64caa840c00c165ed22f11 SHA512 09774f7ce01bc7ec9912162297c9b7be176e655b70981a147d53245c015f62581e7f45c005d0590d1a65e870e3c2ac4288517012fd9caa9887e4fd86d8e6aa05
+DIST link-grammar-5.11.0.tar.gz 4672430 BLAKE2B 35892e05805a83ebbd700611d19aaa9ad1ede4ba3baf60c85ef8e5abbc40134fcb71d9cb9f41518f663c60ad11aac7bd0b316c8c95a12631032f5ad79564d686 SHA512 6a24bc8d5c9f0dd63460c092fc46880503018e949aa277148f8f551d6cc9d929d3a981eeaba00afc6e618c1e4505438d0c7e9a57dfe7a8deb7d3a8f183c56636

diff --git a/dev-libs/link-grammar/link-grammar-5.11.0.ebuild b/dev-libs/link-grammar/link-grammar-5.11.0.ebuild
new file mode 100644
index 000000000000..ed4f65314cd3
--- /dev/null
+++ b/dev-libs/link-grammar/link-grammar-5.11.0.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit autotools python-r1 out-of-source
+
+DESCRIPTION="A Syntactic English parser"
+HOMEPAGE="https://www.abisource.com/projects/link-grammar/ https://www.link.cs.cmu.edu/link/"
+SRC_URI="https://www.abisource.com/downloads/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/5"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="aspell +hunspell python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+# XXX: sqlite is automagic
+# Does not build with >=sci-mathematics/minisat-2, bug #593662
+RDEPEND="
+	dev-db/sqlite:3
+	dev-libs/libpcre2:=
+	aspell? ( app-text/aspell )
+	hunspell? ( app-text/hunspell )
+	python? ( ${PYTHON_DEPS} )
+	!sci-mathematics/minisat"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	dev-lang/swig:0
+	sys-devel/autoconf-archive
+	virtual/pkgconfig"
+
+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
+}
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+my_src_configure() {
+	local myconf=(
+		--disable-maintainer-mode
+		--disable-editline
+		# java is hopelessly broken, invokes maven at build time (bug #806157)
+		--disable-java-bindings
+		--disable-perl-bindings
+		--enable-sat-solver=bundled
+		--with-regexlib=pcre2
+		$(use_enable aspell)
+		$(use_enable hunspell)
+		$(usev hunspell --with-hunspell-dictdir="${EPREFIX}"/usr/share/myspell)
+	)
+
+	econf \
+		--disable-python-bindings \
+		"${myconf[@]}"
+
+	if use python; then
+		python_configure() {
+			econf \
+				--enable-python-bindings \
+				"${myconf[@]}"
+		}
+		python_foreach_impl run_in_build_dir python_configure
+	fi
+}
+
+my_src_compile() {
+	local -x MAIN_BUILD_DIR="${BUILD_DIR}"
+	default
+
+	if use python; then
+		python_compile() {
+			emake -C bindings/python \
+				VPATH="${S}:${MAIN_BUILD_DIR}" \
+				_clinkgrammar_la_DEPENDENCIES="${MAIN_BUILD_DIR}"/link-grammar/liblink-grammar.la \
+				_clinkgrammar_la_LIBADD="${MAIN_BUILD_DIR}"/link-grammar/liblink-grammar.la
+		}
+		python_foreach_impl run_in_build_dir python_compile
+	fi
+}
+
+my_src_install() {
+	local -x MAIN_BUILD_DIR="${BUILD_DIR}"
+	default
+
+	if use python; then
+		python_install() {
+			emake -C bindings/python \
+				VPATH="${S}:${MAIN_BUILD_DIR}" \
+				_clinkgrammar_la_DEPENDENCIES="${MAIN_BUILD_DIR}"/link-grammar/liblink-grammar.la \
+				_clinkgrammar_la_LIBADD="${MAIN_BUILD_DIR}"/link-grammar/liblink-grammar.la \
+				DESTDIR="${D}" \
+				install
+		}
+		python_foreach_impl run_in_build_dir python_install
+	fi
+
+	# no static archives
+	find "${ED}" -name '*.la' -delete || die
+}


             reply	other threads:[~2022-10-07  8:24 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-07  8:24 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-04 13:31 [gentoo-commits] repo/gentoo:master commit in: dev-libs/link-grammar/ David Seifert
2024-06-03  7:51 David Seifert
2024-05-28 13:19 Sam James
2024-05-28 12:11 Michał Górny
2024-05-11 16:22 David Seifert
2024-02-15  9:26 David Seifert
2023-08-02 16:18 Sam James
2023-05-04 11:01 David Seifert
2023-04-27 23:29 Sam James
2023-04-27 21:29 Sam James
2023-04-27 21:29 Sam James
2023-03-26 10:23 David Seifert
2023-03-25 11:03 David Seifert
2023-02-19 11:45 David Seifert
2023-02-11 17:54 Sam James
2023-02-11 17:54 Sam James
2023-02-11 17:54 Sam James
2023-01-13 19:03 Arthur Zamarin
2022-12-24  0:19 Matt Turner
2022-11-05 18:58 Arthur Zamarin
2022-10-30  1:50 Matt Turner
2022-08-15 17:04 Arthur Zamarin
2022-07-03 10:31 David Seifert
2022-07-03 10:31 David Seifert
2022-06-20 19:55 Matt Turner
2022-04-11  6:35 Jakov Smolić
2022-04-10 17:47 Arthur Zamarin
2022-03-19  7:53 Agostino Sarubbo
2022-03-10  9:13 Agostino Sarubbo
2022-03-10  8:36 David Seifert
2022-01-22 13:12 David Seifert
2022-01-22 13:12 David Seifert
2022-01-22 12:34 David Seifert
2022-01-22 12:34 David Seifert
2021-12-13  5:54 Yixun Lan
2021-06-23 21:33 David Seifert
2020-12-14  0:46 Sam James
2020-09-28 17:41 Sergei Trofimovich
2020-09-04  3:20 Sam James
2020-09-03 14:29 Thomas Deutschmann
2020-07-03 23:22 Aaron Bauman
2020-04-04 11:07 Sergei Trofimovich
2020-02-10 21:00 Michał Górny
2018-06-27 20:32 Pacho Ramos
2017-12-10  0:36 Sergei Trofimovich
2017-10-30 22:26 Mart Raudsepp
2017-03-16 13:24 Jeroen Roovers
2017-02-15 19:24 Mart Raudsepp
2016-10-16 22:23 Gilles Dartiguelongue
2016-09-17 13:32 Pacho Ramos
2016-09-11 11:28 Gilles Dartiguelongue
2016-07-30 10:27 Jeroen Roovers
2016-02-21 10:46 Pacho Ramos
2016-02-17 21:34 Dennis Lamm
2016-02-17 19:34 Dennis Lamm
2016-02-14 23:25 Dennis Lamm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1665131047.ec0b424cc40733b0a3b00c1e6c4b78796028591d.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox