summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Noël Rivasseau <elvanor@gentoo.org>2009-02-13 12:02:02 +0000
committerJean-Noël Rivasseau <elvanor@gentoo.org>2009-02-13 12:02:02 +0000
commit3d94b2d2241ddd7caf6b0d20a6d44a24de1f71b6 (patch)
treed968619d0dc1015ada5e6f27e1f81f6958190be4 /dev-java
parentFix typo. (diff)
downloadgentoo-2-3d94b2d2241ddd7caf6b0d20a6d44a24de1f71b6.tar.gz
gentoo-2-3d94b2d2241ddd7caf6b0d20a6d44a24de1f71b6.tar.bz2
gentoo-2-3d94b2d2241ddd7caf6b0d20a6d44a24de1f71b6.zip
Removed gcj support for ecilpse-ecj in main tree (#237689).
(Portage version: 2.1.6.4/cvs/Linux 2.6.26.7 i686)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/eclipse-ecj/ChangeLog9
-rw-r--r--dev-java/eclipse-ecj/eclipse-ecj-3.4-r4.ebuild92
-rwxr-xr-xdev-java/eclipse-ecj/files/ecj-3.48
3 files changed, 100 insertions, 9 deletions
diff --git a/dev-java/eclipse-ecj/ChangeLog b/dev-java/eclipse-ecj/ChangeLog
index f52494816332..b2c3f80045cb 100644
--- a/dev-java/eclipse-ecj/ChangeLog
+++ b/dev-java/eclipse-ecj/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-java/eclipse-ecj
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/ChangeLog,v 1.52 2009/02/11 20:22:49 elvanor Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/ChangeLog,v 1.53 2009/02/13 12:02:01 elvanor Exp $
+
+*eclipse-ecj-3.4-r4 (13 Feb 2009)
+
+ 13 Feb 2009; Jean-Noël Rivasseau <elvanor@gentoo.org> -files/ecj-3.4,
+ +eclipse-ecj-3.4-r4.ebuild:
+ Bump to fix #237689 by actually removing support for gcj. gcj support is
+ still available in the overlay.
11 Feb 2009; Jean-Noël Rivasseau <elvanor@gentoo.org>
eclipse-ecj-3.3.0-r2.ebuild, eclipse-ecj-3.3.0-r3.ebuild,
diff --git a/dev-java/eclipse-ecj/eclipse-ecj-3.4-r4.ebuild b/dev-java/eclipse-ecj/eclipse-ecj-3.4-r4.ebuild
new file mode 100644
index 000000000000..27b2349dec86
--- /dev/null
+++ b/dev-java/eclipse-ecj/eclipse-ecj-3.4-r4.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.4-r4.ebuild,v 1.1 2009/02/13 12:02:01 elvanor Exp $
+
+EAPI=2
+
+inherit java-pkg-2
+
+MY_PN="ecj"
+DMF="R-${PV}-200806172000"
+S="${WORKDIR}"
+
+DESCRIPTION="Eclipse Compiler for Java"
+HOMEPAGE="http://www.eclipse.org/"
+SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_PN}src-${PV}.zip"
+
+IUSE="java6"
+
+LICENSE="EPL-1.0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+SLOT="3.4"
+
+CDEPEND=">=app-admin/eselect-ecj-0.3"
+
+DEPEND="${CDEPEND}
+ app-arch/unzip
+ !java6? ( >=virtual/jdk-1.4 )
+ java6? ( >=virtual/jdk-1.6 )"
+RDEPEND="${CDEPEND}
+ !java6? ( >=virtual/jre-1.4 )
+ java6? ( >=virtual/jre-1.6 )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}" || die
+
+ # These have their own package.
+ rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die
+ rm -fr org/eclipse/jdt/internal/antadapter || die
+
+ if ! use java6 ; then
+ rm -fr org/eclipse/jdt/internal/compiler/{apt,tool}/ || die
+ fi
+}
+
+src_compile() {
+ local javac_opts javac java jar
+
+ javac_opts="$(java-pkg_javac-args) -encoding ISO-8859-1"
+ javac="$(java-config -c)"
+ java="$(java-config -J)"
+ jar="$(java-config -j)"
+
+ mkdir -p bootstrap || die
+ cp -pPR org bootstrap || die
+ cd "${S}/bootstrap" || die
+
+ einfo "bootstrapping ${MY_PN} with ${javac} ..."
+ ${javac} ${javac_opts} $(find org/ -name '*.java') || die
+ find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' |\
+ xargs ${jar} cf ${MY_PN}.jar
+
+ cd "${S}" || die
+ einfo "building ${MY_PN} with bootstrapped ${MY_PN} ..."
+ ${java} -classpath bootstrap/${MY_PN}.jar \
+ org.eclipse.jdt.internal.compiler.batch.Main \
+ ${javac_opts} -nowarn org || die
+ find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' |\
+ xargs ${jar} cf ${MY_PN}.jar
+}
+
+src_install() {
+
+ java-pkg_dolauncher ${MY_PN}-${SLOT} --main \
+ org.eclipse.jdt.internal.compiler.batch.Main
+
+ java-pkg_dojar ${MY_PN}.jar
+}
+
+pkg_postinst() {
+ einfo "To get the Compiler Adapter of ECJ for ANT..."
+ einfo " # emerge ant-eclipse-ecj"
+ echo
+ einfo "To select between slots of ECJ..."
+ einfo " # eselect ecj"
+
+ eselect ecj update ecj-${SLOT}
+}
+
+pkg_postrm() {
+ eselect ecj update
+}
diff --git a/dev-java/eclipse-ecj/files/ecj-3.4 b/dev-java/eclipse-ecj/files/ecj-3.4
deleted file mode 100755
index 745391d325d4..000000000000
--- a/dev-java/eclipse-ecj/files/ecj-3.4
+++ /dev/null
@@ -1,8 +0,0 @@
-#! /bin/sh
-#
-# Copyright (C) 2008 Andrew John Hughes
-#
-# Licensed under the GNU General Public License, v2
-
-LD_LIBRARY_PATH=$(gcc-config -L $(ls -1r /etc/env.d/gcc/*4.3.?|head -1)) /usr/bin/native_ecj-3.4 "${@}"
-