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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat May 14 16:09:55 2005 UTC (9 years, 4 months ago) by luckyduck
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
updated commons-beanutils dependency to reflect new slotting. see #71952
(Portage version: 2.0.51.21)

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.2-r2.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 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 sparc ppc64"
16 IUSE="doc"
17
18 DEPEND="virtual/libc
19 >=virtual/jdk-1.4
20 >=dev-java/java-config-1.2"
21 RDEPEND=">=virtual/jdk-1.4
22 app-shells/bash
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.gz
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 dodoc LICENSE LICENSE.* 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