diff options
author | 2009-03-29 16:40:07 +0000 | |
---|---|---|
committer | 2009-03-29 16:40:07 +0000 | |
commit | 1f18e1510f10626b5f82531d3ccdddea474bebd6 (patch) | |
tree | 6dbfe4bea64dd9289245cc5d491e4c0ebf313c6c /dev-java | |
parent | fixed wrong header include dvdread -> dvdnav; thanks to R.Hertell for reporti... (diff) | |
download | gentoo-2-1f18e1510f10626b5f82531d3ccdddea474bebd6.tar.gz gentoo-2-1f18e1510f10626b5f82531d3ccdddea474bebd6.tar.bz2 gentoo-2-1f18e1510f10626b5f82531d3ccdddea474bebd6.zip |
Migrate the ebuild to EAPI 2.
(Portage version: 2.2_rc27/cvs/Linux i686)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/groovy/ChangeLog | 6 | ||||
-rw-r--r-- | dev-java/groovy/groovy-1.5.4-r1.ebuild | 19 | ||||
-rw-r--r-- | dev-java/groovy/groovy-1.5.4.ebuild | 138 |
3 files changed, 13 insertions, 150 deletions
diff --git a/dev-java/groovy/ChangeLog b/dev-java/groovy/ChangeLog index 681a4089e9b1..c2d112b7d345 100644 --- a/dev-java/groovy/ChangeLog +++ b/dev-java/groovy/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-java/groovy # Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/groovy/ChangeLog,v 1.30 2009/03/24 18:43:36 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/groovy/ChangeLog,v 1.31 2009/03/29 16:40:07 betelgeuse Exp $ + + 29 Mar 2009; Petteri Räty <betelgeuse@gentoo.org> -groovy-1.5.4.ebuild, + groovy-1.5.4-r1.ebuild: + Migrate the ebuild to EAPI 2. 24 Mar 2009; Petteri Räty <betelgeuse@gentoo.org> -groovy-1.0-r1.ebuild: Remove old version. diff --git a/dev-java/groovy/groovy-1.5.4-r1.ebuild b/dev-java/groovy/groovy-1.5.4-r1.ebuild index 7cb005aa1da2..75d527a5e6ee 100644 --- a/dev-java/groovy/groovy-1.5.4-r1.ebuild +++ b/dev-java/groovy/groovy-1.5.4-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/groovy/groovy-1.5.4-r1.ebuild,v 1.1 2008/07/04 20:00:06 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/groovy/groovy-1.5.4-r1.ebuild,v 1.2 2009/03/29 16:40:07 betelgeuse Exp $ # 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. @@ -15,9 +15,11 @@ # TODO: We should implement the doc USE flag properly # +EAPI="2" +WANT_ANT_TASKS="ant-antlr ant-trax" + inherit versionator java-pkg-2 java-ant-2 -EAPI="1" JAVA_PKG_IUSE="doc" MY_PV=${PV/_rc/-RC-} MY_P="${PN}-${MY_PV}" @@ -33,7 +35,7 @@ IUSE="test" CDEPEND=" dev-java/asm:2.2 - dev-java/antlr:0 + >=dev-java/antlr-2.7.7:0[java] >=dev-java/xstream-1.1.1 >=dev-java/junit-3.8.2:0 >=dev-java/jline-0.9.91 @@ -59,17 +61,14 @@ RDEPEND=">=virtual/jre-1.4 ${CDEPEND}" DEPEND=">=virtual/jdk-1.4 - dev-java/ant-antlr + app-arch/unzip ${CDEPEND}" S="${WORKDIR}/${MY_P}" JAVA_PKG_BSFIX="" -src_unpack() { - unpack ${A} - cd "${S}" - +java_prepare() { epatch "${FILESDIR}/${PN}-build.xml.patch" java-ant_xml-rewrite -f build.xml --delete -e junit -a fork @@ -100,8 +99,6 @@ src_unpack() { } src_compile() { - ANT_TASKS="ant-antlr" - eant -DskipTests="true" -DruntimeLibDirectory="target/lib/compile" \ -DtoolsLibDirectory="target/lib/compile" createJars diff --git a/dev-java/groovy/groovy-1.5.4.ebuild b/dev-java/groovy/groovy-1.5.4.ebuild deleted file mode 100644 index 57d71a45fb77..000000000000 --- a/dev-java/groovy/groovy-1.5.4.ebuild +++ /dev/null @@ -1,138 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/groovy/groovy-1.5.4.ebuild,v 1.2 2008/03/04 01:42:39 mr_bones_ Exp $ - -# 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. -# -# Note that in the previous 1.0 ebuild, we used the Ant Maven plugin. We don't do that anymore. - -# We currently do not build the embeddable jar (which is created using JarJar). Maybe we should... -# We also don't use automatic build rewriting as there seems to be already some level of support -# in the upstream build system -# - -# TODO: We should implement the doc USE flag properly -# - -inherit versionator java-pkg-2 java-ant-2 - -EAPI="1" -JAVA_PKG_IUSE="doc" -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="1" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="test" - -CDEPEND=" - dev-java/asm:2.2 - dev-java/antlr:0 - >=dev-java/xstream-1.1.1 - >=dev-java/junit-3.8.2:0 - >=dev-java/jline-0.9.91 - >=dev-java/ant-core-1.7.0 - >=dev-java/commons-cli-1.0 - >=dev-java/mockobjects-0.09 - ~dev-java/servletapi-2.4 - =dev-java/mx4j-core-3.0* - >=dev-java/bsf-2.4 - - test? ( - dev-java/jmock - dev-java/xmlunit - dev-db/hsqldb - dev-java/ant-junit - ) - - dev-java/qdox - " - -RDEPEND=">=virtual/jre-1.4 - ${CDEPEND}" - -DEPEND=">=virtual/jdk-1.4 - dev-java/ant-antlr - ${CDEPEND}" - -S="${WORKDIR}/${MY_P}" - -JAVA_PKG_BSFIX="" - -src_unpack() { - unpack ${A} - cd "${S}" - - mkdir -p target/lib && cd target/lib - - mkdir compile && mkdir runtime && mkdir tools - - cd compile - - java-pkg_jar-from commons-cli-1 - java-pkg_jar-from ant-core - java-pkg_jar-from antlr - java-pkg_jar-from asm-2.2 - java-pkg_jar-from xstream - java-pkg_jar-from mockobjects - java-pkg_jar-from jline - java-pkg_jar-from junit - java-pkg_jar-from servletapi-2.4 - java-pkg_jar-from bsf-2.3 - - # Following is for documentation only - - java-pkg_jar-from qdox-1.6 - - cd "${S}" - - epatch "${FILESDIR}/${PN}-build.xml.patch" - - rm -rf bootstrap - rm -rf security -} - -src_compile() { - ANT_TASKS="ant-antlr" - - eant -DskipTests="true" -DruntimeLibDirectory="target/lib/compile" \ - -DtoolsLibDirectory="target/lib/compile" createJars - - # This works - - #ANT_TASKS="none" eant -Dno.grammars -DruntimeLibDirectory="target/lib/compile" \ - # -DtoolsLibDirectory="target/lib/compile" doc - #use doc && eant doc -} - -src_test() { - cd "${S}/target/lib" && mkdir test && cd compile - - java-pkg_jar-from --build-only jmock-1.0 - java-pkg_jar-from --build-only xmlunit-1 - java-pkg_jar-from hsqldb - java-pkg_jar-from ant-junit - - #java-pkg_jar-from junit - #java-pkg_jar-from ant-core - - cd "${S}" - ANT_TASKS="ant-junit ant-antlr ant-trax" eant test -DruntimeLibDirectory="target/lib/compile" \ - -DtestLibDirectory="target/lib/compile" -} - -src_install() { - java-pkg_newjar "target/dist/${P}.jar" - java-pkg_dolauncher "groovyc" --main org.codehaus.groovy.tools.FileSystemCompiler - java-pkg_dolauncher "groovy" --main groovy.ui.GroovyMain - java-pkg_dolauncher "groovysh" --main groovy.ui.InteractiveShell - java-pkg_dolauncher "groovyConsole" --main groovy.ui.Console - - # java-pkg_dolauncher "grok" --main org.codehaus.groovy.tools.Grok Grok does not exist anymore -} |