diff options
author | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-05-03 18:16:35 +0000 |
---|---|---|
committer | Karl Trygve Kalleberg <karltk@gentoo.org> | 2004-05-03 18:16:35 +0000 |
commit | 154e5655e80419051162389deaa8931548cf81b7 (patch) | |
tree | 8e5ff6c92bca09469e2c9a478996e2211c96590d /dev-java/groovy | |
parent | Initial import. (diff) | |
download | historical-154e5655e80419051162389deaa8931548cf81b7.tar.gz historical-154e5655e80419051162389deaa8931548cf81b7.tar.bz2 historical-154e5655e80419051162389deaa8931548cf81b7.zip |
Initial import. Fixes #45989.
Diffstat (limited to 'dev-java/groovy')
-rw-r--r-- | dev-java/groovy/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/groovy/files/build.xml-1.0_beta4 | 165 | ||||
-rw-r--r-- | dev-java/groovy/files/digest-groovy-1.0_beta4 | 1 | ||||
-rw-r--r-- | dev-java/groovy/groovy-1.0_beta4.ebuild | 68 | ||||
-rw-r--r-- | dev-java/groovy/metadata.xml | 21 |
5 files changed, 263 insertions, 0 deletions
diff --git a/dev-java/groovy/ChangeLog b/dev-java/groovy/ChangeLog new file mode 100644 index 000000000000..14d65cc21554 --- /dev/null +++ b/dev-java/groovy/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for dev-java/xmojo-bin +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed unde the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/groovy/ChangeLog,v 1.1 2004/05/03 18:16:35 karltk Exp $ + +*groovy-1.0_beta4 (03 May 2004) + + 03 May 2004; Karl Trygve Kalleberg <karltk@gentoo.org> + groovy-1.0_beta4.ebuild: Initial import. Ebuild submitted by myself. diff --git a/dev-java/groovy/files/build.xml-1.0_beta4 b/dev-java/groovy/files/build.xml-1.0_beta4 new file mode 100644 index 000000000000..b6e740d6f385 --- /dev/null +++ b/dev-java/groovy/files/build.xml-1.0_beta4 @@ -0,0 +1,165 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!--build.xml generated by maven from project.xml version 1.0-beta-2 + on date December 23 2003, time 1605--> + +<project default="jar" name="groovy" basedir="."> + <property name="defaulttargetdir" value="target"> + </property> + <property name="libdir" value="target/lib"> + </property> + <property name="classesdir" value="target/classes"> + </property> + <property name="testclassesdir" value="target/test-classes"> + </property> + <property name="testreportdir" value="target/test-reports"> + </property> + <property name="distdir" value="dist"> + </property> + <property name="javadocdir" value="dist/docs/api"> + </property> + <property name="final.name" value="groovy-1.0-beta-2"> + </property> + <target name="init" description="o Initializes some properties"> + <mkdir dir="${libdir}"> + </mkdir> + <condition property="noget"> + <equals arg2="only" arg1="${build.sysclasspath}"> + </equals> + </condition> + </target> + <target name="compile" description="o Compile the code" depends=""> + <mkdir dir="${classesdir}"> + </mkdir> + <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html"> + <src> + <pathelement location="src/main"> + </pathelement> + </src> + <classpath> + <fileset dir="${libdir}"> + <include name="*.jar"> + </include> + </fileset> + </classpath> + </javac> + <copy todir="${classesdir}"> + <fileset dir="src/main"> + <include name="**/*.properties"> + </include> + <include name="**/*.xml"> + </include> + </fileset> + </copy> + <copy todir="${testclassesdir}"> + <fileset dir="src/test"> + <include name="**/*.properties"> + </include> + <include name="**/*.xml"> + </include> + <include name="**/*.xsd"> + </include> + </fileset> + </copy> + </target> + <target name="jar" description="o Create the jar" depends="compile"> + <jar jarfile="target/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}"> + </jar> + </target> + <target name="clean" description="o Clean up the generated directories"> + <delete dir="${defaulttargetdir}"> + </delete> + <delete dir="${distdir}"> + </delete> + </target> + <target name="dist" description="o Create a distribution" depends="jar, javadoc"> + <mkdir dir="dist"> + </mkdir> + <copy todir="dist"> + <fileset dir="${defaulttargetdir}" includes="*.jar"> + </fileset> + <fileset dir="${basedir}" includes="LICENSE*, README*"> + </fileset> + </copy> + </target> + <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test"> + <fail message="There were test failures."> + </fail> + </target> + <target name="internal-test" depends="compile-tests"> + <mkdir dir="${testreportdir}"> + </mkdir> + <junit dir="./" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true"> + <sysproperty key="basedir" value="."> + </sysproperty> + <formatter type="xml"> + </formatter> + <formatter usefile="false" type="plain"> + </formatter> + <classpath> + <fileset dir="${libdir}"> + <include name="*.jar"> + </include> + </fileset> + <pathelement path="${testclassesdir}"> + </pathelement> + <pathelement path="${classesdir}"> + </pathelement> + </classpath> + <batchtest todir="${testreportdir}"> + <fileset dir="src/test"> + <include name="**/*Test.*"> + </include> + <include name="**/*Bug.*"> + </include> + </fileset> + </batchtest> + </junit> + </target> + <target name="compile-tests" depends="compile"> + <mkdir dir="${testclassesdir}"> + </mkdir> + <javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html"> + <src> + <pathelement location="src/test"> + </pathelement> + </src> + <classpath> + <fileset dir="${libdir}"> + <include name="*.jar"> + </include> + </fileset> + <pathelement path="${classesdir}"> + </pathelement> + </classpath> + </javac> + </target> + <target name="javadoc" description="o Generate javadoc" depends="jar"> + <mkdir dir="${javadocdir}"> + </mkdir> + <tstamp> + <format pattern="2003-yyyy" property="year"> + </format> + </tstamp> + <property name="copyright" value="Copyright &copy; 2003 The Codehaus. All Rights Reserved."> + </property> + <property name="title" value="groovy 1.0-beta-2 API"> + </property> + <javadoc bottom="Copyright &copy; 2003 The Codehaus. All Rights Reserved." use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/main" packagenames="groovy,org.codehaus.groovy.*"> + <classpath> + <fileset dir="${libdir}"> + <include name="*.jar"> + </include> + </fileset> + <pathelement location="target/${final.name}.jar"> + </pathelement> + </classpath> + </javadoc> + </target> + <target name="install-maven"> + <get dest="${user.home}/maven-install-latest.jar" usetimestamp="true" src="${repo}/maven/maven-install-latest.jar"> + </get> + <unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar"> + </unjar> + </target> +</project> diff --git a/dev-java/groovy/files/digest-groovy-1.0_beta4 b/dev-java/groovy/files/digest-groovy-1.0_beta4 new file mode 100644 index 000000000000..ae973ed4b46c --- /dev/null +++ b/dev-java/groovy/files/digest-groovy-1.0_beta4 @@ -0,0 +1 @@ +MD5 9aac05cd0bfca996e34f079a90f4147c groovy-1.0-beta-4-src.tar.gz 349710 diff --git a/dev-java/groovy/groovy-1.0_beta4.ebuild b/dev-java/groovy/groovy-1.0_beta4.ebuild new file mode 100644 index 000000000000..f837cbc0269e --- /dev/null +++ b/dev-java/groovy/groovy-1.0_beta4.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/groovy/groovy-1.0_beta4.ebuild,v 1.1 2004/05/03 18:16:35 karltk Exp $ + +inherit java-pkg + +DESCRIPTION="Groovy is a high-level dynamic language for the JVM" +HOMEPAGE="http://groovy.codehaus.org/" +SRC_URI="http://dist.codehaus.org/groovy/distributions/${PN}-1.0-beta-4-src.tar.gz" +LICENSE="codehaus-groovy" +SLOT="1" +KEYWORDS="~x86" +IUSE="doc" +DEPEND="=dev-java/xerces-2.6* + =dev-java/commons-cli-1.0* + =dev-java/ant-1.5* + =dev-java/junit-3.8* + =dev-java/asm-1.4* + =dev-java/classworlds-1.0* + =dev-java/mockobjects-0.0* + =dev-java/bsf-2.3* + =net-www/tomcat-5* + =dev-java/xmojo-bin-5.0*" +# karltk: +# xmojo-bin is a JMX provider, we should add a list of alternatives + + +S=${WORKDIR}/${PN}-1.0-beta-4 + +src_unpack() { + unpack ${A} + cp ${FILESDIR}/build-${PV}.xml ${S}/build.xml || die + mkdir -p ${S}/target/lib + ( + cd ${S}/target/lib + java-pkg_jar-from xerces || die + java-pkg_jar-from asm || die + java-pkg_jar-from commons-cli || die + java-pkg_jar-from junit || die + java-pkg_jar-from classworlds || die + java-pkg_jar-from bsf-2.3 || die + java-pkg_jar-from mockobjects || die + java-pkg_jar-from xmojo-bin-5.0 || die + ln -s /opt/tomcat/common/lib/servlet-api.jar . + ) + + # The original build.xml will only build on a MacOSX machine when you're + # logged in as jstrachan. I don't reckon many Gentoo users are... + cp ${FILESDIR}/build.xml-${PV} ${S}/build.xml || die "Failed to update build.xml" + + # This won't compile without an incestuous relationship with radeox. + rm -rf ${S}/src/main/org/codehaus/groovy/wiki +} + +src_compile() { + ant jar || die + if use doc ; then + ant javadoc || die + fi +} + +src_install() { + dodoc LICENSE.txt + java-pkg_dojar target/groovy-1.0-beta-2.jar + if use doc ; then + dohtml -r dist/docs/api + fi +} diff --git a/dev-java/groovy/metadata.xml b/dev-java/groovy/metadata.xml new file mode 100644 index 000000000000..0ce4aba66f89 --- /dev/null +++ b/dev-java/groovy/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> +<herd>java</herd> + +<longdescription> +Groovy is a new agile dynamic language for the JVM combining lots of great +features from languages like Python, Ruby and Smalltalk and making them +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. + +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 +alternative language such as for scripting Java objects, templating or writing +unit test cases. +</longdescription> +</pkgmetadata> |