summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2023-11-18 09:55:23 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2023-11-25 09:42:43 +0100
commit44a9cd51b1edf23ac213406dc5616ad1f806bf46 (patch)
tree275b67e585d9409dcc7aa96c90dbad6b5f612336 /dev-java/htmlcleaner
parentdev-java/commons-lang: drop 2.6-r3 (diff)
downloadgentoo-44a9cd51b1edf23ac213406dc5616ad1f806bf46.tar.gz
gentoo-44a9cd51b1edf23ac213406dc5616ad1f806bf46.tar.bz2
gentoo-44a9cd51b1edf23ac213406dc5616ad1f806bf46.zip
dev-java/htmlcleaner: add 2.29 - CVE-2023-34624
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/33883 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/htmlcleaner')
-rw-r--r--dev-java/htmlcleaner/Manifest1
-rw-r--r--dev-java/htmlcleaner/htmlcleaner-2.29.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-java/htmlcleaner/Manifest b/dev-java/htmlcleaner/Manifest
index c055de4d6604..ee70232228bb 100644
--- a/dev-java/htmlcleaner/Manifest
+++ b/dev-java/htmlcleaner/Manifest
@@ -1 +1,2 @@
DIST htmlcleaner-2.26-src.zip 414195 BLAKE2B c73533054bf7a8a66a767e53cbafecca1f174cb3be16e116ddd0e025e627603e225323e9095ea40b38a06c661ebe9f2a9e1f53736bf74fd8a2e41d909381c4fb SHA512 df1f9ccc696d538289a0addd19f8d955a3bcb0da88640208c513b2f4f0c4a3ee516b459aa3aae25d36d6ec09c4082b96484df287fb422add2eb160072668af5a
+DIST htmlcleaner-src-2.29.zip 394326 BLAKE2B 6317e5dd51facd901e7a5bdc72322c58deb5d3a2e2d0a784e6cd71b938c7b46b7a612d0610a1e5f96ac6c55714942e00ffa68f2259416fe1e6be8cb5ad96c0b3 SHA512 87c3884f56c01d4f34be71b5a016a839f949f03ea429a3c10cc5518fe954b09aa42d05fdf821e7b0bf2115787cffff6ae72dbe13e3d7e08537c4ffbf51d6b34f
diff --git a/dev-java/htmlcleaner/htmlcleaner-2.29.ebuild b/dev-java/htmlcleaner/htmlcleaner-2.29.ebuild
new file mode 100644
index 000000000000..39354c4424da
--- /dev/null
+++ b/dev-java/htmlcleaner/htmlcleaner-2.29.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="net.sourceforge.htmlcleaner:htmlcleaner:2.29"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="HTML parser written in Java that can be used as a tool, library or Ant task"
+HOMEPAGE="https://htmlcleaner.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/htmlcleaner/htmlcleaner/htmlcleaner%20v${PV}/htmlcleaner-src-${PV}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="app-arch/unzip"
+CP_DEPEND="dev-java/jdom:2"
+DEPEND="${CP_DEPEND}
+ dev-java/ant-core:0
+ >=virtual/jdk-1.8:*
+ test? ( dev-java/junit:4 )"
+RDEPEND="${CP_DEPEND}
+ >=virtual/jre-1.8:*"
+
+JAVA_CLASSPATH_EXTRA="ant-core"
+JAVA_MAIN_CLASS="org.htmlcleaner.CommandLine"
+JAVA_SRC_DIR="src/main/java"
+JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+
+src_install() {
+ java-pkg-simple_src_install
+ java-pkg_register-ant-task
+
+ insinto "${JAVA_PKG_SHAREPATH}"
+ newins example.xml default.xml
+}