Magellan Linux

Annotation of /trunk/todo/apache-ant/apache-ant-1.7.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2178 - (hide annotations) (download)
Thu Jul 9 19:13:35 2009 UTC (14 years, 11 months ago) by niro
File size: 1576 byte(s)
-moved to 'todo'
1 niro 2 # $Header: /magellan-cvs/smage/apache-ant/apache-ant-1.7.0-r2.smage2,v 1.1 2008/04/24 12:55:02 niro Exp $
2    
3     PNAME="apache-ant"
4     PVER="1.7.0"
5     PBUILD="r2"
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"
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     src_compile()
27     {
28     cd ${SRCDIR}
29    
30     install -d dist || die
31     ./build.sh -Ddist.dir=dist/ dist || die
32     }
33    
34     src_install()
35     {
36     cd ${SRCDIR}
37    
38     # this one sucks, ignores libdir and installs unneccessary stuff
39     #ANT_HOME=${BINDIR}/usr ./build.sh install-lite || die
40    
41     # needed directories
42     minstalldir /etc/env.d || die
43     minstalldir /usr/bin || die
44     minstalldir /usr/share/${PNAME}-${PVER}/bin || die
45     minstalldir /usr/share/${PNAME}-${PVER}/lib || die
46    
47     # binaries
48     local i
49     for i in ant antRun runant.pl runant.py complete-ant-cmd.pl
50     do
51     minstallexec src/script/${i} /usr/share/${PNAME}-${PVER}/bin || die ${i}
52     mlink /usr/share/${PNAME}-${PVER}/bin/${i} /usr/bin/${i} || die
53     done
54    
55     # jars and classpathes env
56     :> ${BINDIR}/etc/env.d/22java-app-${PNAME} || die
57     local i
58     for i in $(find build/lib -name \*.jar)
59     do
60     minstallfile ${i} /usr/share/${PNAME}-${PVER}/lib || die ${i}
61     echo "CLASSPATH=/usr/share/${PNAME}-${PVER}/lib/$(basename ${i})" \
62     >> ${BINDIR}/etc/env.d/22java-app-${PNAME} || die
63     done
64    
65     minstalldocs README LICENSE NOTICE WHATSNEW || die
66     }

Properties

Name Value
svn:keywords Id