1 |
sera 12/07/10 14:55:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: eclipse-ecj-3.5.2-r1.ebuild |
5 |
eclipse-ecj-3.6-r1.ebuild |
6 |
eclipse-ecj-3.7.2-r1.ebuild |
7 |
eclipse-ecj-3.4-r5.ebuild |
8 |
eclipse-ecj-3.3.0-r4.ebuild |
9 |
Log: |
10 |
Add eselect-java as possible provider of eselect ecj. |
11 |
Don't use xargs and other cleanup. |
12 |
|
13 |
(Portage version: 2.1.11.5/cvs/Linux x86_64) |
14 |
|
15 |
Revision Changes Path |
16 |
1.82 dev-java/eclipse-ecj/ChangeLog |
17 |
|
18 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/ChangeLog?rev=1.82&view=markup |
19 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/ChangeLog?rev=1.82&content-type=text/plain |
20 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/ChangeLog?r1=1.81&r2=1.82 |
21 |
|
22 |
Index: ChangeLog |
23 |
=================================================================== |
24 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/ChangeLog,v |
25 |
retrieving revision 1.81 |
26 |
retrieving revision 1.82 |
27 |
diff -u -r1.81 -r1.82 |
28 |
--- ChangeLog 12 Mar 2012 15:13:26 -0000 1.81 |
29 |
+++ ChangeLog 10 Jul 2012 14:55:24 -0000 1.82 |
30 |
@@ -1,6 +1,18 @@ |
31 |
# ChangeLog for dev-java/eclipse-ecj |
32 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
33 |
-# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/ChangeLog,v 1.81 2012/03/12 15:13:26 ranger Exp $ |
34 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/ChangeLog,v 1.82 2012/07/10 14:55:24 sera Exp $ |
35 |
+ |
36 |
+*eclipse-ecj-3.7.2-r1 (10 Jul 2012) |
37 |
+*eclipse-ecj-3.6-r1 (10 Jul 2012) |
38 |
+*eclipse-ecj-3.5.2-r1 (10 Jul 2012) |
39 |
+*eclipse-ecj-3.4-r5 (10 Jul 2012) |
40 |
+*eclipse-ecj-3.3.0-r4 (10 Jul 2012) |
41 |
+ |
42 |
+ 10 Jul 2012; Ralph Sennhauser <sera@g.o> +eclipse-ecj-3.3.0-r4.ebuild, |
43 |
+ +eclipse-ecj-3.4-r5.ebuild, +eclipse-ecj-3.5.2-r1.ebuild, |
44 |
+ +eclipse-ecj-3.6-r1.ebuild, +eclipse-ecj-3.7.2-r1.ebuild: |
45 |
+ Add eselect-java as possible provider of eselect ecj. |
46 |
+ Don't use xargs and other cleanup. |
47 |
|
48 |
12 Mar 2012; Brent Baude <ranger@g.o> eclipse-ecj-3.7.1.ebuild: |
49 |
Marking eclipse-ecj-3.7.1 ppc64 for bug 392391 |
50 |
|
51 |
|
52 |
|
53 |
1.1 dev-java/eclipse-ecj/eclipse-ecj-3.5.2-r1.ebuild |
54 |
|
55 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.5.2-r1.ebuild?rev=1.1&view=markup |
56 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.5.2-r1.ebuild?rev=1.1&content-type=text/plain |
57 |
|
58 |
Index: eclipse-ecj-3.5.2-r1.ebuild |
59 |
=================================================================== |
60 |
# Copyright 1999-2012 Gentoo Foundation |
61 |
# Distributed under the terms of the GNU General Public License v2 |
62 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.5.2-r1.ebuild,v 1.1 2012/07/10 14:55:24 sera Exp $ |
63 |
|
64 |
EAPI=4 |
65 |
|
66 |
inherit java-pkg-2 |
67 |
|
68 |
MY_PN="ecj" |
69 |
DMF="R-${PV}-201002111343" |
70 |
S="${WORKDIR}" |
71 |
|
72 |
DESCRIPTION="Eclipse Compiler for Java" |
73 |
HOMEPAGE="http://www.eclipse.org/" |
74 |
SRC_URI="http://archive.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_PN}src-${PV}.zip" |
75 |
|
76 |
IUSE="+ant userland_GNU" |
77 |
|
78 |
LICENSE="EPL-1.0" |
79 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris" |
80 |
SLOT="3.5" |
81 |
|
82 |
JAVA_PKG_WANT_SOURCE=1.4 |
83 |
JAVA_PKG_WANT_TARGET=1.4 |
84 |
|
85 |
CDEPEND="|| ( app-admin/eselect-java app-admin/eselect-ecj )" |
86 |
DEPEND="${CDEPEND} |
87 |
app-arch/unzip |
88 |
>=virtual/jdk-1.6 |
89 |
userland_GNU? ( sys-apps/findutils )" |
90 |
RDEPEND="${CDEPEND} |
91 |
>=virtual/jre-1.4" |
92 |
PDEPEND="ant? ( ~dev-java/ant-eclipse-ecj-${PV} )" |
93 |
|
94 |
src_unpack() { |
95 |
unpack ${A} |
96 |
cd "${S}" |
97 |
|
98 |
# These have their own package. |
99 |
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die |
100 |
rm -fr org/eclipse/jdt/internal/antadapter || die |
101 |
|
102 |
# upstream build.xml excludes this |
103 |
rm META-INF/eclipse.inf |
104 |
} |
105 |
|
106 |
src_compile() { |
107 |
local javac_opts javac java jar |
108 |
|
109 |
javac_opts="$(java-pkg_javac-args) -encoding ISO-8859-1" |
110 |
javac="$(java-config -c)" |
111 |
java="$(java-config -J)" |
112 |
jar="$(java-config -j)" |
113 |
|
114 |
find org/ -path org/eclipse/jdt/internal/compiler/apt -prune -o \ |
115 |
-path org/eclipse/jdt/internal/compiler/tool -prune -o -name '*.java' \ |
116 |
-print > sources-1.4 |
117 |
find org/eclipse/jdt/internal/compiler/{apt,tool} -name '*.java' > sources-1.6 |
118 |
|
119 |
mkdir -p bootstrap || die |
120 |
cp -pPR org bootstrap || die |
121 |
cd "${S}/bootstrap" || die |
122 |
|
123 |
einfo "bootstrapping ${MY_PN} with ${javac} ..." |
124 |
${javac} ${javac_opts} @../sources-1.4 || die |
125 |
${javac} -encoding ISO-8859-1 -source 1.6 -target 1.6 @../sources-1.6 || die |
126 |
|
127 |
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' \ |
128 |
| xargs ${jar} cf ${MY_PN}.jar |
129 |
|
130 |
cd "${S}" || die |
131 |
einfo "building ${MY_PN} with bootstrapped ${MY_PN} ..." |
132 |
${java} -classpath bootstrap/${MY_PN}.jar \ |
133 |
org.eclipse.jdt.internal.compiler.batch.Main \ |
134 |
${javac_opts} -nowarn @sources-1.4 || die |
135 |
${java} -classpath bootstrap/${MY_PN}.jar \ |
136 |
org.eclipse.jdt.internal.compiler.batch.Main \ |
137 |
-encoding ISO-8859-1 -source 1.6 -target 1.6 -nowarn @sources-1.6 || die |
138 |
|
139 |
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' \ |
140 |
| xargs ${jar} cf ${MY_PN}.jar |
141 |
} |
142 |
|
143 |
src_install() { |
144 |
java-pkg_dolauncher ${MY_PN}-${SLOT} --main \ |
145 |
org.eclipse.jdt.internal.compiler.batch.Main |
146 |
|
147 |
# disable the class version verify, this has intentionally |
148 |
# some classes with 1.6, but most is 1.4 |
149 |
JAVA_PKG_STRICT="" java-pkg_dojar ${MY_PN}.jar |
150 |
} |
151 |
|
152 |
pkg_postinst() { |
153 |
einfo "To select between slots of ECJ..." |
154 |
einfo " # eselect ecj" |
155 |
|
156 |
eselect ecj update ecj-${SLOT} |
157 |
} |
158 |
|
159 |
pkg_postrm() { |
160 |
eselect ecj update |
161 |
} |
162 |
|
163 |
|
164 |
|
165 |
1.1 dev-java/eclipse-ecj/eclipse-ecj-3.6-r1.ebuild |
166 |
|
167 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.6-r1.ebuild?rev=1.1&view=markup |
168 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.6-r1.ebuild?rev=1.1&content-type=text/plain |
169 |
|
170 |
Index: eclipse-ecj-3.6-r1.ebuild |
171 |
=================================================================== |
172 |
# Copyright 1999-2012 Gentoo Foundation |
173 |
# Distributed under the terms of the GNU General Public License v2 |
174 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.6-r1.ebuild,v 1.1 2012/07/10 14:55:24 sera Exp $ |
175 |
|
176 |
EAPI=4 |
177 |
|
178 |
inherit java-pkg-2 |
179 |
|
180 |
MY_PN="ecj" |
181 |
DMF="R-${PV}-201006080911" |
182 |
|
183 |
DESCRIPTION="Eclipse Compiler for Java" |
184 |
HOMEPAGE="http://www.eclipse.org/" |
185 |
SRC_URI="http://archive.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_PN}src-${PV}.zip" |
186 |
|
187 |
IUSE="+ant userland_GNU" |
188 |
|
189 |
LICENSE="EPL-1.0" |
190 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris" |
191 |
SLOT="3.6" |
192 |
|
193 |
COMMON_DEP=" |
194 |
|| ( app-admin/eselect-java >=app-admin/eselect-ecj-0.3 )" |
195 |
RDEPEND="${COMMON_DEP} |
196 |
>=virtual/jre-1.4" |
197 |
DEPEND="${COMMON_DEP} |
198 |
>=virtual/jdk-1.6 |
199 |
app-arch/unzip |
200 |
userland_GNU? ( sys-apps/findutils )" |
201 |
PDEPEND=" |
202 |
ant? ( ~dev-java/ant-eclipse-ecj-${PV} )" |
203 |
|
204 |
S="${WORKDIR}" |
205 |
|
206 |
JAVA_PKG_WANT_SOURCE=1.4 |
207 |
JAVA_PKG_WANT_TARGET=1.4 |
208 |
|
209 |
java_prepare() { |
210 |
# These have their own package. |
211 |
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die |
212 |
rm -fr org/eclipse/jdt/internal/antadapter || die |
213 |
|
214 |
# upstream build.xml excludes this |
215 |
rm META-INF/eclipse.inf || die |
216 |
} |
217 |
|
218 |
src_compile() { |
219 |
local javac_opts javac java jar |
220 |
|
221 |
javac_opts="$(java-pkg_javac-args) -encoding ISO-8859-1" |
222 |
javac="$(java-config -c)" |
223 |
java="$(java-config -J)" |
224 |
jar="$(java-config -j)" |
225 |
|
226 |
find org/ -path org/eclipse/jdt/internal/compiler/apt -prune -o \ |
227 |
-path org/eclipse/jdt/internal/compiler/tool -prune -o -name '*.java' \ |
228 |
-print > sources-1.4 |
229 |
find org/eclipse/jdt/internal/compiler/{apt,tool} -name '*.java' > sources-1.6 |
230 |
|
231 |
mkdir -p bootstrap || die |
232 |
cp -pPR org bootstrap || die |
233 |
cd "${S}/bootstrap" || die |
234 |
|
235 |
einfo "bootstrapping ${MY_PN} with ${javac} ..." |
236 |
${javac} ${javac_opts} @../sources-1.4 || die |
237 |
${javac} -encoding ISO-8859-1 -source 1.6 -target 1.6 @../sources-1.6 || die |
238 |
|
239 |
find org/ \( -name '*.class' -o -name '*.properties' -o -name '*.rsc' \) \ |
240 |
-exec ${jar} cf ${MY_PN}.jar {} + || die |
241 |
|
242 |
cd "${S}" || die |
243 |
einfo "building ${MY_PN} with bootstrapped ${MY_PN} ..." |
244 |
${java} -classpath bootstrap/${MY_PN}.jar \ |
245 |
org.eclipse.jdt.internal.compiler.batch.Main \ |
246 |
${javac_opts} -nowarn @sources-1.4 || die |
247 |
${java} -classpath bootstrap/${MY_PN}.jar \ |
248 |
org.eclipse.jdt.internal.compiler.batch.Main \ |
249 |
-encoding ISO-8859-1 -source 1.6 -target 1.6 -nowarn @sources-1.6 || die |
250 |
|
251 |
find org/ \( -name '*.class' -o -name '*.properties' -o -name '*.rsc' \) \ |
252 |
-exec ${jar} cf ${MY_PN}.jar {} + || die |
253 |
} |
254 |
|
255 |
src_install() { |
256 |
java-pkg_dolauncher ${MY_PN}-${SLOT} --main \ |
257 |
org.eclipse.jdt.internal.compiler.batch.Main |
258 |
|
259 |
# disable the class version verify, this has intentionally |
260 |
# some classes with 1.6, but most is 1.4 |
261 |
JAVA_PKG_STRICT="" java-pkg_dojar ${MY_PN}.jar |
262 |
} |
263 |
|
264 |
pkg_postinst() { |
265 |
einfo "To select between slots of ECJ..." |
266 |
einfo " # eselect ecj" |
267 |
|
268 |
eselect ecj update ecj-${SLOT} |
269 |
} |
270 |
|
271 |
pkg_postrm() { |
272 |
eselect ecj update |
273 |
} |
274 |
|
275 |
|
276 |
|
277 |
1.1 dev-java/eclipse-ecj/eclipse-ecj-3.7.2-r1.ebuild |
278 |
|
279 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.7.2-r1.ebuild?rev=1.1&view=markup |
280 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.7.2-r1.ebuild?rev=1.1&content-type=text/plain |
281 |
|
282 |
Index: eclipse-ecj-3.7.2-r1.ebuild |
283 |
=================================================================== |
284 |
# Copyright 1999-2012 Gentoo Foundation |
285 |
# Distributed under the terms of the GNU General Public License v2 |
286 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.7.2-r1.ebuild,v 1.1 2012/07/10 14:55:24 sera Exp $ |
287 |
|
288 |
EAPI="4" |
289 |
|
290 |
inherit java-pkg-2 |
291 |
|
292 |
MY_PN="ecj" |
293 |
DMF="R-${PV}-201202080800" |
294 |
|
295 |
DESCRIPTION="Eclipse Compiler for Java" |
296 |
HOMEPAGE="http://www.eclipse.org/" |
297 |
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_PN}src-${PV}.jar" |
298 |
|
299 |
LICENSE="EPL-1.0" |
300 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris" |
301 |
SLOT="3.7" |
302 |
IUSE="+ant userland_GNU" |
303 |
|
304 |
COMMON_DEP=" |
305 |
|| ( app-admin/eselect-java app-admin/eselect-ecj )" |
306 |
RDEPEND="${COMMON_DEP} |
307 |
>=virtual/jre-1.4" |
308 |
DEPEND="${COMMON_DEP} |
309 |
>=virtual/jdk-1.6 |
310 |
app-arch/unzip |
311 |
userland_GNU? ( sys-apps/findutils )" |
312 |
PDEPEND=" |
313 |
ant? ( ~dev-java/ant-eclipse-ecj-${PV} )" |
314 |
|
315 |
S="${WORKDIR}" |
316 |
|
317 |
JAVA_PKG_WANT_SOURCE=1.4 |
318 |
JAVA_PKG_WANT_TARGET=1.4 |
319 |
|
320 |
java_prepare() { |
321 |
# These have their own package. |
322 |
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die |
323 |
rm -fr org/eclipse/jdt/internal/antadapter || die |
324 |
|
325 |
# upstream build.xml excludes this |
326 |
rm META-INF/eclipse.inf |
327 |
} |
328 |
|
329 |
src_compile() { |
330 |
local javac_opts javac java jar |
331 |
|
332 |
javac_opts="$(java-pkg_javac-args) -encoding ISO-8859-1" |
333 |
javac="$(java-config -c)" |
334 |
java="$(java-config -J)" |
335 |
jar="$(java-config -j)" |
336 |
|
337 |
find org/ -path org/eclipse/jdt/internal/compiler/apt -prune -o \ |
338 |
-path org/eclipse/jdt/internal/compiler/tool -prune -o -name '*.java' \ |
339 |
-print > sources-1.4 |
340 |
find org/eclipse/jdt/internal/compiler/{apt,tool} -name '*.java' > sources-1.6 |
341 |
|
342 |
mkdir -p bootstrap || die |
343 |
cp -pPR org bootstrap || die |
344 |
cd "${S}/bootstrap" || die |
345 |
|
346 |
einfo "bootstrapping ${MY_PN} with ${javac} ..." |
347 |
${javac} ${javac_opts} @../sources-1.4 || die |
348 |
${javac} -encoding ISO-8859-1 -source 1.6 -target 1.6 @../sources-1.6 || die |
349 |
|
350 |
find org/ \( -name '*.class' -o -name '*.properties' -o -name '*.rsc' \) \ |
351 |
-exec ${jar} cf ${MY_PN}.jar {} + || die |
352 |
|
353 |
cd "${S}" || die |
354 |
einfo "building ${MY_PN} with bootstrapped ${MY_PN} ..." |
355 |
${java} -classpath bootstrap/${MY_PN}.jar \ |
356 |
org.eclipse.jdt.internal.compiler.batch.Main \ |
357 |
${javac_opts} -nowarn @sources-1.4 || die |
358 |
${java} -classpath bootstrap/${MY_PN}.jar \ |
359 |
org.eclipse.jdt.internal.compiler.batch.Main \ |
360 |
-encoding ISO-8859-1 -source 1.6 -target 1.6 -nowarn @sources-1.6 || die |
361 |
|
362 |
find org/ \( -name '*.class' -o -name '*.properties' -o -name '*.rsc' \) \ |
363 |
-exec ${jar} cf ${MY_PN}.jar {} + || die |
364 |
} |
365 |
|
366 |
src_install() { |
367 |
java-pkg_dolauncher ${MY_PN}-${SLOT} --main \ |
368 |
org.eclipse.jdt.internal.compiler.batch.Main |
369 |
|
370 |
# disable the class version verify, this has intentionally |
371 |
# some classes with 1.6, but most is 1.4 |
372 |
JAVA_PKG_STRICT="" java-pkg_dojar ${MY_PN}.jar |
373 |
} |
374 |
|
375 |
pkg_postinst() { |
376 |
einfo "To select between slots of ECJ..." |
377 |
einfo " # eselect ecj" |
378 |
|
379 |
eselect ecj update ecj-${SLOT} |
380 |
} |
381 |
|
382 |
pkg_postrm() { |
383 |
eselect ecj update |
384 |
} |
385 |
|
386 |
|
387 |
|
388 |
1.1 dev-java/eclipse-ecj/eclipse-ecj-3.4-r5.ebuild |
389 |
|
390 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.4-r5.ebuild?rev=1.1&view=markup |
391 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.4-r5.ebuild?rev=1.1&content-type=text/plain |
392 |
|
393 |
Index: eclipse-ecj-3.4-r5.ebuild |
394 |
=================================================================== |
395 |
# Copyright 1999-2012 Gentoo Foundation |
396 |
# Distributed under the terms of the GNU General Public License v2 |
397 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.4-r5.ebuild,v 1.1 2012/07/10 14:55:24 sera Exp $ |
398 |
|
399 |
EAPI=4 |
400 |
|
401 |
inherit java-pkg-2 |
402 |
|
403 |
MY_PN="ecj" |
404 |
DMF="R-${PV}-200806172000" |
405 |
S="${WORKDIR}" |
406 |
|
407 |
DESCRIPTION="Eclipse Compiler for Java" |
408 |
HOMEPAGE="http://www.eclipse.org/" |
409 |
SRC_URI="http://archive.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_PN}src-${PV}.zip" |
410 |
|
411 |
IUSE="java6" |
412 |
|
413 |
LICENSE="EPL-1.0" |
414 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris" |
415 |
SLOT="3.4" |
416 |
|
417 |
CDEPEND="|| ( app-admin/eselect-java app-admin/eselect-ecj )" |
418 |
DEPEND="${CDEPEND} |
419 |
app-arch/unzip |
420 |
!java6? ( >=virtual/jdk-1.4 ) |
421 |
java6? ( >=virtual/jdk-1.6 )" |
422 |
RDEPEND="${CDEPEND} |
423 |
!java6? ( >=virtual/jre-1.4 ) |
424 |
java6? ( >=virtual/jre-1.6 )" |
425 |
|
426 |
src_unpack() { |
427 |
unpack ${A} |
428 |
cd "${S}" || die |
429 |
|
430 |
# These have their own package. |
431 |
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die |
432 |
rm -fr org/eclipse/jdt/internal/antadapter || die |
433 |
|
434 |
if ! use java6 ; then |
435 |
rm -fr org/eclipse/jdt/internal/compiler/{apt,tool}/ || die |
436 |
fi |
437 |
} |
438 |
|
439 |
src_compile() { |
440 |
local javac_opts javac java jar |
441 |
|
442 |
javac_opts="$(java-pkg_javac-args) -encoding ISO-8859-1" |
443 |
javac="$(java-config -c)" |
444 |
java="$(java-config -J)" |
445 |
jar="$(java-config -j)" |
446 |
|
447 |
mkdir -p bootstrap || die |
448 |
cp -pPR org bootstrap || die |
449 |
cd "${S}/bootstrap" || die |
450 |
|
451 |
einfo "bootstrapping ${MY_PN} with ${javac} ..." |
452 |
${javac} ${javac_opts} $(find org/ -name '*.java') || die |
453 |
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' |\ |
454 |
xargs ${jar} cf ${MY_PN}.jar |
455 |
|
456 |
cd "${S}" || die |
457 |
einfo "building ${MY_PN} with bootstrapped ${MY_PN} ..." |
458 |
${java} -classpath bootstrap/${MY_PN}.jar \ |
459 |
org.eclipse.jdt.internal.compiler.batch.Main \ |
460 |
${javac_opts} -nowarn org || die |
461 |
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' |\ |
462 |
xargs ${jar} cf ${MY_PN}.jar |
463 |
} |
464 |
|
465 |
src_install() { |
466 |
|
467 |
java-pkg_dolauncher ${MY_PN}-${SLOT} --main \ |
468 |
org.eclipse.jdt.internal.compiler.batch.Main |
469 |
|
470 |
java-pkg_dojar ${MY_PN}.jar |
471 |
} |
472 |
|
473 |
pkg_postinst() { |
474 |
einfo "To get the Compiler Adapter of ECJ for ANT..." |
475 |
einfo " # emerge ant-eclipse-ecj" |
476 |
echo |
477 |
einfo "To select between slots of ECJ..." |
478 |
einfo " # eselect ecj" |
479 |
|
480 |
eselect ecj update ecj-${SLOT} |
481 |
} |
482 |
|
483 |
pkg_postrm() { |
484 |
eselect ecj update |
485 |
} |
486 |
|
487 |
|
488 |
|
489 |
1.1 dev-java/eclipse-ecj/eclipse-ecj-3.3.0-r4.ebuild |
490 |
|
491 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.3.0-r4.ebuild?rev=1.1&view=markup |
492 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.3.0-r4.ebuild?rev=1.1&content-type=text/plain |
493 |
|
494 |
Index: eclipse-ecj-3.3.0-r4.ebuild |
495 |
=================================================================== |
496 |
# Copyright 1999-2012 Gentoo Foundation |
497 |
# Distributed under the terms of the GNU General Public License v2 |
498 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.3.0-r4.ebuild,v 1.1 2012/07/10 14:55:24 sera Exp $ |
499 |
|
500 |
EAPI=4 |
501 |
|
502 |
inherit eutils java-pkg-2 |
503 |
|
504 |
MY_PN="ecj" |
505 |
DMF="R-${PV}-200706251500" |
506 |
S="${WORKDIR}" |
507 |
|
508 |
DESCRIPTION="Eclipse Compiler for Java" |
509 |
HOMEPAGE="http://www.eclipse.org/" |
510 |
SRC_URI="http://archive.eclipse.org/eclipse/downloads/drops/${DMF/.0}/${MY_PN}src.zip" |
511 |
|
512 |
LICENSE="EPL-1.0" |
513 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris" |
514 |
SLOT="3.3" |
515 |
IUSE="" |
516 |
|
517 |
COMMON_DEPEND="|| ( app-admin/eselect-java app-admin/eselect-ecj )" |
518 |
RDEPEND=">=virtual/jre-1.4 |
519 |
${COMMON_DEPEND}" |
520 |
DEPEND="<virtual/jdk-1.7 |
521 |
sys-apps/findutils |
522 |
app-arch/unzip |
523 |
${COMMON_DEPEND}" |
524 |
|
525 |
java_prepare() { |
526 |
# own package |
527 |
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java |
528 |
rm -fr org/eclipse/jdt/internal/antadapter |
529 |
|
530 |
# what the heck...?! java6 |
531 |
rm -fr org/eclipse/jdt/internal/compiler/tool/ \ |
532 |
org/eclipse/jdt/internal/compiler/apt/ |
533 |
|
534 |
# gcj feature |
535 |
epatch "${FILESDIR}"/${P}-gcj.patch |
536 |
} |
537 |
|
538 |
src_compile() { |
539 |
local javac="javac" java="java" jar="jar" |
540 |
|
541 |
mkdir -p bootstrap |
542 |
cp -pPR org bootstrap |
543 |
|
544 |
einfo "bootstrapping ${MY_PN} with javac" |
545 |
|
546 |
cd "${S}"/bootstrap |
547 |
${javac} $(find org/ -name '*.java') || die "${MY_PN} bootstrap failed!" |
548 |
|
549 |
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' | \ |
550 |
xargs ${jar} cf ${MY_PN}.jar |
551 |
|
552 |
einfo "build ${MY_PN} with bootstrapped ${MY_PN}" |
553 |
|
554 |
cd "${S}" |
555 |
${java} -classpath bootstrap/${MY_PN}.jar \ |
556 |
org.eclipse.jdt.internal.compiler.batch.Main -encoding ISO-8859-1 org \ |
557 |
|| die "${MY_PN} build failed!" |
558 |
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' | \ |
559 |
xargs ${jar} cf ${MY_PN}.jar |
560 |
} |
561 |
|
562 |
src_install() { |
563 |
java-pkg_dojar ${MY_PN}.jar |
564 |
java-pkg_dolauncher ${MY_PN}-${SLOT} --main \ |
565 |
org.eclipse.jdt.internal.compiler.batch.Main |
566 |
} |
567 |
|
568 |
pkg_postinst() { |
569 |
einfo "To get the Compiler Adapter of ECJ for ANT..." |
570 |
einfo " # emerge ant-eclipse-ecj" |
571 |
echo |
572 |
einfo "To select between slots of ECJ..." |
573 |
einfo " # eselect ecj" |
574 |
|
575 |
eselect ecj update ecj-${SLOT} |
576 |
} |
577 |
|
578 |
pkg_postrm() { |
579 |
eselect ecj update |
580 |
} |