summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2007-04-25 23:12:21 +0000
committerVlastimil Babka <caster@gentoo.org>2007-04-25 23:12:21 +0000
commit6105a7a7d7c5e77bb9a2029536a4b65e2ad49faf (patch)
tree3a7e55f4531a81106d8630403644d340d6262e3d /dev-java/eclipse-ecj
parentRemove unused version. (diff)
downloadgentoo-2-6105a7a7d7c5e77bb9a2029536a4b65e2ad49faf.tar.gz
gentoo-2-6105a7a7d7c5e77bb9a2029536a4b65e2ad49faf.tar.bz2
gentoo-2-6105a7a7d7c5e77bb9a2029536a4b65e2ad49faf.zip
Version bump, bug #168806.
(Portage version: 2.1.2.4)
Diffstat (limited to 'dev-java/eclipse-ecj')
-rw-r--r--dev-java/eclipse-ecj/ChangeLog8
-rw-r--r--dev-java/eclipse-ecj/eclipse-ecj-3.2.2.ebuild54
-rw-r--r--dev-java/eclipse-ecj/files/digest-eclipse-ecj-3.2.23
3 files changed, 64 insertions, 1 deletions
diff --git a/dev-java/eclipse-ecj/ChangeLog b/dev-java/eclipse-ecj/ChangeLog
index 508ae22628b2..8139230e9f81 100644
--- a/dev-java/eclipse-ecj/ChangeLog
+++ b/dev-java/eclipse-ecj/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/eclipse-ecj
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/ChangeLog,v 1.17 2007/04/25 18:19:35 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/ChangeLog,v 1.18 2007/04/25 23:12:21 caster Exp $
+
+*eclipse-ecj-3.2.2 (25 Apr 2007)
+
+ 25 Apr 2007; Vlastimil Babka <caster@gentoo.org>
+ +eclipse-ecj-3.2.2.ebuild:
+ Version bump, bug #168806.
25 Apr 2007; Petteri Räty <betelgeuse@gentoo.org>
eclipse-ecj-3.1-r13.ebuild:
diff --git a/dev-java/eclipse-ecj/eclipse-ecj-3.2.2.ebuild b/dev-java/eclipse-ecj/eclipse-ecj-3.2.2.ebuild
new file mode 100644
index 000000000000..6065f43945b8
--- /dev/null
+++ b/dev-java/eclipse-ecj/eclipse-ecj-3.2.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2007 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.2.2.ebuild,v 1.1 2007/04/25 23:12:21 caster Exp $
+
+inherit eutils java-pkg-2
+
+DESCRIPTION="Eclipse Compiler for Java"
+HOMEPAGE="http://www.eclipse.org/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+LICENSE="EPL-1.0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+SLOT="3.2"
+IUSE="doc"
+
+RDEPEND=">=virtual/jre-1.4"
+DEPEND="${RDEPEND}
+ >=virtual/jdk-1.4
+ dev-java/ant-core"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # remove unzip, add javadoc target, put final ecj.jar and javadocs in dist/ and not ../
+ epatch "${FILESDIR}/${PN}-${SLOT}-build-gentoo.patch"
+}
+
+src_compile() {
+ # we don't use eant because the compile*.xml files specifically set -source -target and used compiler
+
+ # bootstrap build with JDK's javac
+ ant -f compilejdtcorewithjavac.xml || die "Failed to bootstrap build with javac"
+
+ local ant_flags=""
+
+ # for some weird reason, with kaffe it fails the build.xml's check for ecj.jar present (which it is)
+ # which if successful sets this property, then checks if it was set and fails if not
+ java-pkg_current-vm-matches kaffe && ant_flags="-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter"
+
+ # recompile with ecj.jar made in first step, to get dist/ecj.jar
+ ant ${ant_flags} -lib ecj.jar -f compilejdtcore.xml compile $(use_doc) || die "Failed to rebuild with ecj"
+}
+
+src_install() {
+ java-pkg_dojar dist/ecj.jar
+
+ java-pkg_dolauncher ecj-${SLOT} --main org.eclipse.jdt.internal.compiler.batch.Main
+
+ use doc && java-pkg_dojavadoc dist/doc/api
+
+ insinto /usr/share/java-config-2/compiler
+ newins ${FILESDIR}/compiler-settings-${SLOT} ecj-${SLOT}
+}
+
diff --git a/dev-java/eclipse-ecj/files/digest-eclipse-ecj-3.2.2 b/dev-java/eclipse-ecj/files/digest-eclipse-ecj-3.2.2
new file mode 100644
index 000000000000..9faf9d2eb898
--- /dev/null
+++ b/dev-java/eclipse-ecj/files/digest-eclipse-ecj-3.2.2
@@ -0,0 +1,3 @@
+MD5 21f55de66c2deec51b6714b607b6793f eclipse-ecj-3.2.2.tar.bz2 615226
+RMD160 4dc422a8abe983293e07c10aac3dba97e6e0907f eclipse-ecj-3.2.2.tar.bz2 615226
+SHA256 81a61220d29aae92c124ca365c4d100e780c57279696e29193a8b92ebca0c2df eclipse-ecj-3.2.2.tar.bz2 615226