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

Contents of /dev-java/ant-core/ant-core-1.6.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jul 23 21:18:48 2005 UTC (9 years ago) by axxo
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
rev bump
(Portage version: 2.0.51.22-r2)

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

  ViewVC Help
Powered by ViewVC 1.1.20