summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2023-01-30 16:51:03 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2023-02-27 07:59:08 +0100
commitde0a2a79a6fd5ce361f1e48685084cfe853b8869 (patch)
tree290c9df9e89b52d33abad99bf84fc80786b1af56 /dev-java/jstl
parentdev-java/jstl-api: new package, add 1.2.7 (diff)
downloadgentoo-de0a2a79a6fd5ce361f1e48685084cfe853b8869.tar.gz
gentoo-de0a2a79a6fd5ce361f1e48685084cfe853b8869.tar.bz2
gentoo-de0a2a79a6fd5ce361f1e48685084cfe853b8869.zip
dev-java/jstl: new package, add 1.2.7
Bug: https://bugs.gentoo.org/892703 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/jstl')
-rw-r--r--dev-java/jstl/Manifest1
-rw-r--r--dev-java/jstl/jstl-1.2.7.ebuild58
-rw-r--r--dev-java/jstl/metadata.xml10
3 files changed, 69 insertions, 0 deletions
diff --git a/dev-java/jstl/Manifest b/dev-java/jstl/Manifest
new file mode 100644
index 000000000000..0133dc5a57f2
--- /dev/null
+++ b/dev-java/jstl/Manifest
@@ -0,0 +1 @@
+DIST jstl-1.2.7.tar.gz 291252 BLAKE2B 37383f519615f41e4247b1e2207cf1cc57df3a3d01f939bb41cc400dbdb49b331fc0bc3e5ee26c3d9d1e361bd4ec11efd5b6e6a9cc6cafee2b196c1d9491d07f SHA512 2b52869fe5f6d586b8505a2a417790ffad7112db17af667cd52fb567fb6c7ee4a3b3906a072d0d4e7ef463b56a1e5cf9a955b9fbaab97c91a1a286e05add23c3
diff --git a/dev-java/jstl/jstl-1.2.7.ebuild b/dev-java/jstl/jstl-1.2.7.ebuild
new file mode 100644
index 000000000000..caa221ede616
--- /dev/null
+++ b/dev-java/jstl/jstl-1.2.7.ebuild
@@ -0,0 +1,58 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+MAVEN_ID="org.glassfish.web:javax.servlet.jsp.jstl:1.2.7"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Jakarta Standard Tag Library API"
+HOMEPAGE="https://projects.eclipse.org/projects/ee4j.jstl"
+SRC_URI="https://github.com/jakartaee/tags/archive/${PV}-RELEASE.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/tags-${PV}-RELEASE"
+
+LICENSE="EPL-2.0 GPL-2-with-classpath-exception"
+SLOT="0"
+KEYWORDS="~amd64"
+
+CP_DEPEND="
+ dev-java/javax-el-api:2.2
+ dev-java/javax-jsp-api:2.2
+ dev-java/javax-servlet-api:2.5
+ dev-java/jstl-api:0
+ dev-java/xalan:0
+"
+
+RDEPEND="
+ ${CP_DEPEND}
+ >=virtual/jre-1.8:*
+"
+
+DEPEND="
+ ${CP_DEPEND}
+ >=virtual/jdk-1.8:*
+"
+
+DOCS=(
+ CONTRIBUTING.md
+ NOTICE.md
+ README.md
+)
+
+JAVA_JAR_FILENAME="jstl-impl.jar"
+JAVA_RESOURCE_DIRS="impl/src/main/resources"
+JAVA_SRC_DIR="impl/src/main/java"
+
+src_prepare() {
+ java-pkg-2_src_prepare
+ # java-pkg-simple expects resource files in JAVA_RESOURCE_DIRS
+ cp -r impl/src/main/java/* impl/src/main/resources || die
+ find impl/src/main/resources -type f \
+ \( -name '*.java' \
+ -o -name '*.txt' \
+ -o -name '*Parser.jj' \
+ -o -name 'spath.tld' \
+ \) -exec rm -rf {} + || die "deleting classes failed"
+}
diff --git a/dev-java/jstl/metadata.xml b/dev-java/jstl/metadata.xml
new file mode 100644
index 000000000000..6f95d33b7ee3
--- /dev/null
+++ b/dev-java/jstl/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">jakartaee/tags</remote-id>
+ </upstream>
+</pkgmetadata>