diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2004-08-31 17:54:44 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2004-08-31 17:54:44 +0000 |
commit | 0b33381c1f5767641afaf36d42e13f4f21b0c1e6 (patch) | |
tree | 4fa778162a9c91601b16ba4462960f1606e40194 /dev-java/ant | |
parent | Version bump and old version removed upstream (diff) | |
download | historical-0b33381c1f5767641afaf36d42e13f4f21b0c1e6.tar.gz historical-0b33381c1f5767641afaf36d42e13f4f21b0c1e6.tar.bz2 historical-0b33381c1f5767641afaf36d42e13f4f21b0c1e6.zip |
fix ant wrapper script to use ant-tasks,and some (-bin)
Diffstat (limited to 'dev-java/ant')
-rw-r--r-- | dev-java/ant/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/ant/Manifest | 13 | ||||
-rw-r--r-- | dev-java/ant/ant-1.6.2-r5.ebuild | 86 | ||||
-rw-r--r-- | dev-java/ant/files/1.6.2-r5/ant | 166 | ||||
-rw-r--r-- | dev-java/ant/files/digest-ant-1.6.2-r5 | 1 |
5 files changed, 268 insertions, 6 deletions
diff --git a/dev-java/ant/ChangeLog b/dev-java/ant/ChangeLog index 54f3119c59c8..f5dcf7c116c6 100644 --- a/dev-java/ant/ChangeLog +++ b/dev-java/ant/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/ant # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/ant/ChangeLog,v 1.75 2004/08/31 06:15:30 axxo Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant/ChangeLog,v 1.76 2004/08/31 17:54:44 axxo Exp $ + +*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 diff --git a/dev-java/ant/Manifest b/dev-java/ant/Manifest index 4e43dd8c352e..d35ca94a3ab9 100644 --- a/dev-java/ant/Manifest +++ b/dev-java/ant/Manifest @@ -5,9 +5,10 @@ MD5 5f6b6c258c3edf75842d1753a95dc309 ant-1.6.2-r3.ebuild 2224 MD5 0a9e579c0585e31fa0f608df4fc596ab ant-1.5.4-r1.ebuild 3013 MD5 feb875c667f1fe035a07b0709bfa3b83 ant-1.6.1-r1.ebuild 2233 MD5 cdb8b5b010df8ff5460d310b98b2f086 ant-1.6.1.ebuild 2222 +MD5 762fc710963c82834a90fb51acf4a379 ant-1.6.2-r5.ebuild 2212 MD5 16df02d2f27b258ec276ae47cb5fb844 ant-1.6.2-r2.ebuild 2221 MD5 c658c82e510af29ddedca0f00f1d9cfd ant-1.6.0-r3.ebuild 1594 -MD5 8440080a9b2d9497a924a0e9e854c5c3 ChangeLog 12502 +MD5 8e729a83ce2ecdfbeaa3f9f7c9bccee4 ChangeLog 12684 MD5 4dad079a28768d183022cff420f01281 metadata.xml 220 MD5 0b6317045138c83ae4ba25c3407b20da ant-1.6.2-r4.ebuild 2212 MD5 9796e31a633d28a00242c76325bb85b4 files/20ant 26 @@ -20,16 +21,18 @@ MD5 742e94a3c64e9b5cddc7ce7863d1afac files/digest-ant-1.6.1-r1 74 MD5 aac477e88787ed6f0ad5cabe0f6a001a files/digest-ant-1.6.2-r2 74 MD5 aac477e88787ed6f0ad5cabe0f6a001a files/digest-ant-1.6.2-r3 74 MD5 aac477e88787ed6f0ad5cabe0f6a001a files/digest-ant-1.6.2-r4 74 +MD5 aac477e88787ed6f0ad5cabe0f6a001a files/digest-ant-1.6.2-r5 74 MD5 b175a3f82c4b6326054b651bf39217fd files/1.6.0-r3/ant 2444 MD5 7f78a7891b6440422489d4e55c08384a files/1.6.2-r2/ant 4697 MD5 9e239f4c98abe5ae2f940e2e01d6d898 files/1.6.2-r3/ant 4965 MD5 44cf1e66a5ac9551bf60d5749483b03d files/1.6.2-r4/ant 4967 +MD5 23a483d4d4346905eeaf30591a19bed7 files/1.6.2-r5/ant 4997 MD5 f8c9e03bf0f5924ebf9162718bf15169 files/1.5.4/ant 2275 MD5 25a7ebba11a8442506388faea61f5abc files/1.6.1/ant 2492 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.2.5 (GNU/Linux) +Version: GnuPG v1.2.6 (GNU/Linux) -iD8DBQFBNBfB/rLF9B432nYRArtJAJ9D4VDUItCLw08jlywhP3yc2lcmgwCfYrGT -UHngfsb66wgfNtn35DD/rqE= -=AkfH +iD8DBQFBNLvG/rLF9B432nYRAl7PAKDLR+S9Lmm/rqfjuOA9w1HACTzTagCfUiet +TsBYmoBIAPa/ctG+su7twYk= +=nwpG -----END PGP SIGNATURE----- diff --git a/dev-java/ant/ant-1.6.2-r5.ebuild b/dev-java/ant/ant-1.6.2-r5.ebuild new file mode 100644 index 000000000000..20d7a915c881 --- /dev/null +++ b/dev-java/ant/ant-1.6.2-r5.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/ant-1.6.2-r5.ebuild,v 1.1 2004/08/31 17:54:44 axxo Exp $ + +inherit java-pkg eutils + +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-${PN}-${PV}-src.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc" +IUSE="doc" + +DEPEND="virtual/libc + >=virtual/jdk-1.4 + !dev-java/ant-optional + >=dev-java/java-config-1.2" +RDEPEND=">=virtual/jdk-1.4 + app-shells/bash + >=dev-java/java-config-1.2" +PDEPEND="=dev-java/ant-tasks-1.6.2-r4" + +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/ant" + myc="${myc} -Djavac.target=1.4" + + echo $CLASSPATH + ./build.sh -Ddist.dir=${D}/usr/share/ant || die +} + +src_install() { + cp ${FILESDIR}/${PVR}/ant ${S}/src/ant + + exeinto /usr/bin + doexe src/ant + + dodir /usr/share/ant/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/ant/bin/${each} + done + + insinto /etc/env.d + doins ${FILESDIR}/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/files/1.6.2-r5/ant b/dev-java/ant/files/1.6.2-r5/ant new file mode 100644 index 000000000000..1f6fec412169 --- /dev/null +++ b/dev-java/ant/files/1.6.2-r5/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/files/1.6.2-r5/ant,v 1.1 2004/08/31 17:54:44 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 + +# 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,ant-optional,ant-tasks,log4j,xerces-2,xalan,junit,antlr,bcel,bsh,commons-beanutils,commons-logging,commons-net,oro,jdepend,jsch,regexp-bin,regexp,rhino,jython,jython-bin,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/files/digest-ant-1.6.2-r5 b/dev-java/ant/files/digest-ant-1.6.2-r5 new file mode 100644 index 000000000000..511c4167d672 --- /dev/null +++ b/dev-java/ant/files/digest-ant-1.6.2-r5 @@ -0,0 +1 @@ +MD5 83c3adefdbf90bcbc4b804d4c55c0778 apache-ant-1.6.2-src.tar.bz2 6282237 |