/[gentoo-x86]/dev-java/ant-core/ant-core-1.6.2-r5.ebuild
Gentoo

Contents of /dev-java/ant-core/ant-core-1.6.2-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Dec 6 21:10:06 2006 UTC (7 years, 8 months ago) by caster
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove obsolete version to force people to update and prevent bugs like #147863.
(Portage version: 2.1.2_rc2-r5)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/ant-core/ant-core-1.6.2-r5.ebuild,v 1.4 2006/10/05 15:00:45 gustavoz Exp $
4
5 inherit java-pkg eutils
6
7 MY_PN=${PN/-core}
8
9 DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files."
10 HOMEPAGE="http://ant.apache.org/"
11 SRC_URI="mirror://apache/ant/source/apache-${MY_PN}-${PV}-src.tar.bz2"
12
13 LICENSE="Apache-2.0"
14 SLOT="0"
15 KEYWORDS="x86 amd64 ppc ppc64"
16 IUSE="doc source"
17
18 DEPEND="!<dev-java/ant-1.5.4-r2
19 !<dev-java/ant-tasks-${PV}
20 source? ( app-arch/zip )
21 >=virtual/jdk-1.4"
22 RDEPEND=">=virtual/jdk-1.4
23 >=dev-java/java-config-1.2"
24
25 S="${WORKDIR}/apache-ant-${PV}"
26
27 src_unpack() {
28 unpack ${A}
29 cd ${S}
30
31 # also see #77365 and
32 # http://sourceforge.net/mailarchive/forum.php?thread_id=6173225&forum_id=12628
33 epatch ${FILESDIR}/${PV}-scp.patch
34
35 # Patch build.sh to die with non-zero exit code in case of errors.
36 # This patch may be useful for all ant versions.
37 epatch ${FILESDIR}/build.sh-exit-fix.patch
38 }
39
40 src_compile() {
41 addwrite "/proc/self/maps"
42 if [ `arch` == "ppc" ] ; then
43 # We're compiling _ON_ PPC
44 export THREADS_FLAG="green"
45 fi
46
47
48 local myc
49 myc="${myc} -Ddist.dir=${D}/usr/share/${PN}"
50 myc="${myc} -Djavac.target=1.4"
51 echo $CLASSPATH
52 CLASSPATH="." ./build.sh -Ddist.dir=${D}/usr/share/${PN} || die
53
54 use doc && ./build.sh dist_javadocs
55 }
56
57 src_install() {
58 newbin ${FILESDIR}/${PV}-ant ant || die "failed to install wrapper"
59
60 dodir /usr/share/${PN}/bin
61 for each in antRun runant.pl runant.py complete-ant-cmd.pl ; do
62 dobin ${S}/src/script/${each}
63 dosym /usr/bin/${each} /usr/share/${PN}/bin/${each}
64 done
65
66 dodir /etc/env.d
67 echo "ANT_HOME=\"/usr/share/${PN}\"" > ${D}/etc/env.d/20ant
68
69 java-pkg_dojar build/lib/ant.jar
70 java-pkg_dojar build/lib/ant-launcher.jar
71
72 use source && java-pkg_dosrc src/main/*
73
74 dodoc README WHATSNEW KEYS
75 use doc && dohtml welcome.html
76 use doc && java-pkg_dohtml -r docs/*
77 use doc && java-pkg_dohtml -r dist/docs/manual/api/*
78 }

  ViewVC Help
Powered by ViewVC 1.1.20