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 9760C158090 for ; Tue, 10 May 2022 06:37:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2B63E08F1; Tue, 10 May 2022 06:37:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 8B5E4E08F1 for ; Tue, 10 May 2022 06:37:07 +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 72CCE3414B6 for ; Tue, 10 May 2022 06:37:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BD09C456 for ; Tue, 10 May 2022 06:37:04 +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: <1652164438.adf7321e5664f486efe78d719be30c23d84f848d.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/jakarta-activation/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/jakarta-activation/jakarta-activation-1.2.2-r1.ebuild dev-java/jakarta-activation/jakarta-activation-2.0.1-r1.ebuild X-VCS-Directories: dev-java/jakarta-activation/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: adf7321e5664f486efe78d719be30c23d84f848d X-VCS-Branch: master Date: Tue, 10 May 2022 06:37:04 +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: bc77a135-5b6d-4654-b6dc-8ca258df278d X-Archives-Hash: d34f3681750d8dcad35bec18c3b5d976 commit: adf7321e5664f486efe78d719be30c23d84f848d Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Mon May 9 08:46:19 2022 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Tue May 10 06:33:58 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adf7321e dev-java/jakarta-activation: virtual/jdk-1.8:*" -> -11.* Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Signed-off-by: Florian Schmaus gentoo.org> .../jakarta-activation-1.2.2-r1.ebuild | 53 ++++++++++++++++++++++ .../jakarta-activation-2.0.1-r1.ebuild | 35 ++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/dev-java/jakarta-activation/jakarta-activation-1.2.2-r1.ebuild b/dev-java/jakarta-activation/jakarta-activation-1.2.2-r1.ebuild new file mode 100644 index 000000000000..0a83f80926ed --- /dev/null +++ b/dev-java/jakarta-activation/jakarta-activation-1.2.2-r1.ebuild @@ -0,0 +1,53 @@ +# 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/eclipse-ee4j/jaf/archive/refs/tags/1.2.2.tar.gz --slot 1 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild jakarta-activation-1.2.2.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="com.sun.activation:jakarta.activation:1.2.2" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Jakarta Activation" +HOMEPAGE="https://eclipse-ee4j.github.io/jaf/" +SRC_URI="https://github.com/eclipse-ee4j/jaf/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="EPL-1.0" +SLOT="1" +KEYWORDS="amd64 ~arm arm64 ppc64 x86" + +CDEPEND="dev-java/jakarta-activation-api:1" +DEPEND="${CDEPEND} + >=virtual/jdk-11:*" +RDEPEND="${CDEPEND} + >=virtual/jre-1.8:*" +BDEPEND="app-arch/zip" + +DOCS=( ../{CONTRIBUTING,NOTICE,README}.md ) + +S="${WORKDIR}/jaf-${PV}/activation" + +JAVA_ENCODING="iso-8859-1" + +JAVA_GENTOO_CLASSPATH="jakarta-activation-api-1" +JAVA_SRC_DIR="src/main/java" +JAVA_RESOURCE_DIRS="src/main/resources" + +src_prepare() { + default + find ${JAVA_RESOURCE_DIRS} -name "*.default" -delete || die "Failed to delete *.default files" +} + +src_compile() { + java-pkg-simple_src_compile + + # we remove API classes from the jar file + # removing javax sources in src_prepare does not work - compilation fails with: + # src/main/java/module-info.java:12: error: package is empty or does not exist: javax.activation + # exports javax.activation; + + zip -d ${PN}.jar "javax/*" || die "Failed to remove API classes" +} diff --git a/dev-java/jakarta-activation/jakarta-activation-2.0.1-r1.ebuild b/dev-java/jakarta-activation/jakarta-activation-2.0.1-r1.ebuild new file mode 100644 index 000000000000..c409f44c8000 --- /dev/null +++ b/dev-java/jakarta-activation/jakarta-activation-2.0.1-r1.ebuild @@ -0,0 +1,35 @@ +# 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/eclipse-ee4j/jaf/archive/refs/tags/2.0.1.tar.gz --slot 2 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild jakarta-activation-2.0.1.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="com.sun.activation:jakarta.activation:2.0.1" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Jakarta Activation" +HOMEPAGE="https://github.com/eclipse-ee4j/jaf" +SRC_URI="https://github.com/eclipse-ee4j/jaf/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="EPL-1.0" +SLOT="2" +KEYWORDS="amd64 ~arm arm64 ppc64 x86" + +DEPEND=" + >=virtual/jdk-11:* +" + +RDEPEND=" + >=virtual/jre-1.8:* +" + +S="${WORKDIR}/jaf-${PV}/activation" + +JAVA_SRC_DIR="src/main/java" +JAVA_RESOURCE_DIRS=( + "src/main/resources" +)