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/qdox/
Date: Sun,  3 Apr 2022 06:56:30 +0000 (UTC)	[thread overview]
Message-ID: <1648968989.7c95644efcd9fcb727bdaf35808bd5085c4f9464.fordfrog@gentoo> (raw)

commit:     7c95644efcd9fcb727bdaf35808bd5085c4f9464
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Sat Apr  2 08:21:14 2022 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sun Apr  3 06:56:29 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c95644e

dev-java/qdox: EAPI 8, drop unused java-ant-2 eclass

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/24860
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-java/qdox/qdox-1.12.1-r3.ebuild | 86 +++++++++++++++++++++++++++++++++++++
 1 file changed, 86 insertions(+)

diff --git a/dev-java/qdox/qdox-1.12.1-r3.ebuild b/dev-java/qdox/qdox-1.12.1-r3.ebuild
new file mode 100644
index 000000000000..b4f4cd178563
--- /dev/null
+++ b/dev-java/qdox/qdox-1.12.1-r3.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="com.thoughtworks.qdox:qdox:1.12.1"
+
+inherit java-pkg-2
+
+DESCRIPTION="Parser for extracting class/interface/method definitions"
+HOMEPAGE="https://github.com/codehaus/qdox"
+SRC_URI="https://github.com/codehaus/qdox/archive/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="1.12"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~ppc-macos ~x64-macos"
+
+S="${WORKDIR}/${PN}-${PN}-${PV}"
+
+CDEPEND="dev-java/ant-core:0"
+
+DEPEND=">=virtual/jdk-1.8:*
+	dev-java/byaccj:0
+	>=dev-java/jflex-1.6.1:0
+	dev-java/jmock:1.0
+	test? ( dev-java/junit:0 )
+	${CDEPEND}"
+
+RDEPEND=">=virtual/jre-1.8:*
+	${CDEPEND}"
+
+PATCHES=(
+	"${FILESDIR}/jflex-1.6.1.patch"
+)
+
+src_prepare() {
+	default
+
+	if ! use test ; then
+		rm src/java/com/thoughtworks/qdox/tools/QDoxTester.java
+		rm -rf src/java/com/thoughtworks/qdox/junit
+		rm -rf src/test
+	fi
+}
+
+src_compile() {
+	jflex src/grammar/lexer.flex --skel src/grammar/skeleton.inner -d src/java/com/thoughtworks/qdox/parser/impl/ || die
+	byaccj -v -Jnorun -Jnoconstruct -Jclass=Parser -Jsemantic=Value -Jpackage=com.thoughtworks.qdox.parser.impl src/grammar/parser.y || die
+	mv Parser.java src/java/com/thoughtworks/qdox/parser/impl/ || die
+
+	# create jar
+	mkdir -p build/classes || die
+
+	local cp="$(java-pkg_getjars --build-only ant-core,jmock-1.0)"
+
+	if use test ; then
+		cp="${cp}:$(java-pkg_getjars --build-only junit)"
+	fi
+
+	ejavac -sourcepath . -d build/classes -classpath "${cp}" \
+		$(find . -name "*.java") || die "Cannot compile sources"
+
+	mkdir dist || die
+	cd build/classes || die
+	jar -cvf "${S}"/dist/${PN}.jar com || die "Cannot create JAR"
+
+	# generate javadoc
+	if use doc ; then
+		cd "${S}"
+		mkdir javadoc || die
+		javadoc -d javadoc -sourcepath src/java -subpackages com -classpath "${cp}"
+	fi
+}
+
+src_test() {
+	java -cp "${S}"/dist/${PN}.jar:$(java-pkg_getjars --build-only ant-core,junit,jmock-1.0) \
+		com.thoughtworks.qdox.tools.QDoxTester src || die "Tests failed!"
+}
+
+src_install() {
+	java-pkg_dojar dist/${PN}.jar
+
+	use source && java-pkg_dosrc src/java/com
+	use doc && java-pkg_dojavadoc javadoc
+}


             reply	other threads:[~2022-04-03  6:56 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-03  6:56 Miroslav Šulc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-28 14:03 [gentoo-commits] repo/gentoo:master commit in: dev-java/qdox/ Arthur Zamarin
2024-09-28 10:09 Arthur Zamarin
2024-09-28  9:44 Arthur Zamarin
2024-09-28  9:44 Arthur Zamarin
2024-09-28  9:38 Sam James
2024-08-30 11:06 Arthur Zamarin
2024-08-30 11:06 Arthur Zamarin
2024-05-25  9:27 Miroslav Šulc
2024-04-17  9:08 Miroslav Šulc
2022-11-30  0:52 Sam James
2022-11-29  6:58 Jakov Smolić
2022-11-27 16:43 Arthur Zamarin
2022-11-27 16:43 Arthur Zamarin
2022-10-27 20:05 Florian Schmaus
2022-05-05  7:27 Miroslav Šulc
2022-05-05  5:29 Arthur Zamarin
2022-05-04 14:40 Sam James
2022-05-04  0:16 Sam James
2022-05-03  7:20 Jakov Smolić
2022-04-03  6:56 Miroslav Šulc
2022-01-14  8:43 Miroslav Šulc
2020-10-02 17:56 Miroslav Šulc
2019-05-18  1:14 Aaron Bauman
2019-04-01  8:53 Patrice Clement
2019-04-01  8:53 Patrice Clement
2017-10-19 21:28 Jonas Stein
2017-07-13  7:48 Alexis Ballier
2016-04-24 20:17 James Le Cuirot
2016-04-24 20:17 James Le Cuirot
2015-11-22 21:37 James Le Cuirot
2015-11-02 23:56 James Le Cuirot
2015-08-13 14:46 Patrice Clement
2015-08-09 12:30 Justin Lecher

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=1648968989.7c95644efcd9fcb727bdaf35808bd5085c4f9464.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