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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Sep 13 09:28:42 2006 UTC (7 years, 11 months ago) by caster
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Added xml-commons-external-1.3 into CLASSPATH in ant's startup script to fix bug #82561. Also fixes javadoc path wrt bug #112106.
(Portage version: 2.1.1)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 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-r13.ebuild,v 1.5 2006/09/02 22:56:09 flameeyes Exp $
4
5 inherit java-pkg-2 eutils toolchain-funcs java-ant-2
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="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
16 IUSE="doc source"
17
18 DEPEND="${RDEPEND}
19 source? ( app-arch/zip )
20 >=virtual/jdk-1.4"
21 RDEPEND=">=virtual/jdk-1.4
22 >=dev-java/java-config-1.2"
23
24 S="${WORKDIR}/apache-ant-${PV}"
25
26 src_unpack() {
27 unpack ${A}
28 cd ${S}
29
30 # Patch build.sh to die with non-zero exit code in case of errors.
31 # This patch may be useful for all ant versions.
32 epatch ${FILESDIR}/build.sh-exit-fix.patch
33 }
34
35 src_compile() {
36 if [[ $(tc-arch) == "ppc" ]] ; then
37 # We're compiling _ON_ PPC
38 export THREADS_FLAG="green"
39 fi
40
41 ./build.sh -Ddist.dir=${D}/usr/share/${PN} || die "failed to build"
42
43 if use doc; then
44 ./build.sh dist_javadocs || die "failed to build docs"
45 fi
46 }
47
48 src_install() {
49 newbin ${FILESDIR}/${PV}-ant ant || die "failed to install wrapper"
50
51 dodir /usr/share/${PN}/bin
52 for each in antRun runant.pl runant.py complete-ant-cmd.pl ; do
53 dobin ${S}/src/script/${each}
54 dosym /usr/bin/${each} /usr/share/${PN}/bin/${each}
55 done
56
57 dodir /etc/env.d
58 echo "ANT_HOME=\"/usr/share/${PN}\"" > ${D}/etc/env.d/20ant
59
60 java-pkg_dojar build/lib/ant.jar
61 java-pkg_dojar build/lib/ant-launcher.jar
62
63 use source && java-pkg_dosrc src/main/*
64
65 dodoc README WHATSNEW KEYS
66 use doc && dohtml welcome.html
67 use doc && java-pkg_dohtml -r docs/*
68 use doc && java-pkg_dohtml -r dist/docs/manual/api/*
69 }

  ViewVC Help
Powered by ViewVC 1.1.20