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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Sep 11 11:26:42 2005 UTC (9 years, 1 month ago) by axxo
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Fix wrapper script (again)
(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-r1.ebuild,v 1.4 2005/09/10 15:00:01 axxo Exp $
4
5 inherit java-pkg eutils toolchain-funcs
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="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
18 IUSE="doc source"
19
20 DEPEND="virtual/libc
21 !<dev-java/ant-1.5.4-r2
22 >=virtual/jdk-1.4
23 !<dev-java/ant-tasks-${PV}
24 source? ( app-arch/zip )"
25 RDEPEND=">=virtual/jdk-1.4
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 [[ $(tc-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 use source && java-pkg_dosrc src/main/*
72
73 dodoc README WHATSNEW KEYS
74 use doc && dohtml welcome.html
75 use doc && java-pkg_dohtml -r docs/*
76 use doc && java-pkg_dohtml -r dist/docs/manual/api/*
77 }

  ViewVC Help
Powered by ViewVC 1.1.20