summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2023-02-28 09:30:55 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2023-03-01 08:17:25 +0100
commit91844d6674767568940f6527621e24f46dfdc683 (patch)
treec18c561285585aa8a8287849b6b09bdd80c00bdb /dev-java
parentdev-python/funcy: Use pypi.eclass (diff)
downloadgentoo-91844d6674767568940f6527621e24f46dfdc683.tar.gz
gentoo-91844d6674767568940f6527621e24f46dfdc683.tar.bz2
gentoo-91844d6674767568940f6527621e24f46dfdc683.zip
dev-java/javax-jsp-api: add 2.0
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/javax-jsp-api/Manifest1
-rw-r--r--dev-java/javax-jsp-api/javax-jsp-api-2.0.ebuild37
-rw-r--r--dev-java/javax-jsp-api/metadata.xml4
3 files changed, 42 insertions, 0 deletions
diff --git a/dev-java/javax-jsp-api/Manifest b/dev-java/javax-jsp-api/Manifest
index c5007f612518..d1bdfd42d152 100644
--- a/dev-java/javax-jsp-api/Manifest
+++ b/dev-java/javax-jsp-api/Manifest
@@ -1 +1,2 @@
+DIST jsp-api-2.0-sources.jar 118348 BLAKE2B d9f615961a6ef2afb1447477d44e4f49eaf9137f62ba596c40d7437c8d4973a68f689189255bcc6bae5e5970b23c8e93fbabcad2fb230f54963dad55eef2a8f7 SHA512 4f38ed56e9e51a979488a26fde36905748674e225a10df82259891fa85f8493575a58babb7620b27a96ab7e83002433ae4ee60f700a866e330642c7dd0a0f7a8
DIST jsp-api-2.2-sources.jar 163137 BLAKE2B 8bac5428393518cb3edb8488eaaab772d37db51dfbc5b466eabcb5b8ccd90cfa4869ebe65d861c64a6c588c8ede3ab1f5ab0c2e9080dde16c0585a7f774abb05 SHA512 ff79c34904372b722501b4479cbf88796017839d636a31b9343ef9104d93e3554154b3124f366295d05a41dc8320ff8bc83e9f8ee971df35c791220065b70647
diff --git a/dev-java/javax-jsp-api/javax-jsp-api-2.0.ebuild b/dev-java/javax-jsp-api/javax-jsp-api-2.0.ebuild
new file mode 100644
index 000000000000..719f7a2a80d6
--- /dev/null
+++ b/dev-java/javax-jsp-api/javax-jsp-api-2.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+MAVEN_ID="javax.servlet.jsp:jsp-api:2.0"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="JavaServer Pages(TM) API JSR-000152 JSR-000245"
+HOMEPAGE="https://jcp.org/aboutJava/communityprocess/final/jsr152/"
+SRC_URI="https://repo1.maven.org/maven2/javax/servlet/jsp/jsp-api/${PV}/jsp-api-${PV}-sources.jar"
+
+LICENSE="CDDL GPL-2-with-classpath-exception"
+SLOT="2.0"
+KEYWORDS="~amd64 ~arm ~arm64"
+
+CP_DEPEND="dev-java/javax-servlet-api:2.5"
+
+RDEPEND="
+ ${CP_DEPEND}
+ >=virtual/jre-1.8:*
+"
+
+DEPEND="
+ ${CP_DEPEND}
+ >=virtual/jdk-1.8:*
+"
+
+JAVA_RESOURCE_DIRS="resources"
+
+src_prepare() {
+ java-pkg-2_src_prepare
+ mkdir -p "${JAVA_RESOURCE_DIRS}/javax/servlet/jsp/resources" || die
+ mv dtd/* "${JAVA_RESOURCE_DIRS}/javax/servlet/jsp/resources" || die
+}
diff --git a/dev-java/javax-jsp-api/metadata.xml b/dev-java/javax-jsp-api/metadata.xml
index 75321cfb5598..882410dd6f2e 100644
--- a/dev-java/javax-jsp-api/metadata.xml
+++ b/dev-java/javax-jsp-api/metadata.xml
@@ -4,4 +4,8 @@
<maintainer type="project">
<email>java@gentoo.org</email>
</maintainer>
+ <slots>
+ <slot name="2.0">https://jcp.org/aboutJava/communityprocess/final/jsr152/</slot>
+ <slot name="2.2">https://jcp.org/aboutJava/communityprocess/mrel/jsr245/</slot>
+ </slots>
</pkgmetadata>