1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc source"
8 inherit java-pkg-2 java-ant-2
10 DESCRIPTION="A single API for accessing various different file systems"
11 HOMEPAGE="http://commons.apache.org/vfs/"
12 SRC_URI="mirror://apache/commons/vfs/source/${P}-src.tar.gz"
16 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
20 dev-java/commons-collections:0
21 dev-java/commons-logging:0
22 dev-java/commons-net:0
23 dev-java/commons-httpclient:3
24 dev-java/jackrabbit-webdav:0
28 RDEPEND=">=virtual/jre-1.6
31 DEPEND=">=virtual/jdk-1.6
34 S="${WORKDIR}/${P}/core"
37 epatch "${FILESDIR}"/${P}-incompatibility.patch
39 cp "${FILESDIR}"/${P}-build.xml build.xml || die
41 java-ant_rewrite-classpath
42 java-ant_ignore-system-classes
45 EANT_GENTOO_CLASSPATH="
54 EANT_EXTRA_ARGS="-Dlibdir=${T}"
56 # The build.xml is generated from maven and can't run the tests properly
57 # Use maven test to execute these manually but that means downloading deps from
58 # the internet. Also the tests need to login to some ftp servers and samba
59 # shares so I doubt they work for everyone.
61 # ANT_TASKS="ant-junit" eant test
65 java-pkg_newjar target/*.jar
67 use doc && java-pkg_dojavadoc target/site/apidocs
68 use source && java-pkg_dosrc src/main/java