From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6819F158020 for ; Thu, 27 Oct 2022 20:05:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C773E070D; Thu, 27 Oct 2022 20:05:56 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0E553E070D for ; Thu, 27 Oct 2022 20:05:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D7D1E33BDF0 for ; Thu, 27 Oct 2022 20:05:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0A6D5628 for ; Thu, 27 Oct 2022 20:05:53 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1666900945.1a996e19634a4f04cf05555a88f22af019975044.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/qdox/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/qdox/Manifest dev-java/qdox/metadata.xml dev-java/qdox/qdox-2.0.1.ebuild X-VCS-Directories: dev-java/qdox/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 1a996e19634a4f04cf05555a88f22af019975044 X-VCS-Branch: master Date: Thu, 27 Oct 2022 20:05:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8afaa982-9d86-4c36-a5dc-b942cc9a4ec4 X-Archives-Hash: 9084d005ee9b5dfb98b36bca337f5f8e commit: 1a996e19634a4f04cf05555a88f22af019975044 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Mon Aug 8 13:22:51 2022 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Thu Oct 27 20:02:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a996e19 dev-java/qdox: add 2.0.1 * Switch to java-pkg-simple.eclass * New slot since dev-java/hamcrest-generator does not compile with 2.0.1 * Disable tests for Java 17 Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/26792 Signed-off-by: Florian Schmaus gentoo.org> dev-java/qdox/Manifest | 1 + dev-java/qdox/metadata.xml | 2 +- dev-java/qdox/qdox-2.0.1.ebuild | 102 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+), 1 deletion(-) diff --git a/dev-java/qdox/Manifest b/dev-java/qdox/Manifest index d6e59b90dcf8..85413229dd93 100644 --- a/dev-java/qdox/Manifest +++ b/dev-java/qdox/Manifest @@ -1 +1,2 @@ DIST qdox-1.12.1.tar.gz 519833 BLAKE2B 83a732f1582b714cf943ede61bacc5216804c00cfbb642a479afb74739564f4fdbcd923dd7cb84a9626a97c5ad0a0f04895e0ae68252891cb25299e1fe1c9c72 SHA512 17ac933854ebd0560921805ea4339c151a7fd095bf8d50d5d71e656afda77ba30efac7926cfcc7543e4a8420b12d1eb75cdd305c50d1c28ad8cd6b0f4d95f5c5 +DIST qdox-2.0.1.tar.gz 528305 BLAKE2B ff2f4b59d650b93a466eae6cc69239b059f7786ea609c18c56414e7e849d711d5316664a376b2c2c6e0021a21e7577cc21c9f5cfd215c4af612100a4c81da758 SHA512 db9d9ed8e8cf38c74e35be493aebcca54ba9d2c43a92c066d1964777293ad3af8e3212fcb8c20e9453b93e9bbe868c988dab69f936e7df41450183ce385137fa diff --git a/dev-java/qdox/metadata.xml b/dev-java/qdox/metadata.xml index 441b6da52a6e..f00a4317cac4 100644 --- a/dev-java/qdox/metadata.xml +++ b/dev-java/qdox/metadata.xml @@ -10,6 +10,6 @@ definitions from source files complete with JavaDoc @tags. - codehaus/qdox + paul-hammant/qdox diff --git a/dev-java/qdox/qdox-2.0.1.ebuild b/dev-java/qdox/qdox-2.0.1.ebuild new file mode 100644 index 000000000000..c6f38ed82de0 --- /dev/null +++ b/dev-java/qdox/qdox-2.0.1.ebuild @@ -0,0 +1,102 @@ +# 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:2.0.1" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Parser for extracting class/interface/method definitions" +HOMEPAGE="https://github.com/paul-hammant/qdox" +SRC_URI="https://github.com/paul-hammant/qdox/archive/qdox-${PV}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="2" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~ppc-macos ~x64-macos" + +DEPEND=" + dev-java/jflex:0 + >=virtual/jdk-1.8:* + test? ( + dev-java/junit:4 + dev-java/mockito:0 + ) +" +RDEPEND=">=virtual/jre-1.8:*" +BDEPEND="dev-java/byaccj:0" + +S="${WORKDIR}/qdox-${P}" + +JAVA_AUTOMATIC_MODULE_NAME="com.thoughtworks.qdox" +JAVA_SRC_DIR="src/main/java" +JAVA_CLASSPATH_EXTRA="jflex" + +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" +JAVA_TEST_GENTOO_CLASSPATH=" + junit-4 + mockito +" + +src_compile() { + einfo "Running jflex" + jflex src/grammar/lexer.flex src/grammar/commentlexer.flex \ + -d src/main/java/com/thoughtworks/qdox/parser/impl || die + + einfo "Running byaccj for DefaultJavaCommentParser" + byaccj -v \ + -Jnorun \ + -Jnoconstruct \ + -Jclass=DefaultJavaCommentParser \ + -Jpackage=com.thoughtworks.qdox.parser.impl \ + src/grammar/commentparser.y || die + + einfo "Running byaccj for Parser" + byaccj -v \ + -Jnorun \ + -Jnoconstruct \ + -Jclass=Parser \ + -Jimplements=CommentHandler \ + -Jsemantic=Value \ + -Jpackage=com.thoughtworks.qdox.parser.impl \ + src/grammar/parser.y || die + + mv Parser.java src/main/java/com/thoughtworks/qdox/parser/impl/ || die + mv DefaultJavaCommentParser.java src/main/java/com/thoughtworks/qdox/parser/impl/ || die + mv DefaultJavaCommentParserVal.java src/main/java/com/thoughtworks/qdox/parser/impl/ || die + + einfo "Running java-pkg-simple_src_compile" + java-pkg-simple_src_compile +} + +src_test() { + # Too many tests fail with Java 17. + local vm_version="$(java-config -g PROVIDES_VERSION)" + if ver_test "${vm_version}" -ge 17 ; then + einfo "Tests only for Java < 17" + else + einfo "Running tests" + pushd src/test/java || die + local JAVA_TEST_RUN_ONLY=$(find * \ + \( -wholename "**/*Test.java" \ + -o -name 'TestMultipleLevelGenericInheritance.java' \)\ + ! -name "ClassLibraryBuilderTest.java" \ + ! -name "JavaClassTest.java" \ + ! -name "JavaConstructorTest.java" \ + ! -name "JavaFieldTest.java" \ + ! -name "JavaMethodTest.java" \ + ! -name "JavaPackageTest.java" \ + ! -name "JavaParameterTest.java" \ + ! -name "JavaSourceTest.java" \ + ! -name "JavaTypeTest.java" \ + ! -name "AbstractDocletTagTest.java" \ + ) + popd + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}" + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}" + java-pkg-simple_src_test + fi +}