From: Joshua Nichols Date: Fri, 29 Dec 2006 17:37:16 +0000 (+0000) Subject: Version bump. 1.0 JSR 06 was versioned as 1.0.06, which was wrong, so 1.0_rc01 is... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4906ce88cdf9b6e911de7359737b1a0ea0cb3022;p=gentoo.git Version bump. 1.0 JSR 06 was versioned as 1.0.06, which was wrong, so 1.0_rc01 is actually newer. Pruned 1.0.06. Package-Manager: portage-2.1.2_rc4-r1 --- diff --git a/dev-java/groovy/ChangeLog b/dev-java/groovy/ChangeLog index 0e56967f755e..93368df48e6c 100644 --- a/dev-java/groovy/ChangeLog +++ b/dev-java/groovy/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-java/groovy # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/groovy/ChangeLog,v 1.16 2006/11/30 15:40:35 caster Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/groovy/ChangeLog,v 1.17 2006/12/29 17:37:16 nichoj Exp $ + +*groovy-1.0_rc01 (29 Dec 2006) + + 29 Dec 2006; Joshua Nichols +files/build.xml-1.0_rc01, + -files/build.xml-1.0.06, +groovy-1.0_rc01.ebuild, -groovy-1.0.06.ebuild: + Version bump. 1.0 JSR 06 was versioned as 1.0.06, which was wrong, so + 1.0_rc01 is actually newer. Pruned 1.0.06. 30 Nov 2006; Vlastimil Babka -files/basescript-1.0_beta4, -files/build.xml-1.0_beta4, diff --git a/dev-java/groovy/files/build.xml-1.0_rc01 b/dev-java/groovy/files/build.xml-1.0_rc01 new file mode 100644 index 000000000000..92caf0b518cf --- /dev/null +++ b/dev-java/groovy/files/build.xml-1.0_rc01 @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ================================= WARNING ================================ + Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed. + ========================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/groovy/files/digest-groovy-1.0_rc01 b/dev-java/groovy/files/digest-groovy-1.0_rc01 new file mode 100644 index 000000000000..0d48d41ffb22 --- /dev/null +++ b/dev-java/groovy/files/digest-groovy-1.0_rc01 @@ -0,0 +1,3 @@ +MD5 7386d8ced17408ddc817a1d7b8079bc4 groovy-1.0-RC-01-src.tar.gz 985880 +RMD160 eed0f9259ad9775779c1c58b0128befe88fe90da groovy-1.0-RC-01-src.tar.gz 985880 +SHA256 b788d1f8e43779cb518a21a92d1b9808f363b491d7d7084cfd177ed71fff84aa groovy-1.0-RC-01-src.tar.gz 985880 diff --git a/dev-java/groovy/groovy-1.0_rc01.ebuild b/dev-java/groovy/groovy-1.0_rc01.ebuild new file mode 100644 index 000000000000..74e676e0ad11 --- /dev/null +++ b/dev-java/groovy/groovy-1.0_rc01.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/groovy/groovy-1.0_rc01.ebuild,v 1.1 2006/12/29 17:37:16 nichoj Exp $ + +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.codehaus.org/groovy/distributions/${MY_P/JSR/jsr}-src.tar.gz" +LICENSE="codehaus-groovy" +SLOT="1" +KEYWORDS="~amd64 ~x86" +IUSE="source" + +COMMON_DEPS=" + =dev-java/asm-2.2* + >=dev-java/antlr-2.7.5 + >=dev-java/xerces-2.7 + >=dev-java/ant-core-1.6.5 + >=dev-java/xstream-1.1.1 + >=dev-java/junit-3.8.1 + dev-java/qdox + >=dev-java/commons-cli-1.0 + >=dev-java/bsf-2.3.0_rc1 + >=dev-java/mockobjects-0.09 + ~dev-java/servletapi-2.4 + dev-java/sun-jmx" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEPS}" +# FIXME doesn't compile with 1.6 due to JDBC api change +DEPEND="|| ( =virtual/jdk-1.4* =virtual/jdk-1.5* ) + ${COMMON_DEPS}" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + + cd ${S} +# epatch ${FILESDIR}/${PN}-1.0.06-compiler-exit-code.patch + + mkdir -p ${S}/target/lib + + cd ${S}/target/lib + java-pkg_jar-from commons-cli-1 + java-pkg_jar-from xerces-2 + java-pkg_jar-from ant-core ant.jar + java-pkg_jar-from antlr + java-pkg_jar-from asm-2.2 + java-pkg_jar-from qdox-1.6 + java-pkg_jar-from xstream + java-pkg_jar-from mockobjects + java-pkg_jar-from junit + java-pkg_jar-from servletapi-2.4 + java-pkg_jar-from bsf-2.3 + java-pkg_jar-from sun-jmx + + cd ${S} + + # We use ant NOT maven. This build.xml is generated using 'maven ant', and + # then the following tweaks: + # - change build.classpath to use + # instead of using each individual jar + # - remove get-deps from the depends of all targets. you should be able to + # define -Dnoget=true, but that doesn't really work + # - remove all the get-* targets (otherwise, the file is a bit oversized to + # be in files/ + cp ${FILESDIR}/build.xml-${PV} ${S}/build.xml || die "Failed to update build.xml" + + cd src/main + # This won't compile without an incestuous relationship with radeox. + rm -rf org/codehaus/groovy/wiki +} + +src_compile() { + eant -Dnoget=true jar + + # need to compile .groovy files to .class files + cd src/main + java -classpath ../../target/${MY_P}.jar:$(java-pkg_getjars commons-cli-1,asm-2.2,antlr,junit,qdox-1.6) \ + org.codehaus.groovy.tools.FileSystemCompiler \ + $(find -name *.groovy) || die "Failed to invoke groovyc" + + # add the now compiled .class files to our jar + jar uf ../../target/${MY_P}.jar $(find -name *.class) || die "Failed to backpatch Console*.class" +} + +src_install() { + java-pkg_newjar target/${MY_P}.jar + java-pkg_dolauncher "grok" --main org.codehaus.groovy.tools.Grok + 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 +} diff --git a/dev-java/groovy/metadata.xml b/dev-java/groovy/metadata.xml index 0ce4aba66f89..7738f02fa304 100644 --- a/dev-java/groovy/metadata.xml +++ b/dev-java/groovy/metadata.xml @@ -11,7 +11,7 @@ available to the Java developers using a Java-like syntax. Groovy is designed to help you get things done on the Java platform in a quicker, more concise and fun way - bringing the power of Python and Ruby inside -the Java platform. +the Java platform. Groovy can be used as an alternative compiler to javac to generate standard Java bytecode to be used by any Java project or it can be used dynamically as an