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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Sep 11 11:26:42 2005 UTC (8 years, 10 months ago) by axxo
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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.2-r3.ebuild,v 1.3 2005/09/10 15:00:01 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 source"
17
18 DEPEND="virtual/libc
19 !<dev-java/ant-1.5.4-r2
20 !<dev-java/ant-tasks-${PV}
21 source? ( app-arch/zip )
22 >=virtual/jdk-1.4"
23 RDEPEND=">=virtual/jdk-1.4
24 >=dev-java/java-config-1.2"
25
26 S="${WORKDIR}/apache-ant-${PV}"
27
28 src_unpack() {
29 unpack ${A}
30 cd ${S}
31
32 # also see #77365 and
33 # http://sourceforge.net/mailarchive/forum.php?thread_id=6173225&forum_id=12628
34 epatch ${FILESDIR}/${PV}-scp.patch
35
36 # Patch build.sh to die with non-zero exit code in case of errors.
37 # This patch may be useful for all ant versions.
38 epatch ${FILESDIR}/build.sh-exit-fix.patch.gz
39 }
40
41 src_compile() {
42 addwrite "/proc/self/maps"
43 if [ `arch` == "ppc" ] ; then
44 # We're compiling _ON_ PPC
45 export THREADS_FLAG="green"
46 fi
47
48
49 local myc
50 myc="${myc} -Ddist.dir=${D}/usr/share/${PN}"
51 myc="${myc} -Djavac.target=1.4"
52 echo $CLASSPATH
53 CLASSPATH="." ./build.sh -Ddist.dir=${D}/usr/share/${PN} || die
54
55 use doc && ./build.sh dist_javadocs
56 }
57
58 src_install() {
59 newbin ${FILESDIR}/${PV}-ant ant || die "failed to install wrapper"
60
61 dodir /usr/share/${PN}/bin
62 for each in antRun runant.pl runant.py complete-ant-cmd.pl ; do
63 dobin ${S}/src/script/${each}
64 dosym /usr/bin/${each} /usr/share/${PN}/bin/${each}
65 done
66
67 dodir /etc/env.d
68 echo "ANT_HOME=\"/usr/share/${PN}\"" > ${D}/etc/env.d/20ant
69
70 java-pkg_dojar build/lib/ant.jar
71 java-pkg_dojar build/lib/ant-launcher.jar
72
73 use source && java-pkg_dosrc src/main/*
74
75 dodoc README WHATSNEW KEYS
76 use doc && dohtml welcome.html
77 use doc && java-pkg_dohtml -r docs/*
78 use doc && java-pkg_dohtml -r dist/docs/manual/api/*
79 }

  ViewVC Help
Powered by ViewVC 1.1.20