Diff xerces-2.12.2 with a xerces-2.12.2-r1

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

  
4 4
EAPI=8
......
6 6
JAVA_PKG_IUSE="doc source"
7 7
MAVEN_ID="xerces:xercesImpl:2.12.2"
8 8

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

  
11 11
DESCRIPTION="Xerces Java XML parser"
12 12
HOMEPAGE="https://xerces.apache.org/xerces2-j/index.html"
13
SRC_URI="mirror://apache/xerces/j/source/Xerces-J-src.${PV}.tar.gz"
13
SRC_URI="mirror://apache/xerces/j/source/Xerces-J-src.${PV}.tar.gz
14
	verify-sig? ( https://downloads.apache.org/xerces/j/source/Xerces-J-src.${PV}.tar.gz.asc )"
14 15

  
15 16
LICENSE="Apache-2.0"
16 17
SLOT="2"
17
KEYWORDS="amd64 ~arm arm64 ppc64 x86"
18
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
18 19

  
19 20
CP_DEPEND="
20 21
	dev-java/xml-commons-external:1.4
......
35 36
	${CP_DEPEND}
36 37
	>=virtual/jre-1.8:*"
37 38

  
39
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-apache-xerces-j )"
40
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/xerces-j.apache.org.asc"
41

  
38 42
DOCS=( LICENSE NOTICE README {LICENSE.resolver,LICENSE.serializer,NOTICE.resolver,NOTICE.serializer}.txt )
39 43
HTML_DOCS=( {LICENSE.DOM-documentation,LICENSE.DOM-software,LICENSE-SAX,Readme}.html )
40 44

  
......
44 48
JAVA_RESOURCE_DIRS="resources"
45 49

  
46 50
src_prepare() {
47
	default
48
	mkdir "${JAVA_RESOURCE_DIRS}" || die
49
	cp -r "${JAVA_SRC_DIR}/org" "${JAVA_RESOURCE_DIRS}" || die
50
	find "${JAVA_RESOURCE_DIRS}" -type f -name '*.java' -exec rm -rf {} + || die
51
	rm "${JAVA_RESOURCE_DIRS}"/org/apache/xerces/{dom/org.apache.xerces.dom.DOMImplementationSourceImpl,xs/datatypes/package.html,parsers/org*} || die
52
}
53

  
54
src_install() {
55
	default # https://bugs.gentoo.org/789582
56
	java-pkg-simple_src_install
51
	java-pkg-2_src_prepare
52
	# java-pkg-simple.eclass wants resources in JAVA_RESOURCE_DIRS
53
	mkdir -p "resources/META-INF/services"|| die
54
	pushd "src" > /dev/null || die
55
		find -type f \
56
			\( -name 'javax.xml.*Factory' \
57
			-or -name '*DOMImplementationSourceList' \
58
			-or -name 'org.xml.sax.driver' \) \
59
			| xargs mv -t ../resources/META-INF/services || die
60
		find -type f \
61
			! -name '*.java' \
62
			! -name 'manifest.xerces' \
63
			! -name 'package.html' \
64
			! -name '*Configuration' \
65
			! -name '*DOMImplementationSourceImpl' \
66
			| xargs cp --parent -t ../resources || die
67
	popd > /dev/null || die
57 68
}
Thank you!