1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit java-pkg-2 java-ant-2
8 DESCRIPTION="Small footprint Dependency Injection container"
9 HOMEPAGE="http://www.picocontainer.org"
10 SRC_URI="http://dist.codehaus.org/${PN}/distributions/${P}-src.tar.gz"
17 RDEPEND=">=virtual/jre-1.4"
18 DEPEND=">=virtual/jdk-1.4
19 >=dev-java/ant-core-1.5
20 source? ( app-arch/zip )
23 # >=dev-java/junit-3.8.1
31 # Don't run tests automatically
32 sed -i -e 's/compile,test/compile/' build.xml || die
34 # doesn't pass internal test even when trying vanilla build.xml that fetches own libs
38 # java-pkg_jar-from junit junit-3.8.1.jar
43 local antflags="-Dfinal.name=${PN} -Dnoget=true jar"
44 eant ${antflags} $(use_doc)
48 # local antflags="-Dfinal.name=${PN} -Dnoget=true test"
53 java-pkg_dojar target/${PN}.jar
55 use doc && java-pkg_dojavadoc dist/docs/api
56 use source && java-pkg_dosrc src/java/org