Diff xalan-serializer-2.7.2-r1 with a xalan-serializer-2.7.3

/usr/portage/dev-java/xalan-serializer/xalan-serializer-2.7.3.ebuild 2023-10-09 14:52:29.448368349 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
JAVA_PKG_IUSE="doc source"
7
MAVEN_ID="xalan:serializer:2.7.3"
7 8

  
8
inherit java-pkg-2 java-pkg-simple
9
inherit java-pkg-2 java-pkg-simple verify-sig
9 10

  
10
MY_PV="$(ver_rs 1- '_')"
11
MY_P="xalan-j_${MY_PV}"
12

  
13
DESCRIPTION="DOM Level 3 serializer from Apache Xalan, shared by Xalan and Xerces"
11
DESCRIPTION="Transforming XML documents into HTML, text, or other XML document types"
14 12
HOMEPAGE="https://xalan.apache.org/"
15
SRC_URI="mirror://apache/xalan/xalan-j/source/${MY_P}-src.tar.gz"
13
SRC_URI="mirror://apache/xalan/xalan-j/source/xalan-j_${PV//./_}-src.tar.gz
14
	verify-sig? ( https://downloads.apache.org/xalan/xalan-j/source/xalan-j_${PV//./_}-src.tar.gz.asc )"
15

  
16
S="${WORKDIR}/xalan-j_${PV//./_}"
16 17

  
17 18
LICENSE="Apache-2.0"
18 19
SLOT="0"
19
KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
20
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
20 21

  
22
DEPEND="virtual/jdk:1.8"
21 23
RDEPEND=">=virtual/jre-1.8:*"
22
DEPEND=">=virtual/jdk-1.8:*"
23 24

  
24
JAVA_SRC_DIR="src"
25
JAVA_RESOURCE_DIRS="resources"
25
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-apache-xalan-j )"
26
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/xalan-j.apache.org.asc"
26 27

  
27
S="${WORKDIR}/${MY_P}"
28
JAVA_MAIN_CLASS="org.apache.xml.serializer.Version"
29
JAVA_RESOURCE_DIRS="resources"
30
JAVA_SRC_DIR="src"
28 31

  
29 32
src_prepare() {
30
	default
33
	java-pkg-2_src_prepare
31 34
	# kill all non-serializer sources to ease javadocs and dosrc
32 35
	find src/org/ -type f ! -path "src/org/apache/xml/serializer/*" -delete || die
33 36

  
34
	# remove bundled jars
35
	find -name "*.jar" -delete || die
36
	rm src/*.tar.gz || die
37

  
38
	# move resources elsewhere
39
	mkdir -p resources/org/apache/xml/serializer || die
40
	mv src/org/apache/xml/serializer/*.properties resources/org/apache/xml/serializer/ || die
37
	# java-pkg-simple.eclass wants resources in JAVA_RESOURCE_DIRS
38
	mkdir -p resources || die
39
	pushd src > /dev/null || die
40
	find org -type f \
41
		! -name '*.java' \
42
		! -name 'Version.src' \
43
		! -name 'package.html' \
44
		| xargs cp --parent -t ../resources || die
45
	popd > /dev/null || die
41 46
}
Thank you!