diff options
Diffstat (limited to 'dev-java/jakarta-servlet-api')
-rw-r--r-- | dev-java/jakarta-servlet-api/Manifest | 1 | ||||
-rw-r--r-- | dev-java/jakarta-servlet-api/jakarta-servlet-api-6.0.0.ebuild | 39 | ||||
-rw-r--r-- | dev-java/jakarta-servlet-api/metadata.xml | 4 |
3 files changed, 44 insertions, 0 deletions
diff --git a/dev-java/jakarta-servlet-api/Manifest b/dev-java/jakarta-servlet-api/Manifest index 81765a0c94b4..93a125b9a802 100644 --- a/dev-java/jakarta-servlet-api/Manifest +++ b/dev-java/jakarta-servlet-api/Manifest @@ -1 +1,2 @@ DIST jakarta-servlet-api-4.0.4-RELEASE.tar.gz 188270 BLAKE2B 6c5db208603333abb9aa31726e60d489c5f860e3b6ad61e691d65e8b99909a8139f7677cec52d2a74ed9e8445ea2f0f510875ca32a2e512a09183245a9822889 SHA512 9cd613f8c33f5d415b06f70543eee926c81e87a14d03b837998a6c4db11ce5fb9c2b97f796f2936a63f2a6dc7847d7a97aec7a804b80234cd52e4bfdca9920a9 +DIST jakarta-servlet-api-6.0.0-RELEASE.tar.gz 634690 BLAKE2B e48375f6a0b74950a2c50d73f2d50f7c79db96e22d5c845380bff670948cd1a1d1ea98eaf93e7fa02887e94010c8573382ba3f6fb52a8fca6fa98e5915c307f6 SHA512 65285bce3e8b5143eb33d548549ff5653c6c90f55e7a19e8fdb4a7799842d3430cfe0cebe54f7a7d253d9da4c2b6d4d7a08b35846636c11a2ca814b8311cecc7 diff --git a/dev-java/jakarta-servlet-api/jakarta-servlet-api-6.0.0.ebuild b/dev-java/jakarta-servlet-api/jakarta-servlet-api-6.0.0.ebuild new file mode 100644 index 000000000000..74495765cc3e --- /dev/null +++ b/dev-java/jakarta-servlet-api/jakarta-servlet-api-6.0.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 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/jakartaee/servlet/archive/6.0.0-RELEASE.tar.gz --slot 6 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild jakarta-servlet-api-6.0.0.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="jakarta.servlet:jakarta.servlet-api:6.0.0" +# No tests because of still missing junit-jupiter +# JAVA_TESTING_FRAMEWORKS="junit-jupiter" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Javax servlet API" +HOMEPAGE="https://projects.eclipse.org/projects/ee4j.servlet" +SRC_URI="https://github.com/jakartaee/servlet/archive/${PV}-RELEASE.tar.gz -> ${P}-RELEASE.tar.gz" + +LICENSE="EPL-2.0 GPL-2-with-classpath-exception" +SLOT="6" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64" + +RDEPEND=">=virtual/jre-1.8:*" +DEPEND=">=virtual/jdk-11:*" + +DOCS=( {CONTRIBUTING,NOTICE,README}.md ) + +S="${WORKDIR}/servlet-${PV}-RELEASE" + +JAVA_SRC_DIR="api/src/main/java" +JAVA_RESOURCE_DIRS=( api/src/main/{resources,properties} ) + +src_prepare() { + default + cp -r api/src/main/{java,properties} || die + find api/src/main/properties -type f ! -name '*.properties' -exec rm -rf {} + || die + java-pkg-2_src_prepare +} diff --git a/dev-java/jakarta-servlet-api/metadata.xml b/dev-java/jakarta-servlet-api/metadata.xml index 75321cfb5598..77e11a268a0a 100644 --- a/dev-java/jakarta-servlet-api/metadata.xml +++ b/dev-java/jakarta-servlet-api/metadata.xml @@ -4,4 +4,8 @@ <maintainer type="project"> <email>java@gentoo.org</email> </maintainer> + <slots> + <slot name="4">provides javax.servlet</slot> + <slot name="6">provides jakarta.servlet</slot> + </slots> </pkgmetadata> |