From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/saxon/
Date: Tue, 15 Mar 2022 17:23:03 +0000 (UTC) [thread overview]
Message-ID: <1647364873.7532debbd0d4f7137af6bd8fb6dae092dcb8ddd9.sam@gentoo> (raw)
commit: 7532debbd0d4f7137af6bd8fb6dae092dcb8ddd9
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Sat Mar 12 08:20:31 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 15 17:21:13 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7532debb
dev-java/saxon: 9.2.0.6-r3 min java 1.8:*
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/24484
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-java/saxon/saxon-9.2.0.6-r3.ebuild | 90 ++++++++++++++++++++++++++++++++++
1 file changed, 90 insertions(+)
diff --git a/dev-java/saxon/saxon-9.2.0.6-r3.ebuild b/dev-java/saxon/saxon-9.2.0.6-r3.ebuild
new file mode 100644
index 000000000000..df8fd42a18eb
--- /dev/null
+++ b/dev-java/saxon/saxon-9.2.0.6-r3.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="A XSLT and XQuery Processor"
+HOMEPAGE="http://saxon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/saxon/Saxon-HE/$(ver_cut 1-2)/saxonhe${PV//./-}source.zip"
+
+LICENSE="MPL-1.0"
+SLOT="9"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+
+CDEPEND="
+ dev-java/xom:0
+ dev-java/jdom:0
+ dev-java/dom4j:1
+ dev-java/ant-core"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.8:*"
+
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.8:*"
+
+BDEPEND="app-arch/unzip"
+
+S="${WORKDIR}"
+
+# prepare eclass variables
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+JAVA_ANT_CLASSPATH_TAGS="javac javadoc"
+
+src_prepare() {
+ default
+
+ # Fedora-inspired removal.
+
+ # deadNET.
+ rm -rv net/sf/saxon/dotnet || die
+
+ # Depends on XQJ (javax.xml.xquery).
+ rm -rv net/sf/saxon/xqj || die
+
+ # This requires a EE edition feature (com.saxonica.xsltextn).
+ rm -v net/sf/saxon/option/sql/SQLElementFactory.java || die
+
+ # <major>.<minor> version
+ local version="$(ver_cut 1-2)"
+
+ # generate build.xml with external javadoc links
+ sed -e "s:@JDK@:1.6:" \
+ -e "s:@JDOM@:1:" \
+ < "${FILESDIR}/${version}-build.xml" \
+ > "${S}/build.xml" \
+ || die "build.xml generation failed!"
+
+ # prepare creates the dir for properties
+ eant prepare
+
+ # properties
+ cp -v \
+ "${FILESDIR}/${version}-edition.properties" \
+ "${S}/build/classes/edition.properties" || die
+}
+
+src_compile() {
+ local gcp="$(java-pkg_getjars dom4j-1,jdom,xom)"
+ gcp="${gcp}:$(java-pkg_getjars --build-only ant-core)"
+ eant -Dgentoo.classpath="${gcp}" jar $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar build/lib/${PN}.jar
+
+ java-pkg_dolauncher ${PN}${SLOT}-transform --main net.sf.saxon.Transform
+ java-pkg_dolauncher ${PN}${SLOT}-query --main net.sf.saxon.Query
+
+ java-pkg_register-ant-task
+
+ use doc && java-pkg_dojavadoc build/api
+
+ use source && java-pkg_dosrc src
+}
next reply other threads:[~2022-03-15 17:23 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-15 17:23 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-07-15 11:14 [gentoo-commits] repo/gentoo:master commit in: dev-java/saxon/ Miroslav Šulc
2024-07-14 15:39 Sam James
2024-07-14 8:36 Arthur Zamarin
2024-07-14 8:36 Arthur Zamarin
2024-07-14 8:36 Arthur Zamarin
2024-06-14 10:12 Miroslav Šulc
2024-04-17 9:12 Miroslav Šulc
2023-12-17 10:06 Miroslav Šulc
2023-10-24 12:54 Miroslav Šulc
2022-04-23 7:05 Miroslav Šulc
2022-04-22 18:10 Arthur Zamarin
2022-04-22 18:10 Arthur Zamarin
2022-04-22 18:10 Arthur Zamarin
2022-04-22 18:10 Arthur Zamarin
2022-04-15 6:36 Arthur Zamarin
2022-04-15 6:22 Agostino Sarubbo
2022-03-15 17:23 Sam James
2020-10-20 4:11 Sam James
2019-05-18 1:14 Aaron Bauman
2018-04-14 19:18 Mikle Kolyada
2018-04-14 19:18 Mikle Kolyada
2018-04-12 20:54 Thomas Deutschmann
2018-04-05 3:29 Aaron Bauman
2018-03-14 15:01 Mikle Kolyada
2018-03-03 20:42 Patrice Clement
2017-07-13 18:32 Alexis Ballier
2017-03-21 23:00 Patrice Clement
2017-03-21 23:00 Patrice Clement
2017-03-21 23:00 Patrice Clement
2015-10-17 22:36 Patrice Clement
2015-09-29 21:20 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=1647364873.7532debbd0d4f7137af6bd8fb6dae092dcb8ddd9.sam@gentoo \
--to=sam@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