Сравнение jakarta-activation-api-1.2.2-r1 с jakarta-activation-api-2.1.1

/usr/portage/dev-java/jakarta-activation-api/jakarta-activation-api-2.1.1.ebuild 2023-10-09 14:52:29.424368348 +0300
4 4
EAPI=8
5 5

  
6 6
JAVA_PKG_IUSE="doc source"
7
MAVEN_ID="jakarta.activation:jakarta.activation-api:1.2.2"
7
MAVEN_ID="jakarta.activation:jakarta.activation-api:2.1.1"
8 8

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

  
11 11
DESCRIPTION="Jakarta Activation API jar"
12 12
HOMEPAGE="https://jakartaee.github.io/jaf-api/"
13
SRC_URI="https://github.com/jakartaee/jaf-api/archive/${PV}.tar.gz -> jakarta-activation-${PV}.tar.gz"
13
SRC_URI="https://github.com/jakartaee/jaf-api/archive/${PV}.tar.gz -> ${P}.tar.gz"
14
S="${WORKDIR}/jaf-api-${PV}/api"
14 15

  
15 16
LICENSE="EPL-1.0"
16
SLOT="1"
17
SLOT="2"
17 18
KEYWORDS="amd64 ~arm arm64 ppc64 x86"
18 19

  
19 20
DEPEND=">=virtual/jdk-11:*"
20 21
RDEPEND=">=virtual/jre-1.8:*"
21
BDEPEND="app-arch/zip"
22 22

  
23 23
DOCS=( ../{CONTRIBUTING,NOTICE,README}.md )
24 24

  
25
S="${WORKDIR}/jaf-api-${PV}/activation"
26

  
27
JAVA_ENCODING="iso-8859-1"
28

  
29 25
JAVA_SRC_DIR="src/main/java"
30 26
JAVA_RESOURCE_DIRS="src/main/resources"
31

  
32
src_prepare() {
33
	java-pkg-2_src_prepare
34
	# these files are not present in the upstream jar
35
	find ${JAVA_RESOURCE_DIRS} -name "*.default" -delete || die "Failed to delete *.default files"
36
}
37

  
38
src_compile() {
39
	java-pkg-simple_src_compile
40
	# we remove implementation classes from the api
41
	zip -d ${PN}.jar "com/*" || die "Failed to remove implementation classes"
42
}
43

  
44
src_install() {
45
	# we remove the implementation sources so that they don't land in sources
46
	rm -fr ${JAVA_SRC_DIR}/com || "Failed to delete implementation sources"
47
	java-pkg-simple_src_install
48
}
Спасибо!