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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Mon Mar 3 08:18:52 2008 UTC (6 years, 6 months ago) by caster
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Remove ant 1.6.5. Java packages already depend on 1.7.0.
(Portage version: 2.1.4.4)

1 # Copyright 1999-2007 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-r14.ebuild,v 1.11 2007/01/21 22:19:13 caster Exp $
4
5 JAVA_ANT_DISABLE_ANT_CORE_DEP=true
6 inherit java-pkg-2 eutils toolchain-funcs java-ant-2
7
8 MY_PN=${PN/-core}
9
10 DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files."
11 HOMEPAGE="http://ant.apache.org/"
12 SRC_URI="mirror://apache/ant/source/apache-${MY_PN}-${PV}-src.tar.bz2"
13
14 LICENSE="Apache-2.0"
15 SLOT="0"
16 KEYWORDS="amd64 ia64 ppc ppc64 x86 ~x86-fbsd"
17 IUSE="doc source"
18
19 DEPEND="source? ( app-arch/zip )
20 >=virtual/jdk-1.4
21 !<dev-java/ant-tasks-${PV}
22 !dev-java/ant-optional"
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 # Patch build.sh to die with non-zero exit code in case of errors.
33 # This patch may be useful for all ant versions.
34 epatch "${FILESDIR}/build.sh-exit-fix.patch"
35 }
36
37 src_compile() {
38 if [[ $(tc-arch) == "ppc" ]] ; then
39 # We're compiling _ON_ PPC
40 export THREADS_FLAG="green"
41 fi
42
43 ./build.sh -Ddist.dir="${D}/usr/share/${PN}" || die "failed to build"
44
45 if use doc; then
46 ./build.sh dist_javadocs || die "failed to build docs"
47 fi
48 }
49
50 src_install() {
51 newbin "${FILESDIR}/${PV}-ant" ant || die "failed to install wrapper"
52
53 dodir "/usr/share/${PN}/bin"
54 for each in antRun runant.pl runant.py complete-ant-cmd.pl ; do
55 dobin "${S}/src/script/${each}"
56 dosym "/usr/bin/${each}" "/usr/share/${PN}/bin/${each}"
57 done
58
59 dodir /etc/env.d
60 echo "ANT_HOME=\"/usr/share/${PN}\"" > "${D}/etc/env.d/20ant"
61
62 java-pkg_dojar build/lib/ant.jar
63 java-pkg_dojar build/lib/ant-launcher.jar
64
65 use source && java-pkg_dosrc src/main/*
66
67 dodoc README WHATSNEW KEYS
68
69 if use doc; then
70 dohtml welcome.html
71 java-pkg_dohtml -r docs/*
72 java-pkg_dohtml -r dist/docs/*
73 fi
74 }

  ViewVC Help
Powered by ViewVC 1.1.20