dev-java/javax-servlet-api: new package, add 2.5

Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2023-02-20 10:38:01 +01:00
committed by Miroslav Šulc
parent 77250ec434
commit fe9dffee27
3 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST servlet-api-2.5-sources.jar 158114 BLAKE2B 84997b9cc2122f49a850ac32089eb484bc4f68c4e73c7541cf70f453f0a0eaa0c037d6f2b8c8270d4122502f224a6943011f6a964da406093d0ad4bb173dc71e SHA512 6590adea214ba7f59e033b8f450ca8fd3a0764ac6aaf2789d5824ddeecc4c520d004242e42e3a058517d5f556a41a970f782dfde35b2cf184874a77063dc0fef

View File

@@ -0,0 +1,29 @@
# 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:servlet-api:2.5"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="JavaServlet(TM) Specification"
HOMEPAGE="https://javaee.github.io/servlet-spec/"
SRC_URI="https://repo1.maven.org/maven2/javax/servlet/servlet-api/${PV}/servlet-api-${PV}-sources.jar"
LICENSE="CDDL GPL-2"
SLOT="2.5"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
RDEPEND=">=virtual/jre-1.8:*"
DEPEND=">=virtual/jdk-1.8:*"
JAVA_RESOURCE_DIRS="resources"
src_prepare() {
java-pkg-2_src_prepare
mkdir -p "${JAVA_RESOURCE_DIRS}/javax/servlet/resources" || die
mv dtd/* "${JAVA_RESOURCE_DIRS}/javax/servlet/resources" || die
find . -type f -name '*.properties' | xargs cp --parent -t resources || die
}

View File

@@ -0,0 +1,13 @@
<?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>
<longdescription>
Java Servlet is the foundation web specification in the Java Enterprise Platform. Developers can build web applications using the Servlet API to interact with the request/response workflow.
</longdescription>
<upstream>
<doc>https://jcp.org/aboutJava/communityprocess/mrel/jsr154/</doc>
</upstream>
</pkgmetadata>