/[gentoo-x86]/dev-java/ant-core/ant-core-1.6.3_beta1.ebuild
Gentoo

Contents of /dev-java/ant-core/ant-core-1.6.3_beta1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Apr 28 20:41:25 2005 UTC (9 years, 2 months ago) by axxo
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
version bump
(Portage version: 2.0.51.20-r5)

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

  ViewVC Help
Powered by ViewVC 1.1.20