You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/xmlgraphics-commons/xmlgraphics-commons-2.0.1.e...

64 lines
1.2 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
JAVA_PKG_IUSE="doc examples source test"
inherit java-pkg-2 java-ant-2
DESCRIPTION="A library of several reusable components used by Apache Batik and Apache FOP"
HOMEPAGE="https://xmlgraphics.apache.org/commons/index.html"
SRC_URI="mirror://apache/xmlgraphics/commons/source/${P}-src.tar.gz"
LICENSE="Apache-2.0"
SLOT="2"
KEYWORDS="amd64 ~arm64 ppc64 x86"
CDEPEND="dev-java/commons-io:1
>=dev-java/commons-logging-1:0"
DEPEND=">=virtual/jdk-1.6
test? (
dev-java/mockito:0
dev-java/ant-junit:0
dev-java/xml-commons-resolver:0
)
${CDEPEND}"
RDEPEND=">=virtual/jre-1.6
${CDEPEND}"
java_prepare() {
find "${S}" -name '*.jar' -print -delete || die
}
JAVA_ANT_REWRITE_CLASSPATH="true"
EANT_BUILD_TARGET="jar-main"
EANT_DOC_TARGET="javadocs"
EANT_GENTOO_CLASSPATH="
commons-io-1
commons-logging
"
EANT_TEST_GENTOO_CLASSPATH="
${EANT_GENTOO_CLASSPATH}
xml-commons-resolver
mockito
"
EANT_TEST_TARGET="junit-basic"
src_test() {
EANT_ANT_TASKS="ant-junit" \
java-pkg-2_src_test
}
src_install() {
java-pkg_newjar build/${P}.jar
use source && java-pkg_dosrc src/java/org
use doc && java-pkg_dojavadoc build/javadocs
}