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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5C49E158095 for ; Sat, 16 Jul 2022 14:46:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0DED4E0C9D; Sat, 16 Jul 2022 14:46:53 +0000 (UTC) Received: from smtp.gentoo.org (dev.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E719CE0C9D for ; Sat, 16 Jul 2022 14:46:52 +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 06D68340D74 for ; Sat, 16 Jul 2022 14:46:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D03537F for ; Sat, 16 Jul 2022 14:46:49 +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: <1657982777.07fcd0d847b3d07648754193eeb878daa2ce5b62.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/javassist/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/javassist/javassist-3.29.0-r1.ebuild X-VCS-Directories: dev-java/javassist/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 07fcd0d847b3d07648754193eeb878daa2ce5b62 X-VCS-Branch: master Date: Sat, 16 Jul 2022 14:46:49 +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: 0c594d67-1a9e-4a10-b679-5a4068ef9914 X-Archives-Hash: 20f8e060bc22fda3c37a5b2db2e0afc0 commit: 07fcd0d847b3d07648754193eeb878daa2ce5b62 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Tue Jul 12 12:20:35 2022 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Sat Jul 16 14:46:17 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07fcd0d8 dev-java/javassist: new slot: 3.29 Bug: https://bugs.gentoo.org/857753 Bug: https://bugs.gentoo.org/857594 Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Signed-off-by: Florian Schmaus gentoo.org> dev-java/javassist/javassist-3.29.0-r1.ebuild | 62 +++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/dev-java/javassist/javassist-3.29.0-r1.ebuild b/dev-java/javassist/javassist-3.29.0-r1.ebuild new file mode 100644 index 000000000000..40cf2a69b850 --- /dev/null +++ b/dev-java/javassist/javassist-3.29.0-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/jboss-javassist/javassist/archive/rel_3_29_0_ga.tar.gz --slot 3 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild javassist-3.29.0.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.javassist:javassist:3.29.0-GA" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="A class library for editing bytecodes in Java." +HOMEPAGE="https://www.javassist.org" +SRC_URI="https://github.com/jboss-javassist/javassist/archive/rel_${PV//./_}_ga.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 LGPL-2.1 MPL-1.1" +SLOT="3.29" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" + +# Tests run: 431, Failures: 6 +# Cannot solve those test failures. Using "mvn test" they all pass. +# https://bugs.gentoo.org/856364 +RESTRICT="test" + +# Compile dependencies +# POM: pom.xml +# test? junit:junit:[4.13.1,) -> >=dev-java/junit-4.13.2:4 +# test? org.hamcrest:hamcrest-all:1.3 -> !!!artifactId-not-found!!! + +DEPEND=">=virtual/jdk-11:*" + +# https://github.com/jboss-javassist/javassist/blob/rel_3_29_0_ga/pom.xml#L156-L157 +RDEPEND=">=virtual/jre-8:*" + +S="${WORKDIR}/${PN}-rel_${PV//./_}_ga" + +JAVA_NEEDS_TOOLS=1 +JAVA_SRC_DIR="src/main" +JAVA_MAIN_CLASS="javassist.CtClass" + +JAVA_TEST_GENTOO_CLASSPATH="hamcrest-library-1.3,junit-4" +JAVA_TEST_SRC_DIR="src/test" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" + +# https://github.com/jboss-javassist/javassist/blob/rel_3_29_0_ga/pom.xml#L166-L168 +# javassist/JvstTest.java +JAVA_TEST_RUN_ONLY="javassist.JvstTest" + +src_prepare() { + default + java-pkg_clean javassist.jar + sed -e 's:\.\./\.\./::' -i src/test/javassist/JvstTest{4,Root}.java || die +} + +src_test() { + default + einfo "Testing" + java-pkg-simple_src_test +}