Annotation of /trunk/extras/eclipse-ecj/eclipse-ecj-4.6.1-r1.smage2
Parent Directory | Revision Log
Revision 29458 -
(hide annotations)
(download)
Fri Jun 16 09:16:16 2017 UTC (7 years, 3 months ago) by niro
File size: 1414 byte(s)
Fri Jun 16 09:16:16 2017 UTC (7 years, 3 months ago) by niro
File size: 1414 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 | niro | 29456 | sminclude java mtools |
24 | niro | 29451 | |
25 | SRC_URI=( | ||
26 | niro | 29453 | http://download.eclipse.org/eclipse/downloads/drops4/R-${PVER}-${PSUBVER}/${SRCFILE} |
27 | niro | 29451 | mirror://${PNAME}/${SRCFILE} |
28 | niro | 29457 | mirror://${PNAME}/${PNAME}-${PVER}-ecj-include-props.patch |
29 | mirror://${PNAME}/${PNAME}-${PVER}-buildxml-fix-manifest.patch | ||
30 | niro | 29451 | ) |
31 | |||
32 | # FIXME | ||
33 | UP2DATE="echo ${PVER}" | ||
34 | |||
35 | src_prepare() | ||
36 | { | ||
37 | munpack ${SRCFILE} ${SRCDIR} || die | ||
38 | niro | 29457 | cd ${SRCDIR} |
39 | |||
40 | mpatch ${PNAME}-${PVER}-ecj-include-props.patch || die | ||
41 | mpatch ${PNAME}-${PVER}-buildxml-fix-manifest.patch || die | ||
42 | |||
43 | niro | 29451 | } |
44 | |||
45 | src_compile() | ||
46 | { | ||
47 | cd ${SRCDIR} | ||
48 | niro | 29457 | |
49 | niro | 29455 | # use en_US.UTF-8 locale or compiliation fails |
50 | # make sure locales are generated with locale-gen before | ||
51 | niro | 29458 | # smage sets LC_ALL=C so we have to use LC_ALL here |
52 | export LC_ALL=en_US.UTF-8 | ||
53 | niro | 29451 | ant build || die |
54 | } | ||
55 | |||
56 | src_install() | ||
57 | { | ||
58 | cd ${SRCDIR} | ||
59 | minstalljar ecj.jar || die | ||
60 | |||
61 | # create a ecj wrapper | ||
62 | cat > ${SRCDIR}/ecj << EOF | ||
63 | #!/bin/sh | ||
64 | |||
65 | CLASSPATH="${JAVA_CLASSPATH_DIR}/ecj.jar:\${CLASSPATH=.}" \\ | ||
66 | java org.eclipse.jdt.internal.compiler.batch.Main "\$@" | ||
67 | EOF | ||
68 | minstallexec ecj || die | ||
69 | niro | 29456 | minstallman ecj.1 || die |
70 | niro | 29451 | |
71 | minstalldocs about.html || die | ||
72 | } |