mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-java/htmlcleaner: drop 2.25
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/27108 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
committed by
Miroslav Šulc
parent
a5c8dc5fbd
commit
5dc08bd84e
@@ -1,2 +1 @@
|
||||
DIST htmlcleaner-2.25-src.zip 414193 BLAKE2B e840b65665b23a6c55eda49a522994208b7178ddf924e60bdca9304c58df9bde343b31bbd4b7491db7bfd4fe0930283f9019d9213450618e0d50036563cced86 SHA512 fb49f0298b05008a727e7ba97a3444c6f8c31f65a9962e42bae63e1dab76fc7302f282daa45177daffcadbb73565685735f44b57107c62819bafa0db030c5ea3
|
||||
DIST htmlcleaner-2.26-src.zip 414195 BLAKE2B c73533054bf7a8a66a767e53cbafecca1f174cb3be16e116ddd0e025e627603e225323e9095ea40b38a06c661ebe9f2a9e1f53736bf74fd8a2e41d909381c4fb SHA512 df1f9ccc696d538289a0addd19f8d955a3bcb0da88640208c513b2f4f0c4a3ee516b459aa3aae25d36d6ec09c4082b96484df287fb422add2eb160072668af5a
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
# 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
|
||||
|
||||
DESCRIPTION="HTML parser written in Java that can be used as a tool, library or Ant task"
|
||||
HOMEPAGE="http://htmlcleaner.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/htmlcleaner/files/${P}-src.zip"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
CDEPEND="dev-java/jdom:2"
|
||||
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=virtual/jre-1.8:*"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
dev-java/ant-core:0
|
||||
test? ( dev-java/junit:4 )
|
||||
>=virtual/jdk-1.8:*"
|
||||
|
||||
BDEPEND="
|
||||
app-arch/unzip"
|
||||
|
||||
JAVA_SRC_DIR="src/main/java"
|
||||
JAVA_GENTOO_CLASSPATH="jdom-2"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.24-fix-tests.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# Don't require default.xml to be in the current directory.
|
||||
sed -i "s:\"default\.xml\":\"${JAVA_PKG_SHAREPATH}/default.xml\":g" \
|
||||
src/main/java/org/htmlcleaner/ConfigFileTagProvider.java || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
JAVA_GENTOO_CLASSPATH_EXTRA=$(java-pkg_getjars --build-only ant-core)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg-simple_src_install
|
||||
java-pkg_register-ant-task
|
||||
java-pkg_dolauncher ${PN} --main org.${PN}.CommandLine
|
||||
|
||||
insinto "${JAVA_PKG_SHAREPATH}"
|
||||
newins example.xml default.xml
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local DIR="src/test/java"
|
||||
local CP="${DIR}:${PN}.jar:$(java-pkg_getjars junit-4,${JAVA_GENTOO_CLASSPATH})"
|
||||
|
||||
local TESTS=$(find "${DIR}" -name "*Test.java" ! -name "Abstract*")
|
||||
TESTS="${TESTS//src\/test\/java\/}"
|
||||
TESTS="${TESTS//.java}"
|
||||
TESTS="${TESTS//\//.}"
|
||||
|
||||
ejavac -classpath "${CP}" -d "${DIR}" $(find "${DIR}" -name "*.java")
|
||||
ejunit4 -classpath "${CP}" ${TESTS}
|
||||
}
|
||||
Reference in New Issue
Block a user