Diff javax-servlet-api-2.5 with a javax-servlet-api-3.0.1

/usr/portage/dev-java/javax-servlet-api/javax-servlet-api-3.0.1.ebuild 2023-10-09 14:52:29.428368349 +0300
4 4
EAPI=8
5 5

  
6 6
JAVA_PKG_IUSE="doc source"
7
MAVEN_ID="javax.servlet:servlet-api:2.5"
7
MAVEN_ID="javax.servlet:javax.servlet-api:3.0.1"
8 8

  
9 9
inherit java-pkg-2 java-pkg-simple
10 10

  
11
DESCRIPTION="JavaServlet(TM) Specification"
11
DESCRIPTION="JavaServlet(TM) Specification JSR-000315"
12 12
HOMEPAGE="https://javaee.github.io/servlet-spec/"
13
SRC_URI="https://repo1.maven.org/maven2/javax/servlet/servlet-api/${PV}/servlet-api-${PV}-sources.jar"
13
SRC_URI="https://repo1.maven.org/maven2/javax/servlet/javax.servlet-api/${PV}/javax.servlet-api-${PV}-sources.jar"
14 14

  
15 15
LICENSE="CDDL GPL-2"
16
SLOT="2.5"
17
KEYWORDS="amd64 ~arm arm64 ppc64 x86"
16
SLOT="3.0"
17
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
18 18

  
19 19
RDEPEND=">=virtual/jre-1.8:*"
20 20
DEPEND=">=virtual/jdk-1.8:*"
......
23 23

  
24 24
src_prepare() {
25 25
	java-pkg-2_src_prepare
26
	mkdir -p "${JAVA_RESOURCE_DIRS}/javax/servlet/resources" || die
27
	mv dtd/* "${JAVA_RESOURCE_DIRS}/javax/servlet/resources" || die
28
	find . -type f -name '*.properties' | xargs cp --parent -t resources || die
26
	mkdir -p "${JAVA_RESOURCE_DIRS}/META-INF" || die
27
	find . -type f ! -name '*.java' | xargs cp --parent -t resources || die
28
	echo "Implementation-Version: 3.0.1" > "${JAVA_RESOURCE_DIRS}/META-INF/MANIFEST.MF"
29
	echo "Specification-Version: 3.0" >> "${JAVA_RESOURCE_DIRS}/META-INF/MANIFEST.MF"
29 30
}
Thank you!