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.
62 lines
1.3 KiB
62 lines
1.3 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
13 years ago
|
JAVA_PKG_IUSE="doc source test"
|
||
|
|
||
5 years ago
|
inherit java-pkg-2 java-ant-2
|
||
13 years ago
|
|
||
|
DESCRIPTION="Web Services Description Language for Java Toolkit (WSDL4J)"
|
||
|
HOMEPAGE="http://wsdl4j.sourceforge.net"
|
||
|
|
||
|
TCK="jwsdltck"
|
||
|
TCK_V="1.2"
|
||
|
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.zip
|
||
|
test? ( mirror://sourceforge/${TCK}/${TCK}-bin-${TCK_V}.zip )"
|
||
|
|
||
|
LICENSE="CPL-1.0"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="amd64 ~ppc64 x86"
|
||
5 years ago
|
# tests fail with encoding errors
|
||
|
RESTRICT="test"
|
||
13 years ago
|
|
||
3 years ago
|
DEPEND=">=virtual/jdk-1.8:*
|
||
5 years ago
|
test? ( dev-java/junit:0 )
|
||
13 years ago
|
app-arch/unzip"
|
||
3 years ago
|
RDEPEND=">=virtual/jre-1.8:*"
|
||
13 years ago
|
|
||
5 years ago
|
S="${WORKDIR}/${P//./_}"
|
||
|
TCK_S="${WORKDIR}/${TCK}-${TCK_V//./_}"
|
||
13 years ago
|
|
||
5 years ago
|
EANT_BUILD_TARGET="compile"
|
||
|
EANT_DOC_TARGET="javadocs"
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
13 years ago
|
if use test; then
|
||
|
rm -v "${TCK_S}"/lib/*.jar || die
|
||
5 years ago
|
eapply "${FILESDIR}/1.6.2-tests-sandbox.patch"
|
||
13 years ago
|
fi
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
5 years ago
|
ln -s "${TCK_S}" test || die
|
||
|
cd "${TCK_S}" || die
|
||
13 years ago
|
java-ant_rewrite-classpath
|
||
|
local junit="$(java-pkg_getjars junit)"
|
||
|
eant -Dbuild.lib="${S}/test/lib" compile \
|
||
|
-Dgentoo.classpath="${S}/build/lib/${PN}.jar:${junit}"
|
||
5 years ago
|
cd "${S}" || die
|
||
|
mkdir "${T}/lib" || die
|
||
13 years ago
|
ANT_TASKS="ant-junit" eant test -Dtemp.dir="${T}"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
java-pkg_dojar build/lib/*.jar
|
||
|
|
||
|
use doc && java-pkg_dojavadoc build/javadocs/
|
||
|
use source && java-pkg_dosrc src/*
|
||
|
}
|