# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/xdoclet/xdoclet-1.2.3.ebuild,v 1.14 2014/08/10 20:26:42 slyfox Exp $ JAVA_PKG_IUSE="source" WANT_ANT_TASKS="ant-nodeps ant-trax" inherit eutils java-pkg-2 java-ant-2 DESCRIPTION="XDoclet is an extended Javadoc Doclet engine" HOMEPAGE="http://xdoclet.sf.net/" SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.tgz" LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ~ppc x86" IUSE="" CDEPEND=">=dev-java/bsf-2.3 dev-java/commons-collections dev-java/commons-logging dev-java/log4j dev-java/mockobjects dev-java/velocity dev-java/xjavadoc =dev-java/junit-3.8*" DEPEND=">=virtual/jdk-1.4 ${CDEPEND}" RDEPEND=">=virtual/jre-1.4 dev-java/ant-core ${CDEPEND}" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-interface.patch epatch "${FILESDIR}"/${P}-buildfile.patch cd "${S}"/lib && rm -f *.jar java-pkg_jar-from xjavadoc java-pkg_jar-from bsf-2.3 java-pkg_jar-from velocity java-pkg_jar-from log4j java-pkg_jar-from mockobjects java-pkg_jar-from commons-logging java-pkg_jar-from commons-collections java-pkg_jar-from velocity java-pkg_jar-from ant-core ant.jar java-pkg_jar-from junit } # TODO investigate why compiling needs junit, ie is build not sane enough to # devide building of test classes separate from rest of classes? src_compile() { # bug #167445 use amd64 && export ANT_OPTS="-Xmx512m" eant core modules maven } src_install() { for jar in target/lib/*.jar; do java-pkg_newjar ${jar} $(basename ${jar/-${PV}/}) done dodoc README.txt use source && java-pkg_dosrc core/src/xdoclet modules/* }