Contents of /trunk/extras/apache-ant/apache-ant-1.8.1-r1.smage2
Parent Directory | Revision Log
Revision 5689 -
(show annotations)
(download)
Wed Aug 4 08:47:39 2010 UTC (13 years, 9 months ago) by niro
File size: 1596 byte(s)
Wed Aug 4 08:47:39 2010 UTC (13 years, 9 months ago) by niro
File size: 1596 byte(s)
auto added: ver bump to 1.8.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="apache-ant" |
4 | PVER="1.8.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="dev-java" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Ant is a java-based build tool." |
11 | HOMEPAGE="http://ant.apache.org/" |
12 | |
13 | DEPEND=">= virtual/java-jdk |
14 | >= dev-java/junit-4.8" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}-src.tar.bz2" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | sminclude mbuild mtools |
20 | |
21 | SRC_URI=( |
22 | http://www.apache.org/dist/ant/source/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | UP2DATE="updatecmd http://www.apache.org/dist/ant/source/ | grep ${PNAME}- | sed 's:.*${PNAME}-\(.*\)-src.*:\1:;q'" |
27 | |
28 | src_compile() |
29 | { |
30 | cd ${SRCDIR} |
31 | |
32 | install -d dist || die |
33 | ./build.sh -Ddist.dir=dist/ dist || die |
34 | } |
35 | |
36 | src_install() |
37 | { |
38 | cd ${SRCDIR} |
39 | |
40 | # this one sucks, ignores libdir and installs unneccessary stuff |
41 | #ANT_HOME=${BINDIR}/usr ./build.sh install-lite || die |
42 | |
43 | # needed directories |
44 | minstalldir /etc/env.d || die |
45 | minstalldir /usr/bin || die |
46 | minstalldir /usr/share/${PNAME}-${PVER}/bin || die |
47 | minstalldir /usr/share/${PNAME}-${PVER}/lib || die |
48 | |
49 | # binaries |
50 | local i |
51 | for i in ant antRun runant.pl runant.py complete-ant-cmd.pl |
52 | do |
53 | minstallexec src/script/${i} /usr/share/${PNAME}-${PVER}/bin || die ${i} |
54 | mlink /usr/share/${PNAME}-${PVER}/bin/${i} /usr/bin/${i} || die |
55 | done |
56 | |
57 | # jars and classpathes env |
58 | :> ${BINDIR}/etc/env.d/22java-app-${PNAME} || die |
59 | local i |
60 | for i in $(find build/lib -name \*.jar) |
61 | do |
62 | minstallfile ${i} /usr/share/${PNAME}-${PVER}/lib || die ${i} |
63 | echo "CLASSPATH=/usr/share/${PNAME}-${PVER}/lib/$(basename ${i})" \ |
64 | >> ${BINDIR}/etc/env.d/22java-app-${PNAME} || die |
65 | done |
66 | |
67 | minstalldocs README LICENSE NOTICE WHATSNEW || die |
68 | } |