public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/lucene/
Date: Tue, 10 Sep 2024 06:46:14 +0000 (UTC)	[thread overview]
Message-ID: <1725950438.f67b3c2d36cf8921b18772d84247bb3626c676f9.fordfrog@gentoo> (raw)

commit:     f67b3c2d36cf8921b18772d84247bb3626c676f9
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Thu Jun 20 16:56:03 2024 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Tue Sep 10 06:40:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f67b3c2d

dev-java/lucene: 2.4.1-r5 build without BSFIX, drop java-ant-2

Changes since 2.4.1-r4:
- no longer inherits java-ant-2.eclass
- handles javac.source and javac.target in build.properties
- no longer uses the use_doc function which can now get deprecated
- uses 'ant test' instead of 'eant test' which generates a different
  output with summaries instead of details.

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-java/lucene/lucene-2.4.1-r5.ebuild | 81 ++++++++++++++++++++++++++++++++++
 1 file changed, 81 insertions(+)

diff --git a/dev-java/lucene/lucene-2.4.1-r5.ebuild b/dev-java/lucene/lucene-2.4.1-r5.ebuild
new file mode 100644
index 000000000000..a3429854eef1
--- /dev/null
+++ b/dev-java/lucene/lucene-2.4.1-r5.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+
+inherit java-pkg-2 verify-sig
+
+DESCRIPTION="High-performance, full-featured text search engine written entirely in Java"
+HOMEPAGE="https://lucene.apache.org"
+SRC_URI="https://archive.apache.org/dist/${PN}/java/${P}-src.tar.gz
+	verify-sig?	( https://archive.apache.org/dist/${PN}/java/${P}-src.tar.gz.asc )"
+
+LICENSE="Apache-2.0"
+SLOT="2.4"
+KEYWORDS="~amd64 ~x86"
+
+VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/lucene.apache.org.asc"
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-apache-lucene )"
+
+# Restricting to jdk:1.8 since it fails to build with openjdk-17
+# BUILD FAILED
+# /var/tmp/portage/dev-java/lucene-2.4.1-r3/work/lucene-2.4.1/build.xml:52: \
+# rmic does not exist under Java 15 and higher,
+# use rmic of an older JDK and explicitly set the executable attribute
+DEPEND="
+	dev-java/javacc:0
+	virtual/jdk:1.8
+	test? (
+		>=dev-java/ant-1.10.14-r3:0[junit]
+		dev-java/junit:0
+	)"
+
+RDEPEND=">=virtual/jre-1.8:*"
+
+PATCHES=(
+	"${FILESDIR}/lucene-2.4.1-skipFailingTest.patch"
+	"${FILESDIR}/lucene-2.4.1-javacc.home.patch"
+)
+
+src_prepare() {
+	default #780585
+	java-pkg-2_src_prepare
+	java-pkg_clean
+
+	cat > build.properties <<-EOF || die
+		ant.build.javac.source=$(java-pkg_get-source)
+		ant.build.javac.target=$(java-pkg_get-target)
+		javac.source=$(java-pkg_get-source)
+		javac.target=$(java-pkg_get-target)
+		javacc.home=${EPREFIX}/usr/share/javacc/lib/
+		junit-location.jar=$(java-pkg_getjars --build-only junit)
+	EOF
+
+	rm docs/skin/images/instruction_arrow.png || die #: broken IDAT window length
+	rm docs/images/instruction_arrow.png || die #: broken IDAT window length
+}
+
+src_compile() {
+	eant javacc
+
+	eant -Dversion=${PV} jar-core jar-demo
+	use doc && eant -Dversion=${PV} javadocs-core javadocs-demo
+}
+
+src_test() {
+	ant test-core
+}
+
+src_install() {
+	einstalldocs
+	java-pkg_newjar "build/${PN}-core-${PV}.jar" "${PN}-core.jar"
+	java-pkg_newjar "build/${PN}-demos-${PV}.jar" "${PN}-demos.jar"
+
+	if use doc; then
+		dodoc -r docs
+		java-pkg_dohtml -r build/docs/api
+	fi
+	use source && java-pkg_dosrc src/java/org
+}


             reply	other threads:[~2024-09-10  6:46 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-10  6:46 Miroslav Šulc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-10 19:11 [gentoo-commits] repo/gentoo:master commit in: dev-java/lucene/ Miroslav Šulc
2024-09-10 19:11 Miroslav Šulc
2022-04-23  7:05 Miroslav Šulc
2022-04-22 18:10 Arthur Zamarin
2022-04-22 18:10 Arthur Zamarin
2022-03-15 23:20 Sam James
2022-03-15 17:23 Sam James
2021-06-11  8:33 Miroslav Šulc
2020-05-04 22:43 Jonas Stein
2018-11-04 13:50 Pacho Ramos
2018-04-18 14:13 Aaron Bauman
2018-03-17 13:37 Pacho Ramos
2018-01-03 10:08 Patrice Clement
2018-01-03 10:08 Patrice Clement
2018-01-03 10:08 Patrice Clement
2018-01-03 10:08 Patrice Clement
2018-01-03 10:08 Patrice Clement
2018-01-03 10:08 Patrice Clement
2018-01-03 10:08 Patrice Clement
2018-01-03 10:08 Patrice Clement
2017-04-08 21:57 Patrice Clement
2016-04-07  9:26 James Le Cuirot

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=1725950438.f67b3c2d36cf8921b18772d84247bb3626c676f9.fordfrog@gentoo \
    --to=fordfrog@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