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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Apr 2 23:32:24 2005 UTC (14 years, 3 months ago) by luckyduck
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
updated java-config call in the wrapper script to reflect oro->jakarta-oro move.
(Portage version: 2.0.51.19)

1 luckyduck 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 luckyduck 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-java/ant-core/ant-core-1.6.2-r1.ebuild,v 1.2 2005/03/27 21:46:17 luckyduck Exp $
4 luckyduck 1.1
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 luckyduck 1.2 cp ${FILESDIR}/${PV}-ant ${S}/src/ant
59 luckyduck 1.1
60     exeinto /usr/bin
61     doexe src/ant
62    
63     dodir /usr/share/${PN}/bin
64     for each in antRun runant.pl runant.py complete-ant-cmd.pl ; do
65     dobin ${S}/src/script/${each}
66     dosym /usr/bin/${each} /usr/share/${PN}/bin/${each}
67     done
68    
69     dodir /etc/env.d
70     echo "ANT_HOME=\"/usr/share/${PN}\"" > ${D}/etc/env.d/20ant
71    
72     java-pkg_dojar build/lib/ant.jar
73     java-pkg_dojar build/lib/ant-launcher.jar
74    
75     dodoc LICENSE LICENSE.* 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