# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ # Groovy's build system is Ant based, but they use Maven for fetching the dependencies. # We just have to remove the fetch dependencies target, and then we can use Ant for this ebuild. # We currently do not build the embeddable jar (which is created using JarJar). # We could provide that via a USE flag. # We also don't use automatic build rewriting as there seems to be already some level of support # in the upstream build system # TODO: Install all 3 documentation packages. Currently only the Groovy GDK documentation is installed # as our java-pkg_dojavadoc function does not support multiple Javadoc installations. EAPI="3" WANT_ANT_TASKS="ant-antlr" JAVA_PKG_IUSE="doc source" inherit versionator java-pkg-2 java-ant-2 MY_PV=${PV/_rc/-RC-} MY_P="${PN}-${MY_PV}" DESCRIPTION="Groovy is a high-level dynamic language for the JVM" HOMEPAGE="http://groovy.codehaus.org/" SRC_URI="http://dist.groovy.codehaus.org/distributions/${PN}-src-${PV}.zip" LICENSE="codehaus-groovy" SLOT="0" KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" IUSE="test" RESTRICT="test" CDEPEND=">=dev-java/asm-3.2 >=dev-java/ant-core-1.8.0 >=dev-java/junit-4.6 dev-java/antlr:0 dev-java/xstream dev-java/jline dev-java/commons-cli dev-java/jansi dev-java/servletapi:2.4 >=dev-java/bsf-2.4 java-virtuals/jmx" RDEPEND=">=virtual/jre-1.5 !