diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2021-05-17 15:24:31 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-07-17 14:09:03 +0200 |
commit | fdefd7b25414d9e57612fb8b43c28e7e6e65ce4d (patch) | |
tree | 3117544140c53699325e0a18905b1c5138e333cb /dev-java/dom4j/dom4j-2.1.3.ebuild | |
parent | cannadic.eclass: treeclean (diff) | |
download | gentoo-fdefd7b25414d9e57612fb8b43c28e7e6e65ce4d.tar.gz gentoo-fdefd7b25414d9e57612fb8b43c28e7e6e65ce4d.tar.bz2 gentoo-fdefd7b25414d9e57612fb8b43c28e7e6e65ce4d.zip |
dev-java/dom4j: bump to 2.1.3 (CVE-2020-10683)
Bug: https://bugs.gentoo.org/719318
rewritten with java-pkg-simple.eclass
introducing "jaxen" USE flag
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/21319
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/dom4j/dom4j-2.1.3.ebuild')
-rw-r--r-- | dev-java/dom4j/dom4j-2.1.3.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/dev-java/dom4j/dom4j-2.1.3.ebuild b/dev-java/dom4j/dom4j-2.1.3.ebuild new file mode 100644 index 000000000000..46f4b4956895 --- /dev/null +++ b/dev-java/dom4j/dom4j-2.1.3.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom dom4j-2.1.3.pom --download-uri https://github.com/dom4j/dom4j/archive/refs/tags/version-2.1.3.tar.gz --slot 1 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild dom4j-2.1.3.ebuild + +EAPI=7 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.dom4j:dom4j:2.1.3" +JAVA_TESTING_FRAMEWORKS="testng" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="flexible XML framework for Java" +HOMEPAGE="https://dom4j.github.io/" +SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/version-${PV}.tar.gz -> ${P}.tar.gz + https://repo1.maven.org/maven2/jaxen/jaxen/1.2.0/jaxen-1.2.0.jar" + +LICENSE="dom4j" +SLOT="1" +KEYWORDS="~amd64 ~x86" +IUSE="jaxen" + +CDEPEND=" + dev-java/jaxb-api:2 + dev-java/xpp2:0 + dev-java/xpp3:0 + dev-java/xsdlib:0 + jaxen? ( dev-java/jaxen:1.2[dom4j] ) +" +DEPEND="${CDEPEND} + >=virtual/jdk-1.8:* + test? ( dev-java/xerces:2 ) +" + +# Runtime dependencies +# POM: ${P}.pom +# javax.xml.bind:jaxb-api:2.2.12 -> !!!groupId-not-found!!! +# javax.xml.stream:stax-api:1.0-2 -> java-virtuals/stax-api:0 +# jaxen:jaxen:1.1.6 -> >=dev-java/jaxen-1.2.0:1.2 +# net.java.dev.msv:xsdlib:2013.6.1 -> >=dev-java/xsdlib-20090415:0 +# pull-parser:pull-parser:2 -> >=dev-java/xpp2-2.1.10:0 +# xpp3:xpp3:1.1.4c -> >=dev-java/xpp3-1.1.4c:0 + +RDEPEND="${CDEPEND} + >=virtual/jre-1.8:* +" + +PATCHES=( + # XmlStartTag.java:31: error: ProxyXmlStartTag is not abstract and does not override abstract method removeAttributeByRawName + # patch from https://github.com/dom4j/dom4j/pull/22 + "${FILESDIR}"/dom4j-2.1.3-xpp3-add-removeAttribute.patch +) + +S="${WORKDIR}/${PN}-version-${PV}" + +# dom4j has a cyclic dependency on jaxen[dom4j]. +# The downloaded jaxen-1.2.0.jar is provided for compilation only. +# No prebuilt software is actually installed onto the system. +JAVA_GENTOO_CLASSPATH_EXTRA="${DISTDIR}/jaxen-1.2.0.jar" +JAVA_GENTOO_CLASSPATH="jaxb-api-2,xpp2,xpp3,xsdlib" +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_GENTOO_CLASSPATH="testng,xerces-2" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS="xml" + +src_prepare() { + default + + if use jaxen; then + JAVA_GENTOO_CLASSPATH+=" jaxen-1.2" + fi +} |