Magellan Linux

Annotation of /trunk/extras/eclipse-ecj/eclipse-ecj-4.6.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29455 - (hide annotations) (download)
Fri Jun 16 08:46:20 2017 UTC (7 years ago) by niro
File size: 1068 byte(s)
auto added: ver bump to 4.6.1-r1
1 niro 29451 # $Id$
2    
3     PNAME="eclipse-ecj"
4     PVER="4.6.1"
5     PBUILD="r1"
6    
7     PCAT="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.9
16     >= virtual/java-jdk"
17    
18     PSUBVER="201609071200"
19    
20 niro 29454 SRCFILE="ecjsrc-${PVER}.jar"
21 niro 29451 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22    
23     sminclude java
24    
25     SRC_URI=(
26 niro 29453 http://download.eclipse.org/eclipse/downloads/drops4/R-${PVER}-${PSUBVER}/${SRCFILE}
27 niro 29451 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 niro 29455 # use en_US.UTF-8 locale or compiliation fails
42     # make sure locales are generated with locale-gen before
43     export LANG=en_US.UTF8
44 niro 29451 ant build || die
45     }
46    
47     src_install()
48     {
49     cd ${SRCDIR}
50     minstalljar ecj.jar || die
51    
52     # create a ecj wrapper
53     cat > ${SRCDIR}/ecj << EOF
54     #!/bin/sh
55    
56     CLASSPATH="${JAVA_CLASSPATH_DIR}/ecj.jar:\${CLASSPATH=.}" \\
57     java org.eclipse.jdt.internal.compiler.batch.Main "\$@"
58     EOF
59     minstallexec ecj || die
60    
61     minstalldocs about.html || die
62     }