/[gentoo-x86]/eclass/apache-ant.eclass
Gentoo

Contents of /eclass/apache-ant.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Dec 30 19:19:53 2003 UTC (10 years, 10 months ago) by strider
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Removed apache-ant.eclass and fixed a little bug on jakarta-commons.eclass

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/eclass/apache-ant.eclass,v 1.1 2003/10/18 22:07:32 strider Exp $
4
5 inherit base
6 ECLASS=apache-ant
7 INHERITED="$INHERITED $ECLASS"
8 IUSE="$IUSE"
9
10 DESCRIPTION="Based on the $ECLASS eclass"
11 HOMEPAGE="http://ant.apache.org/"
12 LICENSE="Apache-1.1 BSD IBM NPL-1.1 JPython ANTLR"
13
14 # Depends needed for building ant
15 DEPEND="$DEPEND
16 >=virtual/jdk-1.3"
17 RDEPEND="$RDEPEND >=virtual/jdk-1.3"
18 PDEPEND="$PDEPEND"
19 SLOT="$SLOT"
20
21 apache-ant_classpath() {
22 if [ `use junit` ]; then
23 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/junit.jar"
24 fi
25 if [ `use oro` ]; then
26 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/oro.jar"
27 fi
28 if [ `use regexp` ]; then
29 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/regexp.jar"
30 fi
31 if [ `use bsf` ]; then
32 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/bsf.jar"
33 fi
34 if [ `use antlr` ]; then
35 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/antlr.jar"
36 fi
37 if [ `use bcel` ]; then
38 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/bcel.jar"
39 fi
40 if [ `use bsh` ]; then
41 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/bsh.jar"
42 fi
43 if [ `use jdepend` ]; then
44 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/jdepend.jar"
45 fi
46 if [ `use js` ]; then
47 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/js.jar"
48 fi
49 if [ `use jython` ]; then
50 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/jython.jar"
51 fi
52
53 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/xercesImpl.jar"
54 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/xercesSamples.jar"
55 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/xml-apis.jar"
56 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/xmlParserAPIs.jar"
57 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/xalan.jar"
58 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/xsltcapplet.jar"
59 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/xsltcbrazil.jar"
60 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/xsltcejb.jar"
61 CLASSPATH="${CLASSPATH}:${WORKDIR}/ant-support-files/xsltcservlet.jar"
62 }
63
64 apache-ant_compile() {
65 cd ${S}
66 export JAVA_HOME=${JDK_HOME}
67 if [ `use ppc` ] ; then
68 # We're compiling on PPC then we need this.
69 export THREADS_FLAG="green"
70 fi
71 ./build.sh -Ddist.dir=${D}/usr/share/ant || die "Compiling Problem"
72 }

  ViewVC Help
Powered by ViewVC 1.1.20