diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2021-07-06 18:39:47 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-07-09 14:45:39 +0200 |
commit | ecfcab69c57059c0bba5944e6f03f514bc662c20 (patch) | |
tree | cd338747f318f73c4d8600069e4bcb3e1615ed1b /dev-java | |
parent | profiles/arch/riscv: unmask lua5-1 targets and USE=lua (diff) | |
download | gentoo-ecfcab69c57059c0bba5944e6f03f514bc662c20.tar.gz gentoo-ecfcab69c57059c0bba5944e6f03f514bc662c20.tar.bz2 gentoo-ecfcab69c57059c0bba5944e6f03f514bc662c20.zip |
dev-java/jakarta-activation: new package
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/21479/commits/1752affb94b1ba91a5ebc3eb26d02ce9e2a103cc
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/jakarta-activation/Manifest | 1 | ||||
-rw-r--r-- | dev-java/jakarta-activation/jakarta-activation-1.2.2.ebuild | 55 | ||||
-rw-r--r-- | dev-java/jakarta-activation/metadata.xml | 11 |
3 files changed, 67 insertions, 0 deletions
diff --git a/dev-java/jakarta-activation/Manifest b/dev-java/jakarta-activation/Manifest new file mode 100644 index 000000000000..946484499974 --- /dev/null +++ b/dev-java/jakarta-activation/Manifest @@ -0,0 +1 @@ +DIST jakarta-activation-1.2.2.tar.gz 123283 BLAKE2B 2d205b0a042790f931d20b30f422690eb4f7b51ffa3e8eb2af0eb1fabbcd3fa9e469e9b68384bd95278c319f97911795473cbc81282b516f30148488da729f4d SHA512 a9062eadf260621e0a10695e63082d010567665bc749f76be43381c0f313d61fdb8ab04b9b2765e7da740277cd0335e9f555dd7a1cd89b7eedf88f6e557427c4 diff --git a/dev-java/jakarta-activation/jakarta-activation-1.2.2.ebuild b/dev-java/jakarta-activation/jakarta-activation-1.2.2.ebuild new file mode 100644 index 000000000000..a4376b8ad43d --- /dev/null +++ b/dev-java/jakarta-activation/jakarta-activation-1.2.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 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=7 + +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://github.com/eclipse-ee4j/jaf/jakarta.activation" +SRC_URI="https://github.com/eclipse-ee4j/jaf/archive/refs/tags/${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-1.8:*" +RDEPEND="${CDEPEND} + >=virtual/jre-1.8:*" +BDEPEND="app-arch/zip" + +DOCS=( ../{CONTRIBUTING,LICENSE,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 api + zip -d ${PN}.jar "javax/*" || die "Failed to remove implementation classes" +} + +src_install() { + default + # we remove the API sources so that they don't land in sources +# rm -fr ${JAVA_SRC_DIR}/javax || "Failed to delete implementation sources" + java-pkg-simple_src_install +} diff --git a/dev-java/jakarta-activation/metadata.xml b/dev-java/jakarta-activation/metadata.xml new file mode 100644 index 000000000000..55432e8ce804 --- /dev/null +++ b/dev-java/jakarta-activation/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">eclipse-ee4j/jaf</remote-id> + <bugs-to>https://github.com/eclipse-ee4j/jaf/issues</bugs-to> + </upstream> +</pkgmetadata> |