diff options
author | Vlastimil Babka <caster@gentoo.org> | 2010-02-28 14:35:45 +0000 |
---|---|---|
committer | Vlastimil Babka <caster@gentoo.org> | 2010-02-28 14:35:45 +0000 |
commit | ef32926724c968b569ce51bee6cad30a2eb976d8 (patch) | |
tree | 220aff9ba75dec9f4376c63b36af470d75ed1a51 /dev-java/ant-core | |
parent | Version bump, fix for bug #299478 and add ~amd64 (diff) | |
download | historical-ef32926724c968b569ce51bee6cad30a2eb976d8.tar.gz historical-ef32926724c968b569ce51bee6cad30a2eb976d8.tar.bz2 historical-ef32926724c968b569ce51bee6cad30a2eb976d8.zip |
Revbump to apply prefix changes from bug #306425 by Fabian Groffen <grobian@gentoo.org>. Put everything from FILESDIR into the gentoo distfiles.
Package-Manager: portage-2.2_rc63/cvs/Linux x86_64
Diffstat (limited to 'dev-java/ant-core')
-rw-r--r-- | dev-java/ant-core/ChangeLog | 13 | ||||
-rw-r--r-- | dev-java/ant-core/Manifest | 13 | ||||
-rw-r--r-- | dev-java/ant-core/ant-core-1.7.1-r4.ebuild | 12 | ||||
-rw-r--r-- | dev-java/ant-core/ant-core-1.7.1-r5.ebuild | 105 | ||||
-rw-r--r-- | dev-java/ant-core/ant-core-1.8.0-r1.ebuild | 104 | ||||
-rw-r--r-- | dev-java/ant-core/files/1.7.1-ant-r1 | 204 | ||||
-rw-r--r-- | dev-java/ant-core/files/1.7.1-jdk4-javadoc.patch | 60 | ||||
-rw-r--r-- | dev-java/ant-core/files/1.7.1-pkg-info.patch | 227 |
8 files changed, 234 insertions, 504 deletions
diff --git a/dev-java/ant-core/ChangeLog b/dev-java/ant-core/ChangeLog index 9856ab7ebefc..da29addfbe7e 100644 --- a/dev-java/ant-core/ChangeLog +++ b/dev-java/ant-core/ChangeLog @@ -1,11 +1,22 @@ # ChangeLog for dev-java/ant-core # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-core/ChangeLog,v 1.101 2010/02/21 00:34:34 caster Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-core/ChangeLog,v 1.102 2010/02/28 14:35:43 caster Exp $ # Ant-core blocks lower/older versions of ant-tasks, # since it will not run when there is a version mismatch betwean the 2 packages # Please unemerge ant-tasks when updating ant-core. +*ant-core-1.8.0-r1 (28 Feb 2010) +*ant-core-1.7.1-r5 (28 Feb 2010) + + 28 Feb 2010; Vlastimil Babka <caster@gentoo.org> -files/1.7.1-ant-r1, + +ant-core-1.7.1-r5.ebuild, -files/1.7.1-jdk4-javadoc.patch, + +ant-core-1.8.0-r1.ebuild, -files/1.7.1-pkg-info.patch, + ant-core-1.7.1-r4.ebuild: + Revbump to apply prefix changes from bug #306425 by Fabian Groffen + <grobian@gentoo.org>. Put everything from FILESDIR into the gentoo + distfiles. + *ant-core-1.8.0 (21 Feb 2010) 21 Feb 2010; Vlastimil Babka <caster@gentoo.org> +ant-core-1.8.0.ebuild: diff --git a/dev-java/ant-core/Manifest b/dev-java/ant-core/Manifest index dc5f4f9d062d..af52d616c3f9 100644 --- a/dev-java/ant-core/Manifest +++ b/dev-java/ant-core/Manifest @@ -1,11 +1,12 @@ -AUX 1.7.1-ant-r1 6239 RMD160 f942c93807c332ad348a3e7d4c234940f3e02c5a SHA1 5b1c278727f06a0a7f5a17cf33b832890f388e0e SHA256 b356287d56db9c72e39ccb9785bfaf8db06b67a601c939db7f48014428ccea4d -AUX 1.7.1-jdk4-javadoc.patch 2026 RMD160 4354a94c8af1e139b343711db51c3d9cf49c00d4 SHA1 9ab01272af7e5edd0d57f385334a95ed238d66c4 SHA256 ef26b648797b6da33fa08c5110a2d7e1377c716349a38922e63638ba4cb6e096 -AUX 1.7.1-pkg-info.patch 9325 RMD160 1ea5ce708bbb5dd3815f1eadc7cba3b3d0dc5db4 SHA1 ac8d14e9090a02060f44999673888c1431b203b2 SHA256 43041836e2ed4e883e6878649f4e43f6cc8399f9bae79b8de49c48b773ec7b06 -DIST ant-1.7.1-gentoo.tar.bz2 11836 RMD160 9194996b5b04113d2a6542221890e1ef3f7953d0 SHA1 ef848268ec2b7ecd9aca2f8a3d6705ec8386a621 SHA256 4bacd711cc4981272b8377335dafcb8841dd1fac177c0c349f3faf78b0354fe5 +DIST ant-1.7.1-gentoo-r1.tar.bz2 17259 RMD160 8286750e7a8c3d12b21bbf453a566302209c166f SHA1 6853208f0641db5a3b30d00ae3cca4defb6ca1fa SHA256 f0a395c56445a794e1715ea91429596b785310f0ad8c055d21438c78338fd13c +DIST ant-1.7.1-gentoo-r2.tar.bz2 19360 RMD160 6b70ee7db0a8ef5b358103b6236485b6d749ac6e SHA1 df1a4198dc36abb1b08aecf291f31517258da186 SHA256 21f5b949ca2f177f8dbbe72419a70ddc017c4abbfea67af4a829e37c0e93f03c +DIST ant-1.8.0-gentoo-r1.tar.bz2 15287 RMD160 94129189dfe9524303423be2b7cb2fdd603eafa6 SHA1 bed437ab8ba870bb2f8ecff467d10eeb4707d5db SHA256 772136465912518e417e237bea62c331ad71c6b92a9f95000fbc77a1a623ffb9 DIST ant-1.8.0-gentoo.tar.bz2 13993 RMD160 7cb9e22b7d6a5648e00ba8954fb8ffe61a02f0f4 SHA1 85b3187e80ee8e96aaf3bfb756ce00c2da6eaaba SHA256 12edd6ccfe9f4add90024e82ba1fc6dda141a04d97d800b860347c3d21007acb DIST apache-ant-1.7.1-src.tar.bz2 6979386 RMD160 09ff510a9801c734689db23e66ccf353b7361824 SHA1 8a468d3ce1e84739a78f779770416a8bd502eaf5 SHA256 4dc49a7260ef90a6dc6611b7e96b9f047d507589736d4a2ad6efbe3edfc6fba6 DIST apache-ant-1.8.0-src.tar.bz2 7122981 RMD160 8cabc5302330b5321a33e7da416de1df3627287a SHA1 f7bb4c58967cebd499b250bda0ae862d496260e1 SHA256 b1da647175784c9e0113b8e76643c89123396b5f1d0ad54417390a92e02e6786 -EBUILD ant-core-1.7.1-r4.ebuild 2913 RMD160 943b6fa28c7150d5de626bd586d3bbd32fbdc3c4 SHA1 786659fec0fc58cccfb38e6864efe2fd06ec48db SHA256 3f34a5e546ad31d3c46e349c9a34f30029247bcba01454ec75ab526d53086088 +EBUILD ant-core-1.7.1-r4.ebuild 2915 RMD160 7bc3ae4fb02a10a27ede4dce37506d12b4d250db SHA1 1e1485aec5f8e75db694c48f73b07363e3dcb75f SHA256 bcbbf9c1d14b84de6bebd949f95cc2c32dae7ffe82c911756d5c770d31497110 +EBUILD ant-core-1.7.1-r5.ebuild 3057 RMD160 41c31655cfb44bf8226644b985cd5a84d6ab442f SHA1 1baed01e724ed18f2030080e2fb5c984575956c5 SHA256 c28ce76f105ab8358358d65e39f587132f0902dc1a6dacb840c723861e5e0c08 +EBUILD ant-core-1.8.0-r1.ebuild 3059 RMD160 bede6dd0ee7b495af28ee82ffed89074e48add29 SHA1 63a05ee6e0aade5d7469223c76d6eb4b2b5441e2 SHA256 d6c2beacd648a7258c63c00dc661aa53f6118eff62774b6e833959a647e5e452 EBUILD ant-core-1.8.0.ebuild 2811 RMD160 fc878251a1d83ef90508a9e0bb0b1e409b04c22a SHA1 f3444cddab3c257bb62df4dd5575bac17d22eaba SHA256 6eeb816d5cf1fd8263e3bd79e9ae1cb72d06a8e148106374dca635e90fadbbfc -MISC ChangeLog 28620 RMD160 0ba3b420300effb2e073bc553f161b2358182313 SHA1 fe251a00135c7cc283c6a8a7466f47592ee74bc5 SHA256 94bbbcf3940dbc7584ffa518610ffda7199ee0ce934612e2dd6b074ad34bbcbc +MISC ChangeLog 29059 RMD160 2608fe8bb1cc1a82c02ff55687c52263e3e3c723 SHA1 a2783b1dea66b63a51324a33230d610beed9a67f SHA256 aeceb070756b4883b7514d295e6900110332fe03c0424e9755931e1a58ff823b MISC metadata.xml 158 RMD160 493079b5fb71d66863beea1b023901c90ba81be5 SHA1 77cd509a8b3c377b9a24480b48a5d5481b7874f1 SHA256 ea882ceccfd160b16cf7e79de423bdcc12b3fa000f124491a6df36f5783894fb diff --git a/dev-java/ant-core/ant-core-1.7.1-r4.ebuild b/dev-java/ant-core/ant-core-1.7.1-r4.ebuild index 91d60f478a4a..382c152ae1a5 100644 --- a/dev-java/ant-core/ant-core-1.7.1-r4.ebuild +++ b/dev-java/ant-core/ant-core-1.7.1-r4.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 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.7.1-r4.ebuild,v 1.5 2009/07/04 14:26:21 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-core/ant-core-1.7.1-r4.ebuild,v 1.6 2010/02/28 14:35:43 caster Exp $ EAPI="2" @@ -16,7 +16,7 @@ MY_P="apache-ant-${PV}" DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files." HOMEPAGE="http://ant.apache.org/" SRC_URI="mirror://apache/ant/source/${MY_P}-src.tar.bz2 - mirror://gentoo/ant-${PV}-gentoo.tar.bz2" + mirror://gentoo/ant-${PV}-gentoo-r1.tar.bz2" LICENSE="Apache-2.0" SLOT="0" @@ -34,8 +34,8 @@ src_prepare() { # remove bundled xerces rm -v lib/*.jar || die - epatch "${FILESDIR}/1.7.1-pkg-info.patch" - epatch "${FILESDIR}/1.7.1-jdk4-javadoc.patch" + epatch "${WORKDIR}/patches/1.7.1-pkg-info.patch" + epatch "${WORKDIR}/patches/1.7.1-jdk4-javadoc.patch" # use our split-ant build.xml mv -f "${WORKDIR}/build.xml" . || die @@ -69,7 +69,7 @@ src_install() { dosym /usr/share/${PN}/lib/${jar} /usr/share/ant/lib/${jar} done - newbin "${FILESDIR}/${PV}-ant-r1" ant || die "failed to install wrapper" + dobin "${WORKDIR}/ant" || die "failed to install wrapper" dodir /usr/share/${PN}/bin for each in antRun runant.pl runant.py complete-ant-cmd.pl ; do dobin "${S}/src/script/${each}" diff --git a/dev-java/ant-core/ant-core-1.7.1-r5.ebuild b/dev-java/ant-core/ant-core-1.7.1-r5.ebuild new file mode 100644 index 000000000000..762187d427b5 --- /dev/null +++ b/dev-java/ant-core/ant-core-1.7.1-r5.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2010 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.7.1-r5.ebuild,v 1.1 2010/02/28 14:35:43 caster Exp $ + +EAPI="3" + +# don't depend on itself +JAVA_ANT_DISABLE_ANT_CORE_DEP=true +# rewriting build.xml files for the testcases has no reason atm +JAVA_PKG_BSFIX_ALL=no +JAVA_PKG_IUSE="doc source" +inherit eutils java-pkg-2 java-ant-2 prefix + +MY_P="apache-ant-${PV}" + +DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files." +HOMEPAGE="http://ant.apache.org/" +SRC_URI="mirror://apache/ant/source/${MY_P}-src.tar.bz2 + mirror://gentoo/ant-${PV}-gentoo-r2.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND=">=virtual/jdk-1.4 + !dev-java/ant-tasks + !dev-java/ant-optional" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # remove bundled xerces + rm -v lib/*.jar || die + + EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches/" + eprefixify "${WORKDIR}/ant" + + # use our split-ant build.xml + mv -f "${WORKDIR}/build.xml" . || die + + # bug #196080 + java-ant_bsfix_one build.xml + java-pkg-2_src_prepare +} + +src_compile() { + export ANT_HOME="" + + local bsyscp + + # this ensures that when building ant with bootstrapped ant, + # only the source is used for resolving references, and not + # the classes in bootstrapped ant + # but jikes in kaffe has issues with this... + if ! java-pkg_current-vm-matches kaffe; then + bsyscp="-Dbuild.sysclasspath=ignore" + fi + + CLASSPATH="$(java-config -t)" ./build.sh ${bsyscp} jars-core internal_dist \ + $(use_doc javadocs) || die "build failed" +} + +src_install() { + dodir /usr/share/ant/lib + for jar in ant.jar ant-bootstrap.jar ant-launcher.jar ; do + java-pkg_dojar build/lib/${jar} + dosym /usr/share/${PN}/lib/${jar} /usr/share/ant/lib/${jar} + done + + dobin "${WORKDIR}/ant" || die "failed to install wrapper" + 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 + dosym /usr/share/${PN}/bin /usr/share/ant/bin + + insinto /usr/share/${PN} + doins -r dist/etc + dosym /usr/share/${PN}/etc /usr/share/ant/etc + + echo "ANT_HOME=\"${EPREFIX}/usr/share/ant\"" > "${T}/20ant" + doenvd "${T}/20ant" || die "failed to install env.d file" + + dodoc README WHATSNEW KEYS + + if use doc; then + dohtml welcome.html + dohtml -r docs/* + java-pkg_dojavadoc --symlink manual/api build/javadocs + fi + + use source && java-pkg_dosrc src/main/* +} + +pkg_postinst() { + elog "The way of packaging ant in Gentoo has changed significantly since" + elog "the 1.7.0 version, For more information, please see:" + elog "http://www.gentoo.org/proj/en/java/ant-guide.xml" + elog + elog "Since 1.7.1, the ant-tasks meta-ebuild has been removed and its USE" + elog "flags have been moved to dev-java/ant." +} diff --git a/dev-java/ant-core/ant-core-1.8.0-r1.ebuild b/dev-java/ant-core/ant-core-1.8.0-r1.ebuild new file mode 100644 index 000000000000..f4cf489d9a3b --- /dev/null +++ b/dev-java/ant-core/ant-core-1.8.0-r1.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2010 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.8.0-r1.ebuild,v 1.1 2010/02/28 14:35:43 caster Exp $ + +EAPI="3" + +# don't depend on itself +JAVA_ANT_DISABLE_ANT_CORE_DEP=true +# rewriting build.xml files for the testcases has no reason atm +JAVA_PKG_BSFIX_ALL=no +JAVA_PKG_IUSE="doc source" +inherit eutils java-pkg-2 java-ant-2 prefix + +MY_P="apache-ant-${PV}" + +DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files." +HOMEPAGE="http://ant.apache.org/" +SRC_URI="mirror://apache/ant/source/${MY_P}-src.tar.bz2 + mirror://gentoo/ant-${PV}-gentoo-r1.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +DEPEND=">=virtual/jdk-1.4 + !dev-java/ant-tasks + !dev-java/ant-optional" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # remove bundled xerces + rm -v lib/*.jar || die + + EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches/" + eprefixify "${WORKDIR}/ant" + + # use our split-ant build.xml + mv -f "${WORKDIR}/build.xml" . || die + + # bug #196080 + java-ant_bsfix_one build.xml + java-pkg-2_src_prepare +} + +src_compile() { + export ANT_HOME="" + + local bsyscp + + # this ensures that when building ant with bootstrapped ant, + # only the source is used for resolving references, and not + # the classes in bootstrapped ant + # but jikes in kaffe has issues with this... + if ! java-pkg_current-vm-matches kaffe; then + bsyscp="-Dbuild.sysclasspath=ignore" + fi + + CLASSPATH="$(java-config -t)" ./build.sh ${bsyscp} jars-core internal_dist \ + $(use_doc javadocs) || die "build failed" +} + +src_install() { + dodir /usr/share/ant/lib + for jar in ant.jar ant-bootstrap.jar ant-launcher.jar ; do + java-pkg_dojar build/lib/${jar} + dosym /usr/share/${PN}/lib/${jar} /usr/share/ant/lib/${jar} + done + + dobin "${WORKDIR}/ant" || die "failed to install wrapper" + dodir /usr/share/${PN}/bin + for each in antRun antRun.pl runant.pl runant.py complete-ant-cmd.pl ; do + dobin "${S}/src/script/${each}" + dosym /usr/bin/${each} /usr/share/${PN}/bin/${each} + done + dosym /usr/share/${PN}/bin /usr/share/ant/bin + + insinto /usr/share/${PN} + doins -r dist/etc + dosym /usr/share/${PN}/etc /usr/share/ant/etc + + echo "ANT_HOME=\"${EPREFIX}/usr/share/ant\"" > "${T}/20ant" + doenvd "${T}/20ant" || die "failed to install env.d file" + + dodoc NOTICE README WHATSNEW KEYS || die + + if use doc; then + dohtml -r docs/* + java-pkg_dojavadoc --symlink manual/api build/javadocs + fi + + use source && java-pkg_dosrc src/main/* +} + +pkg_postinst() { + elog "The way of packaging ant in Gentoo has changed significantly since" + elog "the 1.7.0 version, For more information, please see:" + elog "http://www.gentoo.org/proj/en/java/ant-guide.xml" + elog + elog "Since 1.7.1, the ant-tasks meta-ebuild has been removed and its USE" + elog "flags have been moved to dev-java/ant." +} diff --git a/dev-java/ant-core/files/1.7.1-ant-r1 b/dev-java/ant-core/files/1.7.1-ant-r1 deleted file mode 100644 index 1b20e5fa96bb..000000000000 --- a/dev-java/ant-core/files/1.7.1-ant-r1 +++ /dev/null @@ -1,204 +0,0 @@ -#! /bin/bash - -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You 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.7.1-ant-r1,v 1.1 2008/11/09 00:19:14 caster 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 (ONLY if ANT_HOME has NOT been set) - if [ -z "$ANT_HOME" -o "$ANT_HOME" = "/usr/share/ant" ]; then - if [ -f "/etc/ant.conf" ] ; then - . /etc/ant.conf - fi - 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 - -export WANT_JAVA_CONFIG=2 - -# Always get JAVA_HOME from java-config, unless ANT_RESPECT_JAVA_HOME is set -# Use GENTOO_VM to change which VM is used instead. -if [[ -z "${ANT_RESPECT_JAVA_HOME}" || -z "${JAVA_HOME}" ]]; then - export JAVA_HOME="$(java-config -g JAVA_HOME)" -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" - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - JAVACMD="$JAVA_HOME/bin/java" - else - JAVACMD=`which java 2> /dev/null ` - if [ -z "$JAVACMD" ] ; then - JAVACMD=java - fi - fi -fi - -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 - -# if ANT_TASKS is not set, default to "all" -ANT_TASKS="${ANT_TASKS:-all}" - -# if ANT_TASKS is set to "all", get the tasks list from /usr/share/ant/tasks/ -if [[ "${ANT_TASKS}" == "all" ]]; then - ANT_TASKS="" - # but only if it exists - if [[ -d /usr/share/ant/tasks ]]; then - ANT_TASKS="${ANT_TASKS} "/usr/share/ant/tasks/* - fi - if [[ -d /usr/share/ant/tasks-1.7.1 ]]; then - ANT_TASKS="${ANT_TASKS} "/usr/share/ant/tasks-1.7.1/* - fi -# if set to "none", make ANT_TASKS empty list -elif [[ "${ANT_TASKS}" == "none" ]]; then - ANT_TASKS="" -fi -# otherwise ANT_TASKS defines explicit task list - -# construct the tasks list separated with commas to pass to java-config -TASKS_LIST="" -for task in $ANT_TASKS; do - TASKS_LIST="${TASKS_LIST},$(basename $task)" -done -TASKS_LIST=${TASKS_LIST#,} - -# get the classpath for optional tasks and their dependency .jar files -if [[ -n "${TASKS_LIST}" ]] ; then - ANT_TASKS_CLASSPATH="-lib \"$(java-config -dp ${TASKS_LIST})\"" - ANT_TASKS_LIBPATH="-Djava.library.path=\"$(java-config -di ${TASKS_LIST})\"" -else - ANT_TASKS_CLASSPATH="" - ANT_TASKS_LIBPATH="" -fi - -# determine where to get tools.jar from -if [[ -n "${ANT_RESPECT_JAVA_HOME}" ]]; then - TOOLS_JAR="${JAVA_HOME}/lib/tools.jar" -else - TOOLS_JAR="$(java-config --tools)" -fi - -if [[ -n "${TOOLS_JAR}" ]] ; then - LOCALCLASSPATH="$LOCALCLASSPATH:${TOOLS_JAR}" -else - echo "Warning: Unable to determine tools.jar location." - echo " If build fails because sun.* classes could not be found," - echo " Make sure you are using a JDK, not JRE as your user/system VM." - echo " and that you have java-config version 2.0.30 or above installed." -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 - -ant_exec_command="exec \"${JAVACMD}\" ${ANT_OPTS} -classpath \"${LOCALCLASSPATH}\" \ - -Dant.home=\"${ANT_HOME}\" -Dant.library.dir=\"${ANT_LIB}\" ${ant_sys_opts} \ - ${ANT_TASKS_LIBPATH} org.apache.tools.ant.launch.Launcher \ - ${ANT_TASKS_CLASSPATH} ${ANT_ARGS} -cp \"${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/1.7.1-jdk4-javadoc.patch b/dev-java/ant-core/files/1.7.1-jdk4-javadoc.patch deleted file mode 100644 index 27dfebd7b660..000000000000 --- a/dev-java/ant-core/files/1.7.1-jdk4-javadoc.patch +++ /dev/null @@ -1,60 +0,0 @@ -The javadoc from Sun JDK 1.4.x fails for @value lines after @since -with a NullPointerException in ValueTaglet.toString. -This patch switches the lines in question. -It also ensures that javadoc errors won't go unnoticed but cause the build -to fail instead. - -2009-02-18 Martin von Gagern - -References: https://bugs.gentoo.org/217102 - -Index: apache-ant-1.7.1/src/main/org/apache/tools/ant/MagicNames.java -=================================================================== ---- apache-ant-1.7.1.orig/src/main/org/apache/tools/ant/MagicNames.java -+++ apache-ant-1.7.1/src/main/org/apache/tools/ant/MagicNames.java -@@ -143,22 +143,22 @@ public final class MagicNames { - /** - * property that provides the default value for javac's and - * javadoc's source attribute. -- * @since Ant 1.7 - * Value: {@value} -+ * @since Ant 1.7 - */ - public static final String BUILD_JAVAC_SOURCE = "ant.build.javac.source"; - - /** - * property that provides the default value for javac's target attribute. -- * @since Ant 1.7 - * Value: {@value} -+ * @since Ant 1.7 - */ - public static final String BUILD_JAVAC_TARGET = "ant.build.javac.target"; - - /** - * Name of the magic property that controls classloader reuse. -- * @since Ant 1.4. - * Value: {@value} -+ * @since Ant 1.4. - */ - public static final String REFID_CLASSPATH_REUSE_LOADER = "ant.reuse.loader"; - -Index: apache-ant-1.7.1/build.xml -=================================================================== ---- apache-ant-1.7.1.orig/build.xml -+++ apache-ant-1.7.1/build.xml -@@ -1483,6 +1483,7 @@ - locale="en" - windowtitle="${Name} API" - doctitle="${Name}" -+ failonerror="true" - verbose="${javadoc.verbose}"> - - <packageset dir="${java.dir}"/> -@@ -1510,6 +1511,7 @@ - <mkdir dir="${build.tests.javadocs}"/> - <javadoc useexternalfile="yes" - destdir="${build.tests.javadocs}" -+ failonerror="true" - author="true" - version="true" - locale="en" diff --git a/dev-java/ant-core/files/1.7.1-pkg-info.patch b/dev-java/ant-core/files/1.7.1-pkg-info.patch deleted file mode 100644 index da4f7c73b684..000000000000 --- a/dev-java/ant-core/files/1.7.1-pkg-info.patch +++ /dev/null @@ -1,227 +0,0 @@ -Backported changeset ensuring that package-info.class is -created/touched when package-info.java is compiled. - -Originally derived from these changesets: -r743910 #43114: ensuring that package-info.class is created/touched - when package-info.java is compiled. -r744132 JDK 1.4 - unfortunately - -svn diff -r 738761:744132 http://svn.apache.org/repos/asf/ant/core/\ -trunk/src/main/org/apache/tools/ant/taskdefs/Javac.java - -2009-03-15 John W. Eckhart -2009-03-17 Martin von Gagern - -References: -https://bugs.gentoo.org/262511 -https://jira.jboss.org/jira/browse/JBSEAM-3386 -https://issues.apache.org/bugzilla/show_bug.cgi?id=43114 - ---- apache-ant-1.7.1.orig/src/main/org/apache/tools/ant/taskdefs/Javac.java -+++ apache-ant-1.7.1/src/main/org/apache/tools/ant/taskdefs/Javac.java -@@ -19,10 +19,12 @@ - package org.apache.tools.ant.taskdefs; - - import java.io.File; -- --import java.util.ArrayList; -+import java.io.FileOutputStream; -+import java.io.IOException; -+import java.io.OutputStream; -+import java.util.HashMap; - import java.util.Iterator; --import java.util.List; -+import java.util.Map; - - import org.apache.tools.ant.BuildException; - import org.apache.tools.ant.DirectoryScanner; -@@ -86,9 +88,6 @@ - private static final String CLASSIC = "classic"; - private static final String EXTJAVAC = "extJavac"; - -- private static final String PACKAGE_INFO_JAVA = "package-info.java"; -- private static final String PACKAGE_INFO_CLASS = "package-info.class"; -- - private Path src; - private File destDir; - private Path compileClasspath; -@@ -115,6 +114,7 @@ - protected boolean failOnError = true; - protected boolean listFiles = false; - protected File[] compileList = new File[0]; -+ private Map/*<String,Long>*/ packageInfos = new HashMap(); - // CheckStyle:VisibilityModifier ON - - private String source; -@@ -124,7 +124,6 @@ - private String errorProperty; - private boolean taskSuccess = true; // assume the best - private boolean includeDestClasses = true; -- private List updateDirList = new ArrayList(); - - /** - * Javac task for compilation of Java files. -@@ -892,6 +891,7 @@ - */ - protected void resetFileLists() { - compileList = new File[0]; -+ packageInfos = new HashMap(); - } - - /** -@@ -909,8 +909,8 @@ - SourceFileScanner sfs = new SourceFileScanner(this); - File[] newFiles = sfs.restrictAsFiles(files, srcDir, destDir, m); - -- newFiles = removePackageInfoFiles(newFiles, srcDir, destDir); - if (newFiles.length > 0) { -+ lookForPackageInfos(srcDir, newFiles); - File[] newCompileList - = new File[compileList.length + newFiles.length]; - System.arraycopy(compileList, 0, newCompileList, 0, -@@ -1063,10 +1063,12 @@ - - // finally, lets execute the compiler!! - if (adapter.execute()) { -- // Success - check -- for (Iterator i = updateDirList.iterator(); i.hasNext();) { -- File file = (File) i.next(); -- file.setLastModified(System.currentTimeMillis()); -+ // Success -+ try { -+ generateMissingPackageInfoClasses(); -+ } catch (IOException x) { -+ // Should this be made a nonfatal warning? -+ throw new BuildException(x, getLocation()); - } - } else { - // Fail path -@@ -1100,72 +1102,69 @@ - } - } - -- // ---------------------------------------------------------------- -- // Code to remove package-info.java files from compilation -- // Since Ant 1.7.1. -- // -- // package-info.java are files that contain package level -- // annotations. They may or may not have corresponding .class -- // files. -- // -- // The following code uses the algorithm: -- // * on entry we have the files that need to be compiled -- // * if the filename is not package-info.java compile it -- // * if a corresponding .class file exists compile it -- // * if the corresponding class directory does not exist compile it -- // * if the corresponding directory lastmodifed time is -- // older than the java file, compile the java file and -- // touch the corresponding class directory (on successful -- // compilation). -- // -- // ---------------------------------------------------------------- -- private File[] removePackageInfoFiles( -- File[] newFiles, File srcDir, File destDir) { -- if (!hasPackageInfo(newFiles)) { -- return newFiles; -- } -- List ret = new ArrayList(); -- for (int i = 0; i < newFiles.length; ++i) { -- if (needsCompilePackageFile(newFiles[i], srcDir, destDir)) { -- ret.add(newFiles[i]); -+ private void lookForPackageInfos(File srcDir, File[] newFiles) { -+ for (int i = 0; i < newFiles.length; i++) { -+ File f = newFiles[i]; -+ if (!f.getName().equals("package-info.java")) { -+ continue; - } -- } -- return (File[]) ret.toArray(new File[0]); -- } -- -- private boolean hasPackageInfo(File[] newFiles) { -- for (int i = 0; i < newFiles.length; ++i) { -- if (newFiles[i].getName().equals(PACKAGE_INFO_JAVA)) { -- return true; -+ String path = relativePath(srcDir, f). -+ replace(File.separatorChar, '/'); -+ String suffix = "/package-info.java"; -+ if (!path.endsWith(suffix)) { -+ log("anomalous package-info.java path: " + path, Project.MSG_WARN); -+ continue; - } -+ String pkg = path.substring(0, path.length() - suffix.length()); -+ packageInfos.put(pkg, new Long(f.lastModified())); - } -- return false; - } - -- private boolean needsCompilePackageFile( -- File file, File srcDir, File destDir) { -- if (!file.getName().equals(PACKAGE_INFO_JAVA)) { -- return true; -- } -- // return true if destDir contains the file -- String rel = relativePath(srcDir, file); -- File destFile = new File(destDir, rel); -- File parent = destFile.getParentFile(); -- destFile = new File(parent, PACKAGE_INFO_CLASS); -- File sourceFile = new File(srcDir, rel); -- if (destFile.exists()) { -- return true; -- } -- // Dest file does not exist -- // Compile Source file if sourceFile is newer that destDir -- // TODO - use fs -- if (sourceFile.lastModified() -- > destFile.getParentFile().lastModified()) { -- updateDirList.add(destFile.getParentFile()); -- return true; -+ /** -+ * Ensure that every {@code package-info.java} produced a {@code package-info.class}. -+ * Otherwise this task's up-to-date tracking mechanisms do not work. -+ * @see <a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=43114">Bug #43114</a> -+ */ -+ private void generateMissingPackageInfoClasses() throws IOException { -+ for (Iterator i = packageInfos.entrySet().iterator(); i.hasNext(); ) { -+ Map.Entry entry = (Map.Entry) i.next(); -+ String pkg = (String) entry.getKey(); -+ Long sourceLastMod = (Long) entry.getValue(); -+ File pkgBinDir = new File(destDir, pkg.replace('/', File.separatorChar)); -+ pkgBinDir.mkdirs(); -+ File pkgInfoClass = new File(pkgBinDir, "package-info.class"); -+ if (pkgInfoClass.isFile() && pkgInfoClass.lastModified() >= sourceLastMod.longValue()) { -+ continue; -+ } -+ log("Creating empty " + pkgInfoClass); -+ OutputStream os = new FileOutputStream(pkgInfoClass); -+ try { -+ os.write(PACKAGE_INFO_CLASS_HEADER); -+ byte[] name = pkg.getBytes("UTF-8"); -+ int length = name.length + /* "/package-info" */ 13; -+ os.write((byte) length / 256); -+ os.write((byte) length % 256); -+ os.write(name); -+ os.write(PACKAGE_INFO_CLASS_FOOTER); -+ } finally { -+ os.close(); -+ } - } -- return false; - } -+ private static final byte[] PACKAGE_INFO_CLASS_HEADER = { -+ (byte) 0xca, (byte) 0xfe, (byte) 0xba, (byte) 0xbe, 0x00, 0x00, 0x00, -+ 0x31, 0x00, 0x07, 0x07, 0x00, 0x05, 0x07, 0x00, 0x06, 0x01, 0x00, 0x0a, -+ 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x01, 0x00, -+ 0x11, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2d, 0x69, 0x6e, 0x66, -+ 0x6f, 0x2e, 0x6a, 0x61, 0x76, 0x61, 0x01 -+ }; -+ private static final byte[] PACKAGE_INFO_CLASS_FOOTER = { -+ 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2d, 0x69, 0x6e, 0x66, -+ 0x6f, 0x01, 0x00, 0x10, 0x6a, 0x61, 0x76, 0x61, 0x2f, 0x6c, 0x61, 0x6e, -+ 0x67, 0x2f, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x02, 0x00, 0x00, 0x01, -+ 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x03, -+ 0x00, 0x00, 0x00, 0x02, 0x00, 0x04 -+ }; - - private String relativePath(File src, File file) { - return file.getAbsolutePath().substring( |