Magellan Linux

Contents of /branches/magellan-next/extras/eclipse-ecj/eclipse-ecj-3.7.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9635 - (show annotations) (download)
Tue Jan 3 20:57:37 2012 UTC (12 years, 4 months ago) by niro
File size: 1004 byte(s)
-fixed dependencies
1 # $Id$
2
3 PNAME="eclipse-ecj"
4 PVER="3.7.1"
5 PBUILD="r1"
6
7 PCATEGORIE="dev-java"
8
9 DESCRIPTION="Eclipse java bytecode compiler."
10 HOMEPAGE="http://www.eclipse.org/"
11
12 DEPEND=">= virtual/java"
13
14 SDEPEND=">= app-arch/unzip-5
15 >= dev-java/apache-ant-1.8.2
16 >= virtual/java-jdk"
17
18 PSUBVER="201109091335"
19
20 SRCFILE="ecjsrc-${PVER}.jar"
21 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22
23 sminclude mtools
24
25 SRC_URI=(
26 http://mirror.netcologne.de/eclipse/eclipse/downloads/drops/R-${PVER}-${PSUBVER}/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 )
29
30 # FIXME
31 UP2DATE="echo ${PVER}"
32
33 src_prepare()
34 {
35 munpack ${SRCFILE} ${SRCDIR} || die
36 }
37
38 src_compile()
39 {
40 cd ${SRCDIR}
41 ant build || die
42 }
43
44 src_install()
45 {
46 cd ${SRCDIR}
47
48 # needed directories
49 minstalldir /etc/env.d || die
50 minstalldir /usr/share/${PNAME}-${PVER}/lib || die
51
52 minstallfile ecj.jar /usr/share/${PNAME}-${PVER}/lib || die
53
54 # classpath env
55 MCONFIG="/etc/env.d/22java-app-${PNAME}"
56 mclearconfig || die
57 maddconfig "CLASSPATH=/usr/share/${PNAME}-${PVER}/lib/ecj.jar" || die
58 }