diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2004-09-10 19:45:18 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2004-09-10 19:45:18 +0000 |
commit | c2a85b9cea07aabfd3ffcbdf933e1bcd46ddc448 (patch) | |
tree | 2cf96408083c2d903fb00e590d5c9a7e26af40f9 /dev-java/ant-core | |
parent | Version bump (Manifest recommit) (diff) | |
download | gentoo-2-c2a85b9cea07aabfd3ffcbdf933e1bcd46ddc448.tar.gz gentoo-2-c2a85b9cea07aabfd3ffcbdf933e1bcd46ddc448.tar.bz2 gentoo-2-c2a85b9cea07aabfd3ffcbdf933e1bcd46ddc448.zip |
Moved from dev-java/ant
Diffstat (limited to 'dev-java/ant-core')
-rw-r--r-- | dev-java/ant-core/ChangeLog | 370 | ||||
-rw-r--r-- | dev-java/ant-core/Manifest | 10 | ||||
-rw-r--r-- | dev-java/ant-core/ant-core-1.5.4.ebuild | 104 | ||||
-rw-r--r-- | dev-java/ant-core/ant-core-1.6.2.ebuild | 86 | ||||
-rw-r--r-- | dev-java/ant-core/files/1.5.4-ant | 89 | ||||
-rw-r--r-- | dev-java/ant-core/files/1.6.2-ant | 166 | ||||
-rw-r--r-- | dev-java/ant-core/files/build.sh-exit-fix.patch.gz | bin | 0 -> 256 bytes | |||
-rw-r--r-- | dev-java/ant-core/files/digest-ant-core-1.5.4 | 1 | ||||
-rw-r--r-- | dev-java/ant-core/files/digest-ant-core-1.6.2 | 1 | ||||
-rw-r--r-- | dev-java/ant-core/files/rpmbuild.patch.gz | bin | 0 -> 1164 bytes | |||
-rw-r--r-- | dev-java/ant-core/metadata.xml | 8 |
11 files changed, 835 insertions, 0 deletions
diff --git a/dev-java/ant-core/ChangeLog b/dev-java/ant-core/ChangeLog new file mode 100644 index 000000000000..1407c5715042 --- /dev/null +++ b/dev-java/ant-core/ChangeLog @@ -0,0 +1,370 @@ +# ChangeLog for dev-java/ant +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-core/ChangeLog,v 1.1 2004/09/10 19:45:18 axxo Exp $ + +*ant-core-1.6.2 (10 Sep 2004) + + 10 Sep 2004; Thomas Matthijs <axxo@gentoo.org> +metadata.xml, + +files/1.5.4-ant, +files/1.6.2-ant, +files/build.sh-exit-fix.patch.gz, + +files/rpmbuild.patch.gz, +ant-core-1.5.4.ebuild, +ant-core-1.6.2.ebuild: + Moved from dev-java/ant + + 06 Sep 2004; Thomas Matthijs <axxo@gentoo.org> -files/1.6.0-r3/ant, + -files/1.6.1/ant, -files/1.6.2-r2/ant, -files/1.6.2-r3/ant, + -ant-1.6.0-r3.ebuild, -ant-1.6.1-r1.ebuild, -ant-1.6.1.ebuild, + -ant-1.6.2-r2.ebuild, -ant-1.6.2-r3.ebuild, ant-1.6.2-r5.ebuild: + remove older ebuild that use ant-optional + + 04 Sep 2004; Thomas Matthijs <axxo@gentoo.org> files/1.6.2-r5/ant, + ant-1.6.2-r5.ebuild: + move jython-bin -> jython, regexp-bin -> regexp + + 01 Sep 2004; Thomas Matthijs <axxo@gentoo.org> files/1.6.2-r5/ant, + ant-1.6.2-r5.ebuild: + remove ant-optional from wrapper, move block on optional to tasks, add block + on older ant-tasks + + 31 Aug 2004; Thomas Matthijs <axxo@gentoo.org> -files/1.6.2-r4/ant, + -ant-1.6.2-r4.ebuild: + remove since its broken + +*ant-1.6.2-r5 (31 Aug 2004) + + 31 Aug 2004; Thomas Matthijs <axxo@gentoo.org> +files/1.6.2-r5/ant, + +ant-1.6.2-r5.ebuild: + fix ant wrapper script to use ant-tasks,and some (-bin) + + 31 Aug 2004; Thomas Matthijs <axxo@gentoo.org> ant-1.6.2-r4.ebuild: + block ant-optional, depending on new ant-tasks-1.6.2-r3 + +*ant-1.6.2-r4 (30 Aug 2004) + + 30 Aug 2004; Karl Trygve Kalleberg <karltk@gentoo.org> + Fixed dependency on ant-optional to ant-tasks. + + 27 Aug 2004; Thomas Matthijs <axxo@gentoo.org> + -files/1.5.3/1_6_backport-jdk142.patch.gz, -files/1.5.3/ant, + -files/1.6.0-r2/ant, -files/1.6.2/ant, -files/1.6.2-r1/ant, + -ant-1.5.3-r5.ebuild, -ant-1.6.0-r2.ebuild, -ant-1.6.2-r1.ebuild, + -ant-1.6.2.ebuild: + remove older versions + + 27 Aug 2004; Thomas Matthijs <axxo@gentoo.org> metadata.xml, + ant-1.6.2-r3.ebuild: + x86 + + 27 Aug 2004; <SeJo@gentoo.org> ant-1.6.0-r3.ebuild, ant-1.6.2-r2.ebuild: + stable on ppc + +*ant-1.6.2-r3 (27 Aug 2004) + + 27 Aug 2004; Thomas Matthijs <axxo@gentoo.org> +files/1.6.2-r3/ant, + +ant-1.6.2-r3.ebuild: + fix bug 60991 + +*ant-1.6.2-r2 (29 Jul 2004) + + 29 Jul 2004; Thomas Matthijs <axxo@gentoo.org> +files/1.6.2-r2/ant, + +ant-1.6.2-r2.ebuild: + actualy use the fixed wrapper script + +*ant-1.6.2-r1 (23 Jul 2004) + + 23 Jul 2004; Thomas Matthijs <axxo@gentoo.org> +files/1.6.2-r1/ant, + +ant-1.6.2-r1.ebuild: + fix ant script wrapper script and depends + + 18 Jul 2004; Thomas Matthijs <axxo@gentoo.org> ant-1.6.2.ebuild: + added ~amd64 + +*ant-1.6.2 (17 Jul 2004) + + 17 Jul 2004; Thomas Matthijs <axxo@gentoo.org> +files/1.6.2/ant, + +ant-1.6.2.ebuild: + Version bump + + 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> ant-1.5.3-r5.ebuild, + ant-1.5.4-r1.ebuild, ant-1.6.0-r2.ebuild, ant-1.6.0-r3.ebuild, + ant-1.6.1-r1.ebuild, ant-1.6.1.ebuild: + virtual/glibc -> virtual/libc + + 12 Jun 2004; Karl Trygve Kalleberg <karltk@gentoo.org> ant-1.6.1.ebuild, + ant-1.6.1-r1.ebuild: Added some extra symlinks. Fixes #49128. + + 16 May 2004; Chris Aniszczyk <zx@gentoo.org> ant-1.6.1-r1.ebuild, + ant-1.6.1.ebuild: + Updated license to Apache 2.0 + + 09 May 2004; Jason Wever <weeve@gentoo.org> ant-1.6.1-r1.ebuild: + Added ~sparc keyword, helps resolve bug #50407. + + 04 May 2004; <SeJo@gentoo.org> ant-1.6.1.ebuild: + added ~ppc keyword to the ant-1.6.1.ebuild + + 23 Mar 2004; David Holm <dholm@gentoo.org> ant-1.6.1-r1.ebuild: + Backed out from ~ppc. + + 22 Mar 2004; David Holm <dholm@gentoo.org> ant-1.6.1-r1.ebuild: + Added to ~ppc. + + 20 Mar 2004; Chris Aniszczyk <zx@gentoo.org> files/1.6.1/ant: + Updated ant to use the new launcher interface. + Thanks to Thomas Wutsch <twutsch@iicm.edu> for the updates. Closes #44804 + +*ant-1.6.1-r1 (17 Mar 2004) + + 11 Mar 2004; Chris Aniszczyk <zx@gentoo.org> ant-1.6.0-r2.ebuild, + ant-1.6.1.ebuild: + Added some fixes. Thanks to Pavel <hlobil@sympatico.ca> for some input. + +*ant-1.6.1 (10 Mar 2004) + + 10 Mar 2004; Chris Aniszczyk <zx@gentoo.org> ant-1.5.4-r1.ebuild, + ant-1.6.1.ebuild: + Version bump + fixes. Closes #43398, #42850, #41414 + + 25 Feb 2004; Dylan Carlson <absinthe@gentoo.org> ant-1.5.4-r1.ebuild, + ant-1.6.0-r2.ebuild, ant-1.6.0-r3.ebuild: + Added amd64 keyword to ant-1.5.4-r1. removed ~ppc from 1.6.0-r3 due to bad + dependencies. 1.6.0 seems broken for PropertyFile tasks anyway, so it is + being moved into package.mask. + + 16 Feb 2004; David Holm <dholm@gentoo.org> ant-1.6.0-r3.ebuild: + Ok, lets try adding this to ~ppc one more time. Someone needs a lecture in CVS + and how to handle conflicts. ;) + + 16 Feb 2004; Chris Aniszczyk <zx@gentoo.org> ant-1.6.0-r3.ebuild: + Bug Fix #39021 + +*ant-1.6.0-r3 (10 Feb 2004) + + 10 Feb 2004; Adrian Almenar <strider@gentoo.org> ant-1.6.0-r3.ebuild: + Removed some USE flags for this package since people dont use them, + and create a lot of bug reports about it. + + 20 Jan 2004; Adrian Almenar <strider@gentoo.org> ant-1.6.0-r2.ebuild: + Added ~x86 keyword. + + 19 Jan 2004; Adrian Almenar <strider@gentoo.org> ant-1.6.0-r2.ebuild: + Added amd64 keyword. + + 18 Jan 2004; Adrian Almenar <strider@gentoo.org> files/1.6.0-r2/ant: + Redirect java-config stderr output to /dev/null. + +*ant-1.6.0-r2 (18 Jan 2004) + + 18 Jan 2004; Adrian Almenar <strider@gentoo.org> ant-1.6.0-r2.ebuild: + New method for building ant. + +*ant-1.6.0 (25 Dec 2003) + + 25 Dec 2003; Adrian Almenar <strider@gentoo.org> ant-1.6.0-r1.ebuild, ant-1.6.0.ebuild, + files/1.6.0/ant: + Updated ant to latest available version. + + 20 Nov 2003; Adrian Almenar <strider@gentoo.org> ant-1.5.4-r1.ebuild: + Moved to stable on all arches. + + 20 Oct 2003; Adrian Almenar <strider@gentoo.org> ant-1.5.4-r1.ebuild, + ant-1.5.4-r2.ebuild: + This should fix bug #31545, Thanks Azarah for your help. + +*ant-1.5.4-r2 (18 Oct 2003) + + 18 Oct 2003; root <strider@gentoo.org> ant-1.5.4-r2.ebuild: + New process to build ant from sources. + + 18 Oct 2003; Adrian Almenar <strider@gentoo.org> ant-1.5.3-r5.ebuild, + ant-1.5.4-r1.ebuild, ant-1.5.4.ebuild, files/1.5.3/ant, files/1.5.4/ant: + Fixes bug #31006 + +*ant-1.5.4-r1 (13 Oct 2003) + + 13 Oct 2003; Adrian Almenar <strider@gentoo.org> ant-1.5.4-r1.ebuild: + Thanks to Gunnlaugur Thor Briem <gthb@hi.is>. + Fix http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14650 + (RPM package builds using rpm task failed with newer rpm versions + such as the current stable one in portage) + +*ant-1.5.4 (21 Sep 2003) + + 21 Sep 2003; Adrian Almenar <strider@gentoo.org> ant-1.5.3-r3.ebuild, + ant-1.5.3-r4.ebuild, ant-1.5.3-r5.ebuild, ant-1.5.4.ebuild, files/1.5.4/ant: + Added but masked 1.5.4, updated ant ebuild so now can use bcel support if + available, also updated patches + + 11 Aug 2003; Adrian Almenar <strider@gentoo.org> ant-1.5.3-r5.ebuild: + Updating ant as its working ok, has been tested. + +*ant-1.5.3-r5 (08 Aug 2003) + + 08 Aug 2003; Adrian Almenar <strider@gentoo.org> ant-1.5.3-r5.ebuild, + files/build.sh-exit-fix.patch.gz, files/1.5.3/1_6_backport-jdk142.patch.gz: + Added new ebuild with patches from Carsten Frewert <gentoo@frewert.de>. + Thanks. Marked as testing. It also solves bug #23874. + +*ant-1.5.3-r4 (26 May 2003) + + 26 May 2003; Dylan Carlson <absinthe@gentoo.org> ant-1.5.3-r4.ebuild: + Time to unmask 1.5.3. -r4 includes a fix to include the supporting scripts to + close bug #19885. + +*ant-1.5.3-r3 (26 Apr 2003) + + 26 Apr 2003; Dylan Carlson <absinthe@gentoo.org> : + Switched to java-pkg eclass; added detection routines for antlr, beanutils, + junitreport, oro and xerces classes for optional ant tasks. + +*ant-1.5.3-r2 (23 Apr 2003) + + 26 Apr 2003; Adrian Almenar <strider@gentoo.org> ant-1.5.3-r2.ebuild: + Updated SRC_URI so this ebuild uses apache mirrors. + + 23 Apr 2003; Dylan Carlson <absinthe@gentoo.org> ant-1.5.3-r2.ebuild: + Many fixes, improvements: + - ant now builds from source instead of using the binaries + (thanks to Ryan Shaw in # 10364, belatedly) + - fixed SRC_URI + - fixed HOMEPAGE (ant.apache.org now) + - improved DESCRIPTION + +*ant-1.5.3-r1 (18 Apr 2003) + + 26 Apr 2003; Adrian Almenar <strider@gentoo.org> ant-1.5.3-r1.ebuild: + Updated SRC_URI so this ebuild uses apache mirrors. Updated Homepage. + + 18 Apr 2003; Dylan Carlson <absinthe@gentoo.org> ant-1.5.3-r1.ebuild, + ant-1.5.3.ebuild, ant-1.5.3.ebuild: + Version bump to close #19505. Still masked for testing. + +*ant-1.5.3 (15 Apr 2003) + + 15 Apr 2003; Dylan Carlson <absinthe@gentoo.org> ant-1.5.3.ebuild, + files/1.5.3/ant: + Version bump. Closes # 17097. + +*ant-1.5.2 (21 Mar 2003) + + 26 Apr 2003; Adrian Almenar <strider@gentoo.org> ant-1.5.2.ebuild: + Updated SRC_URI so this ebuild uses apache mirrors. Updated Homepage. + + 06 Apr 2003; Dylan Carlson <absinthe@gentoo.org> ant-1.5.2.ebuild: + ppc sparc moved to stable. + + 21 Mar 2003; Dylan Carlson <absinthe@gentoo.org> ant-1.5.2.ebuild, + files/1.5.2/ant: + Version bump. Unmasked for x86. + +*ant-1.5.1-r4 (16 Mar 2003) + + 17 Mar 2003; Pieter Van den Abeele <pvdabeel@gentoo.org> ant-1.5.1-r4.ebuild: + Added ~ppc keyword + + 16 Mar 2003; Dylan Carlson <absinthe@gentoo.org> ant-1.5.1-r4.ebuild: + Added 'doc' USE flag for developer's documentation. + +*ant-1.5.1-r3 (01 Dec 2002) + + 05 Mar 2003; Will Woods <wwoods@gentoo.org> ant-1.5.1-r3.ebuild: + Added ~alpha keyword + + 20 Feb 2003; Adrian Almenar <strider@gentoo.org> ant-1.5.1-r3.ebuild : + Changed to stable keyword only on x86. + + 08 Dec 2002; Adrian Almenar <strider@gentoo.org> ant-1.5.1-r3.ebuild : + Added Sparc keyword "~sparc" after testing it. + + 07 Dec 2002; Jack Morgan <jmorgan@gentoo.org> ant-1.5.1-r2.ebuild, ant-1.4.1-r3.ebuild : + Changed sparc64 to sparc keyword + + 01 Dec 2002; Adrian Almenar <strider@gentoo.org> ant-1.5.1-r3.ebuild + Doesnt need to download from a gentoo mirror. + + 01 Dec 2002; Adrian Almenar <strider@gentoo.org> ant-1.5.1-r3.ebuild files/digest-ant-1.5.1-r3 + I have created this ebuild cause building it from sources causes circular + dependencies (See bug #10360 and #10364) cause optional.jar doesnt have + all classes compiled. KEYWORDS are set only to "~x86". This ebuild should + fix some strange errors with ant. If somebody complains about this please + let me know. Also ant project changed how them distribute their files so we + need to mirror it now (Cant be downloaded automatically from their site). + Fixed ebuild to follow policy (Missing IUSE, Missing RDEPEND). + +*ant-1.5.1-r2 (18 Nov 2002) + + 25 Nov 2002; Adrian Almenar <strider@gentoo.org> ant-1.5.1-r2.ebuild + Unmasking ant for sparc64, as it looks like its working very well. + + 22 Nov 2002; Adrian Almenar <strider@gentoo.org> ant-1.5.1-r2.ebuild + Changed Keywords "~x86 ~ppc" to "x86 ppc", inserting "~sparc64". Needs more + tests on sparc64 not only me. + + 18 Nov 2002; Adrian Almenar <strider@gentoo.org> ant-1.5.1-r2.ebuild files/digest-ant-1.5.1-r2: Added (Marked for Testing) + files/1.5.1/ant: Changed + User Classpath get overwrited by "gentooized" ant script, Fixes bug #10061. + +*ant-1.5.1-r1 (02 Nov 2002) + + 02 Nov 2002; Karl Trygve Kalleberg <karltk@gentoo.org> ant-1.5.1-r1.ebuild files/digest-ant-1.5.1-r1: + Now uses Green threads on PPC. Fixes #7706. + Removed ant-1.5.1.ebuild files/digest-ant-1.5.1 + + 16 Oct 2002; Karl Trygve Kalleberg <karltk@gentoo.org> files/1.5/ant: + Improved slightly, thanks to #9394. + +*ant-1.5.1 (25 Oct 2002) + + 25 Oct 2002; Maik Schreiber <blizzy@gentoo.org> ant-1.5.1.ebuild, + files/1.5.1/ant: New version. + + 25 Oct 2002; Maik Schreiber <blizzy@gentoo.org> ant-1.5.ebuild: Changed + KEYWORDS to "x86 ~ppc". + + 18 Oct 2002; Karl Trygve Kalleberg <karltk@gentoo.org> files/1.5/ant: + Fixed nasty oversight in script. + + 14 Oct 2002; Karl Trygve Kalleberg <karltk@gentoo.org> files/1.5/ant: + Fixed bugs with script as reported in #7732. Marked for testing. + +*ant-1.5 (26 Jul 2002) + + 26 Jul 2002; William McArthur <sandymac@gentoo.org> ant-1.5.ebuild, + files/1.5/ant: Upgraded to Ant 1.5, rewrote the Gentoo specific ant script to + take avantage of java-config. It also looked like the Gentoo ant-1.4.1 + script was based an older version of ant. + + 26 Aug 2002; Karl Trygve Kalleberg <karltk@gentoo.org> ant-1.4.1-r3.ebuild: + Added test in pkg_setup() to ensure that a proper system VM is installed. + This is a special-case, we should not bother about adding similar tests to + all other java packages. + + 24 Aug 2002; Karl Trygve Kalleberg <karltk@gentoo.org> ant-1.4.1-r3.ebuild: + Added extra install-time test to verify that all files install properly. + Some users manage to install a faulty ant, for some reason. + + 13 Aug 2002; Pieter Van den Abeele <pvdabeel@gentoo.org> ant-1.4.1-r3.ebuild: + added ppc keyword + + 01 Aug 2002; Karl Trygve Kalleberg <karltk@gentoo.org> ant-1.4.1-r3.ebuild: + Added SLOT, KEYWORDS and LICENSE. Ebuild originally submitted by Achim + Gottinger <achim@gentoo.org>. + +*ant-1.4.1-r3 (03 May 2002) + + 03 May 2002; Karl Trygve Kalleberg <karltk@gentoo.org> ant-1.4.1-r3.ebuild: + Now handles the case of multiple occurrences of JAVA_HOME in the Java + environment setting, thanks to Florian L. Klein <kleinf@gmx.de>. + + Removed ant-1.4.1-r2.ebuild files/digest-ant-1.4.1-r2 + +*ant-1.4.1-r2 (10 Apr 2002) + + 10 Apr 2002; Karl Trygve Kalleberg <karltk@gentoo.org> ant-1.4.1-r2.ebuild: + The JAVA_HOME env var is now picked from $HOME/.gentoo/java-env if it exists, + /etc/env.d/20java if not. An error is emitted if both files are missing. + + Removed ant-1.4.1-r1.ebuild files/digest-ant-1.4.1-r1 + +*ant-1.4.1-r1 (01 Feb 2002) + + 01 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog: + Added initial ChangeLog. diff --git a/dev-java/ant-core/Manifest b/dev-java/ant-core/Manifest new file mode 100644 index 000000000000..8192386c7864 --- /dev/null +++ b/dev-java/ant-core/Manifest @@ -0,0 +1,10 @@ +MD5 94bd1d0766c90b67e7fec21df576d9f5 ant-core-1.5.4.ebuild 3037 +MD5 65409d3548cf889d0586c84e25926a84 ant-core-1.6.2.ebuild 2217 +MD5 d3468e1be841275bddc8ee3750ba6098 ChangeLog 13721 +MD5 4dad079a28768d183022cff420f01281 metadata.xml 220 +MD5 84ed05e7d01b0dbd59dd35b13ae661ed files/1.5.4-ant 2280 +MD5 826ae75cc3b573664805509dfd33fa7e files/1.6.2-ant 4972 +MD5 4383441650437fec5622070e48e4324c files/build.sh-exit-fix.patch.gz 256 +MD5 55ece9ccf573b244b3dff966839528c5 files/rpmbuild.patch.gz 1164 +MD5 8d86f265f37d0d73cdd2e8a3fd2ff6eb files/digest-ant-core-1.5.4 70 +MD5 aac477e88787ed6f0ad5cabe0f6a001a files/digest-ant-core-1.6.2 74 diff --git a/dev-java/ant-core/ant-core-1.5.4.ebuild b/dev-java/ant-core/ant-core-1.5.4.ebuild new file mode 100644 index 000000000000..4d1f0d060db7 --- /dev/null +++ b/dev-java/ant-core/ant-core-1.5.4.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-core/ant-core-1.5.4.ebuild,v 1.1 2004/09/10 19:45:18 axxo Exp $ + +inherit java-pkg eutils + +MY_PN=${PN/-core} +DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files." +HOMEPAGE="http://ant.apache.org/" +SRC_URI="http://archive.apache.org/dist/ant/source/apache-${MY_PN}-${PV}-src.zip" + +LICENSE="Apache-1.1" +SLOT="0" +KEYWORDS="x86 ppc sparc amd64" +IUSE="doc" + +DEPEND="virtual/libc + >=virtual/jdk-1.3 + >=app-arch/unzip-5.50-r1" +RDEPEND=">=virtual/jdk-1.3 + app-shells/bash" + +S="${WORKDIR}/apache-ant-${PV}" + +src_unpack() { + unpack ${A} + cd ${S} + + # Patch build.sh to die with non-zero exit code in case of errors. + # This patch may be useful for all ant versions. + epatch ${FILESDIR}/build.sh-exit-fix.patch.gz + # This patch will be used until ant 1.6 is released + epatch ${FILESDIR}/rpmbuild.patch.gz +} + +src_compile() { + addwrite "/proc/self/maps" + + [ -z ${JDK_HOME} ] && einfo "JDK_HOME not set, please check with java-config" && die + + export JAVA_HOME=${JDK_HOME} + if [ `arch` == "ppc" ] ; then + # We're compiling _ON_ PPC + export THREADS_FLAG="green" + fi + + # Make sure junit tasks get built if we have junit + if [ -f "/usr/share/junit/lib/junit.jar" ] ; then + export CLASSPATH="/usr/share/junit/lib/junit.jar" + export DEP_APPEND="junit" + if [ -f "/usr/share/xalan/lib/xalan.jar" ] ; then + export CLASSPATH="${CLASSPATH}:/usr/share/xalan/lib/xalan.jar" + export DEP_APPEND="${DEP_APPEND} xalan" + fi + fi + + # Add Xerces in if we have it + if [ -f "/usr/share/xerces/lib/xercesImpl.jar" ] ; then + export CLASSPATH="${CLASSPATH}:/usr/share/xerces/lib/xercesImpl.jar:/usr/share/xerces/lib/xml-apis.jar" + export DEP_APPEND="${DEP_APPEND} xerces" + fi + + # Add oro in if we have it + if [ -f "/usr/share/oro/lib/oro.jar" ] ; then + export CLASSPATH="${CLASSPATH}:/usr/share/oro/lib/oro.jar" + export DEP_APPEND="${DEP_APPEND} oro" + fi + + # Add beanutils if we have it + if [ -f "/usr/share/commons-beanutils/lib/commons-beanutils.jar" ] ; then + export CLASSPATH="${CLASSPATH}:/usr/share/commons-beanutils/lib/commons-beanutils.jar" + export DEP_APPEND="${DEP_APPEND} commons-beanutils" + fi + + # add antlr if we have it + if [ -f "/usr/share/antlr/lib/antlr.jar" ] ; then + export CLASSPATH="${CLASSPATH}:/usr/share/antlr/lib/antlr.jar" + export DEP_APPEND="${DEP_APPEND} antlr" + fi + + # add bcel if we have it + if [ -f "/usr/share/bcel/lib/bcel.jar" ] ; then + export CLASSPATH="${CLASSPATH}:/usr/share/bcel/lib/bcel.jar" + export DEP_APPEND="${DEP_APPEND} bcel" + fi + + ./build.sh -Ddist.dir=${D}/usr/share/${PN} || die +} + +src_install() { + cp ${FILESDIR}/${PVR}-ant ${S}/src/ant + + exeinto /usr/bin + doexe src/ant + for each in antRun runant.pl runant.py complete-ant-cmd.pl ; do + dobin ${S}/src/script/${each} + done + + java-pkg_dojar build/lib/*.jar + + dodoc LICENSE LICENSE.* README WHATSNEW KEYS + use doc && dohtml welcome.html + use doc && dohtml -r docs/* +} diff --git a/dev-java/ant-core/ant-core-1.6.2.ebuild b/dev-java/ant-core/ant-core-1.6.2.ebuild new file mode 100644 index 000000000000..8d3ad00afcf5 --- /dev/null +++ b/dev-java/ant-core/ant-core-1.6.2.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-core/ant-core-1.6.2.ebuild,v 1.1 2004/09/10 19:45:18 axxo Exp $ + +inherit java-pkg eutils + +MY_PN=${PN/-core} + +DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files." +HOMEPAGE="http://ant.apache.org/" +SRC_URI="mirror://apache/ant/source/apache-${MY_PN}-${PV}-src.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="x86 ~amd64 ppc sparc" +IUSE="doc" + +DEPEND="virtual/libc + >=virtual/jdk-1.4 + >=dev-java/java-config-1.2" +RDEPEND=">=virtual/jdk-1.4 + app-shells/bash + >=dev-java/java-config-1.2" + +S="${WORKDIR}/apache-ant-${PV}" + +pkg_setup() { + if [ -n "$JAVA_HOME" ] ; then + export CLASSPATH=".:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar:." + else + einfo "Warning: JAVA_HOME environment variable is not set (or not exported)." + einfo " If build fails because sun.* classes could not be found" + einfo " you will need to set the JAVA_HOME environment variable" + einfo " to the installation directory of java." + einfo " Try using java-config script" + die + fi + + if [ `arch` == "ppc" ] ; then + # We're compiling _ON_ PPC + export THREADS_FLAG="green" + fi +} + +src_unpack() { + unpack ${A} + cd ${S} + + # Patch build.sh to die with non-zero exit code in case of errors. + # This patch may be useful for all ant versions. + epatch ${FILESDIR}/build.sh-exit-fix.patch.gz +} + +src_compile() { + addwrite "/proc/self/maps" + + local myc + myc="${myc} -Ddist.dir=${D}/usr/share/${PN}" + myc="${myc} -Djavac.target=1.4" + + echo $CLASSPATH + ./build.sh -Ddist.dir=${D}/usr/share/${PN} || die +} + +src_install() { + cp ${FILESDIR}/${PVR}-ant ${S}/src/ant + + exeinto /usr/bin + doexe src/ant + + dodir /usr/share/${PN}/bin + for each in antRun runant.pl runant.py complete-ant-cmd.pl ; do + dobin ${S}/src/script/${each} + dosym /usr/bin/${each} /usr/share/${PN}/bin/${each} + done + + dodir /etc/env.d + echo "ANT_HOME=\"/usr/share/${PN}\"" > ${D}/etc/env.d/20ant + + java-pkg_dojar build/lib/ant.jar + java-pkg_dojar build/lib/ant-launcher.jar + + dodoc LICENSE LICENSE.* README WHATSNEW KEYS + use doc && dohtml welcome.html + use doc && dohtml -r docs/* +} diff --git a/dev-java/ant-core/files/1.5.4-ant b/dev-java/ant-core/files/1.5.4-ant new file mode 100644 index 000000000000..af8bf4f6a15d --- /dev/null +++ b/dev-java/ant-core/files/1.5.4-ant @@ -0,0 +1,89 @@ +#! /bin/bash + +# Copyright (c) 2001-2003 The Apache Software Foundation. All rights +# reserved. +# Edited for Gentoo Linux +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-core/files/1.5.4-ant,v 1.1 2004/09/10 19:45:18 axxo Exp $ + +if [ -f $HOME/.gentoo/java-env ] ; then + source $HOME/.gentoo/java-env +else + JAVA_HOME=`java-config --jdk-home` + CLASSPATH=`java-config --classpath`:${CLASSPATH} +fi + +if [ -z $JAVA_HOME ] ; then + echo "Error: No JDK found!" + echo "Try using java-config script to set your JDK" + echo "Remember that you need a JDK not a JRE" + exit 1 +fi + +# load system-wide ant configuration +if [ -f "/etc/ant.conf" ] ; then + . /etc/ant.conf +fi + +# provide default values for people who don't use RPMs +if [ -z "$rpm_mode" ] ; then + rpm_mode=false; +fi +if [ -z "$usejikes" ] ; then + usejikes=false; +fi + +# load user ant configuration +if [ -f "$HOME/.antrc" ] ; then + . "$HOME/.antrc" +fi + +ANT_HOME=/usr/share/ant-core + +# set ANT_LIB location +ANT_LIB="${ANT_HOME}/lib" + +JAVACMD="`java-config --java`" + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." + echo " We cannot execute $JAVACMD" + exit 1 +fi + +if [ -n "$CLASSPATH" ] ; then + LOCALCLASSPATH="$CLASSPATH" +fi + +# add in the dependency .jar files +LOCALCLASSPATH="${LOCALCLASSPATH}:`java-config --classpath=ant`" + +if [ -n "$JAVA_HOME" ] ; then + if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then + LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar" + fi + + if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then + LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip" + fi + +else + echo "Warning: JAVA_HOME environment variable is not set (or not exported)." + echo " If build fails because sun.* classes could not be found" + echo " you will need to set the JAVA_HOME environment variable" + echo " to the installation directory of java." + echo " Try using java-config script" +fi + +# Allow Jikes support (off by default) +if $usejikes; then + ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes" +fi + +# 2002-11-02, karltk@gentoo.org: +# The Blackdown JDK on PPC hiccups with native threads +# +if [ "`arch`" == "ppc" ] ; then + export THREADS_FLAG="green" +fi + +"$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main $ANT_ARGS "$@" diff --git a/dev-java/ant-core/files/1.6.2-ant b/dev-java/ant-core/files/1.6.2-ant new file mode 100644 index 000000000000..645db65e6ae9 --- /dev/null +++ b/dev-java/ant-core/files/1.6.2-ant @@ -0,0 +1,166 @@ +#! /bin/bash + +# Copyright 2001-2004 The Apache Software Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Edited for Gentoo Linux +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-core/files/1.6.2-ant,v 1.1 2004/09/10 19:45:18 axxo Exp $ + +# Extract launch and ant arguments, (see details below). +ant_exec_args= +no_config=false +use_jikes_default=false +ant_exec_debug=false +show_help=false +for arg in "$@" ; do + if [ "$arg" = "--noconfig" ] ; then + no_config=true + elif [ "$arg" = "--usejikes" ] ; then + use_jikes_default=true + elif [ "$arg" = "--execdebug" ] ; then + ant_exec_debug=true + elif [ my"$arg" = my"--h" -o my"$arg" = my"--help" ] ; then + show_help=true + ant_exec_args="$ant_exec_args -h" + else + if [ my"$arg" = my"-h" -o my"$arg" = my"-help" ] ; then + show_help=true + fi + ant_exec_args="$ant_exec_args \"$arg\"" + fi +done + +# Source/default ant configuration +if $no_config ; then + rpm_mode=false + usejikes=$use_jikes_default +else + # load system-wide ant configuration + if [ -f "/etc/ant.conf" ] ; then + . /etc/ant.conf + fi + + # load user ant configuration + if [ -f "$HOME/.ant/ant.conf" ] ; then + . $HOME/.ant/ant.conf + fi + if [ -f "$HOME/.antrc" ] ; then + . "$HOME/.antrc" + fi + + # provide default configuration values + if [ -z "$rpm_mode" ] ; then + rpm_mode=false + fi + if [ -z "$usejikes" ] ; then + usejikes=$use_jikes_default + fi +fi + +if [ -f $HOME/.gentoo/java-env ] ; then + source $HOME/.gentoo/java-env +else + JAVA_HOME=`java-config --jdk-home` + CLASSPATH=`java-config --classpath`:${CLASSPATH} +fi + +if [ -z $JAVA_HOME ] ; then + echo "Error: No JDK found!" + echo "Try using java-config script to set your JDK" + echo "Remember that you need a JDK not a JRE" + exit 1 +fi + +ANT_HOME=/usr/share/ant-core + +# set ANT_LIB location +ANT_LIB="${ANT_HOME}/lib" + +JAVACMD="`java-config --java`" + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." + echo " We cannot execute $JAVACMD" + exit 1 +fi + +if [ -z "$LOCALCLASSPATH" ] ; then + LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar +else + LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar:$LOCALCLASSPATH +fi + +# add in the dependency .jar files +LOCALCLASSPATH="${LOCALCLASSPATH}:`java-config --classpath=ant-core,ant-tasks,log4j,xerces-2,xalan,junit,antlr,bcel,bsh,commons-beanutils,commons-logging,commons-net,oro,jdepend,jsch,regexp,rhino,jython,jta,jaf,javamail 2> /dev/null`" + +if [ -n "$JAVA_HOME" ] ; then + if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then + LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar" + fi + + if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then + LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip" + fi + +else + echo "Warning: JAVA_HOME environment variable is not set (or not exported)." + echo " If build fails because sun.* classes could not be found" + echo " you will need to set the JAVA_HOME environment variable" + echo " to the installation directory of java." + echo " Try using java-config script" +fi + +# Allow Jikes support (off by default) +if $usejikes; then + ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes" +fi + +# Show script help if requested +if $show_help ; then + echo $0 '[script options] [options] [target [target2 [target3] ..]]' + echo 'Script Options:' + echo ' --help, --h print this message and ant help' + echo ' --noconfig suppress sourcing of /etc/ant.conf,' + echo ' $HOME/.ant/ant.conf, and $HOME/.antrc' + echo ' configuration files' + echo ' --usejikes enable use of jikes by default, unless' + echo ' set explicitly in configuration files' + echo ' --execdebug print ant exec line generated by this' + echo ' launch script' + echo ' ' +fi + +# Execute ant using eval/exec to preserve spaces in paths, +# java options, and ant args +ant_sys_opts= + + +if [ -n "$JIKESPATH" ]; then + ant_sys_opts="-Djikes.class.path=\"$JIKESPATH\"" +fi + +# 2002-11-02, karltk@gentoo.org: +# The Blackdown JDK on PPC hiccups with native threads +# +if [ "`arch`" == "ppc" ] ; then + export THREADS_FLAG="green" +fi + + +ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS -classpath \"$LOCALCLASSPATH\" -Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher $ANT_ARGS -lib \"$CLASSPATH\" $ant_exec_args" + +if $ant_exec_debug ; then + echo $ant_exec_command +fi +eval $ant_exec_command diff --git a/dev-java/ant-core/files/build.sh-exit-fix.patch.gz b/dev-java/ant-core/files/build.sh-exit-fix.patch.gz Binary files differnew file mode 100644 index 000000000000..541f796dd7ef --- /dev/null +++ b/dev-java/ant-core/files/build.sh-exit-fix.patch.gz diff --git a/dev-java/ant-core/files/digest-ant-core-1.5.4 b/dev-java/ant-core/files/digest-ant-core-1.5.4 new file mode 100644 index 000000000000..80802420362a --- /dev/null +++ b/dev-java/ant-core/files/digest-ant-core-1.5.4 @@ -0,0 +1 @@ +MD5 61ce45f5e62d304def5027d7ca36211e apache-ant-1.5.4-src.zip 6610843 diff --git a/dev-java/ant-core/files/digest-ant-core-1.6.2 b/dev-java/ant-core/files/digest-ant-core-1.6.2 new file mode 100644 index 000000000000..511c4167d672 --- /dev/null +++ b/dev-java/ant-core/files/digest-ant-core-1.6.2 @@ -0,0 +1 @@ +MD5 83c3adefdbf90bcbc4b804d4c55c0778 apache-ant-1.6.2-src.tar.bz2 6282237 diff --git a/dev-java/ant-core/files/rpmbuild.patch.gz b/dev-java/ant-core/files/rpmbuild.patch.gz Binary files differnew file mode 100644 index 000000000000..0a86f9559513 --- /dev/null +++ b/dev-java/ant-core/files/rpmbuild.patch.gz diff --git a/dev-java/ant-core/metadata.xml b/dev-java/ant-core/metadata.xml new file mode 100644 index 000000000000..e220c8b8a3f3 --- /dev/null +++ b/dev-java/ant-core/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <maintainer> + <email>axxo@gentoo.org</email> + </maintainer> +</pkgmetadata> |