diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2021-03-16 12:18:33 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-03-16 12:18:48 +0100 |
commit | a04bda69ce003bf0557ec7803fc847195ebec9ff (patch) | |
tree | 1752d6b8ebb38c68e2c384fca9a743bd444ee8fa /dev-java | |
parent | www-client/vivaldi-snapshot: Drop old 3.7.2218.3 and 3.7.2218.25 (diff) | |
download | gentoo-a04bda69ce003bf0557ec7803fc847195ebec9ff.tar.gz gentoo-a04bda69ce003bf0557ec7803fc847195ebec9ff.tar.bz2 gentoo-a04bda69ce003bf0557ec7803fc847195ebec9ff.zip |
dev-java/xalan-serializer: eapi7 + jdk 11 compilation fix
based on https://github.com/gentoo/gentoo/pull/19946
Closes: https://github.com/gentoo/gentoo/pull/19946
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/xalan-serializer/xalan-serializer-2.7.2-r1.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-java/xalan-serializer/xalan-serializer-2.7.2-r1.ebuild b/dev-java/xalan-serializer/xalan-serializer-2.7.2-r1.ebuild new file mode 100644 index 000000000000..1f6ae506e46a --- /dev/null +++ b/dev-java/xalan-serializer/xalan-serializer-2.7.2-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +MY_PV="$(ver_rs 1- '_')" +MY_P="xalan-j_${MY_PV}" + +DESCRIPTION="DOM Level 3 serializer from Apache Xalan, shared by Xalan and Xerces" +HOMEPAGE="https://xalan.apache.org/" +SRC_URI="mirror://apache/xalan/xalan-j/source/${MY_P}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +RDEPEND=">=virtual/jre-1.8:*" +DEPEND=">=virtual/jdk-1.8:*" + +JAVA_SRC_DIR="src" +JAVA_RESOURCE_DIRS="resources" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + # kill all non-serializer sources to ease javadocs and dosrc + find src/org/ -type f ! -path "src/org/apache/xml/serializer/*" -delete || die + + # remove bundled jars + find -name "*.jar" -delete || die + rm src/*.tar.gz || die + + # move resources elsewhere + mkdir -p resources/org/apache/xml/serializer || die + mv src/org/apache/xml/serializer/*.properties resources/org/apache/xml/serializer/ || die +} |