Сравнение jakarta-activation-1.2.2-r1 с jakarta-activation-2.0.1-r1
/usr/portage/dev-java/jakarta-activation/jakarta-activation-2.0.1-r1.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="com.sun.activation:jakarta.activation:1.2.2" |
|
7 |
MAVEN_ID="com.sun.activation:jakarta.activation:2.0.1" |
|
8 | 8 | |
9 | 9 |
inherit java-pkg-2 java-pkg-simple |
10 | 10 | |
... | ... | |
14 | 14 |
S="${WORKDIR}/jaf-api-${PV}/activation" |
15 | 15 | |
16 | 16 |
LICENSE="EPL-1.0" |
17 |
SLOT="1" |
|
17 |
SLOT="2" |
|
18 | 18 |
KEYWORDS="amd64 ~arm arm64 ppc64 x86" |
19 | 19 | |
20 |
CDEPEND="dev-java/jakarta-activation-api:1" |
|
21 |
DEPEND="${CDEPEND} |
|
22 |
>=virtual/jdk-11:*" |
|
23 |
RDEPEND="${CDEPEND} |
|
24 |
>=virtual/jre-1.8:*" |
|
25 |
BDEPEND="app-arch/zip" |
|
20 |
DEPEND=">=virtual/jdk-11:* " |
|
21 |
RDEPEND=">=virtual/jre-1.8:* " |
|
26 | 22 | |
27 |
DOCS=( ../{CONTRIBUTING,NOTICE,README}.md ) |
|
28 | ||
29 |
JAVA_ENCODING="iso-8859-1" |
|
30 | ||
31 |
JAVA_GENTOO_CLASSPATH="jakarta-activation-api-1" |
|
32 | 23 |
JAVA_SRC_DIR="src/main/java" |
33 | 24 |
JAVA_RESOURCE_DIRS="src/main/resources" |
34 | ||
35 |
src_prepare() { |
|
36 |
java-pkg-2_src_prepare |
|
37 |
find ${JAVA_RESOURCE_DIRS} -name "*.default" -delete || die "Failed to delete *.default files" |
|
38 |
} |
|
39 | ||
40 |
src_compile() { |
|
41 |
java-pkg-simple_src_compile |
|
42 | ||
43 |
# we remove API classes from the jar file |
|
44 |
# removing javax sources in src_prepare does not work - compilation fails with: |
|
45 |
# src/main/java/module-info.java:12: error: package is empty or does not exist: javax.activation |
|
46 |
# exports javax.activation; |
|
47 | ||
48 |
zip -d ${PN}.jar "javax/*" || die "Failed to remove API classes" |
|
49 |
} |