mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-24 16:08:58 +02:00
After a message to gentoo-dev ML, and no reply from any user on x86, we decided to dekeyword most Java packages from x86, and reverse dependencies of them. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
40 lines
1 KiB
Bash
40 lines
1 KiB
Bash
# Copyright 1999-2024 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="https://downloads.sourceforge.net/project/htmlcleaner/htmlcleaner/htmlcleaner%20v${PV}/htmlcleaner-src-${PV}.zip"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="amd64"
|
|
|
|
BDEPEND="app-arch/unzip"
|
|
CP_DEPEND="dev-java/jdom:2"
|
|
DEPEND="${CP_DEPEND}
|
|
dev-java/ant:0
|
|
>=virtual/jdk-1.8:*
|
|
test? ( dev-java/junit:4 )"
|
|
RDEPEND="${CP_DEPEND}
|
|
>=virtual/jre-1.8:*"
|
|
|
|
JAVA_CLASSPATH_EXTRA="ant"
|
|
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
|
|
}
|