summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2009-11-04 19:05:35 +0000
committerVlastimil Babka <caster@gentoo.org>2009-11-04 19:05:35 +0000
commit66ded2afc4dae383c5d34fb3cf3ab9ae754a0e6d (patch)
tree3d1210cef8f8cbfdb17f53d40ea5f3e10d716df0 /dev-java/eclipse-ecj
parentold (diff)
downloadhistorical-66ded2afc4dae383c5d34fb3cf3ab9ae754a0e6d.tar.gz
historical-66ded2afc4dae383c5d34fb3cf3ab9ae754a0e6d.tar.bz2
historical-66ded2afc4dae383c5d34fb3cf3ab9ae754a0e6d.zip
Version bump. Fixes bug #278000 Instead of java6 flag, it builds most using 1.4 bytecode and only 1.6 specific parts with 1.6 bytecode, as upstream does. Adds local USE flag 'ant' enabled by default, which pulls the Ant adapter in PDEPEND.
Package-Manager: portage-2.2_rc48/cvs/Linux x86_64
Diffstat (limited to 'dev-java/eclipse-ecj')
-rw-r--r--dev-java/eclipse-ecj/ChangeLog11
-rw-r--r--dev-java/eclipse-ecj/Manifest6
-rw-r--r--dev-java/eclipse-ecj/eclipse-ecj-3.5.1.ebuild103
-rw-r--r--dev-java/eclipse-ecj/metadata.xml3
4 files changed, 120 insertions, 3 deletions
diff --git a/dev-java/eclipse-ecj/ChangeLog b/dev-java/eclipse-ecj/ChangeLog
index 2412a3b1a851..d95efe9a2b8a 100644
--- a/dev-java/eclipse-ecj/ChangeLog
+++ b/dev-java/eclipse-ecj/ChangeLog
@@ -1,6 +1,15 @@
# 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.58 2009/11/04 17:50:42 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/ChangeLog,v 1.59 2009/11/04 19:05:35 caster Exp $
+
+*eclipse-ecj-3.5.1 (04 Nov 2009)
+
+ 04 Nov 2009; Vlastimil Babka <caster@gentoo.org>
+ +eclipse-ecj-3.5.1.ebuild, metadata.xml:
+ Version bump. Fixes bug #277998. Instead of java6 flag, it builds most
+ using 1.4 bytecode and only 1.6 specific parts with 1.6 bytecode, as
+ upstream does. Adds local USE flag 'ant' enabled by default, which pulls
+ the Ant adapter in PDEPEND.
04 Nov 2009; Vlastimil Babka <caster@gentoo.org>
-eclipse-ecj-3.2.2.ebuild, -files/ecj-3.3, -eclipse-ecj-3.3.0-r2.ebuild,
diff --git a/dev-java/eclipse-ecj/Manifest b/dev-java/eclipse-ecj/Manifest
index 44bb00ef58ac..0bd3d33af15f 100644
--- a/dev-java/eclipse-ecj/Manifest
+++ b/dev-java/eclipse-ecj/Manifest
@@ -2,10 +2,12 @@ AUX compiler-settings-3.2 258 RMD160 40710ab16453db1f23433a9e74637662e917c159 SH
AUX eclipse-ecj-3.2-build-gentoo.patch 1877 RMD160 027003513593a3b880bff73a012f73959c674be5 SHA1 5e2a5f0b0f484e147665c48bb38e2df1401823e5 SHA256 086abbf990543dcbf511567a2f663e53f932e825c75600745771c7d3f5739bd3
AUX eclipse-ecj-3.3.0-gcj.patch 20084 RMD160 08944cef146676d9d7fddc46727bc172d75cdcb5 SHA1 900ccaaec2db0012defc016c65088f979a35e145 SHA256 6c5ffcefdc385305f01b63fcb7088b04698b5d1b8d9db54d058ffcf2252460e8
DIST ecjsrc-3.4.zip 1280774 RMD160 8d12a84b9ff2b8df252bdc06309558559ce91d2e SHA1 dbf3300205717c165a1b1ec36af4c3fd1e45888b SHA256 a6ce5f0682462e85e5e47229e5b16555f74c60188fa0bb17536beb1138c537b4
+DIST ecjsrc-3.5.1.zip 1297603 RMD160 3fd56790edc323fd10439eaf778b8489b641d637 SHA1 83b14c20a82079ff9dd3c42c4eee56db4c175723 SHA256 27639423e565c6b6ee5184f174447151aebdf5ef669c1bd73185e9b85515d4ee
DIST ecjsrc.zip 1215250 RMD160 938320ae54050e322bbb98c78b0e86d241862153 SHA1 e08a27fd77e5ac7af8f2c84beed175cd3fdd0c60 SHA256 f41194a9580023afd11d18b82f6815b064af83c4f9ca407a40cd8d960bd112cc
DIST eclipse-ecj-3.2.2.tar.bz2 615226 RMD160 4dc422a8abe983293e07c10aac3dba97e6e0907f SHA1 a8ba6817e4e9d37cf6b9725f7fff229b7448eaac SHA256 81a61220d29aae92c124ca365c4d100e780c57279696e29193a8b92ebca0c2df
EBUILD eclipse-ecj-3.2.2-r1.ebuild 1932 RMD160 665b71bd83682d6091a656c903c2e483a5e4451f SHA1 516fbc0fa421645ab070b4fbcfbfdd37cef7a0f2 SHA256 88217e40f760e19a91d090eb72f75e8281fd8e0ea74e458c4f446e2309f919c9
EBUILD eclipse-ecj-3.3.0-r3.ebuild 2120 RMD160 0a4afac8a965b827148b9a1b48ec82e66ddb17a0 SHA1 c28b9df069497cfd6459b98821c51fd60b63c60b SHA256 c1b36ffbe000bbae165da32a81f4eb6ea6c9ad1f123b4bb67905dc9aeff0917c
EBUILD eclipse-ecj-3.4-r4.ebuild 2266 RMD160 7dc48632d92d7a96a21706cbe7025a879d6e473e SHA1 ad44fb68c7202b744250cacc2daa51d3d3d1a909 SHA256 c97a509f93055f74933daaff67e1e92b7e4b40c6d5559260ad1436ace321a27d
-MISC ChangeLog 8640 RMD160 dc1699a7bffb0798e8bd8c8428b2fce8495c0ec1 SHA1 ef01e7b5f2522ead6e31a146efbc61727e87abce SHA256 ea27e9d9ca4f7c269a267c27f54104bd22f94c32ea2968d4f8f9853f8a0f7d2b
-MISC metadata.xml 471 RMD160 08157ecf22a49769d6b1bd7f07f3ed2006033d7c SHA1 a703452dd08cbc95a192d27d3d79699309586082 SHA256 60e14a372db0a00cfa3f87152c20e658a55acc28b55a1d7888d2d44b847f6007
+EBUILD eclipse-ecj-3.5.1.ebuild 2780 RMD160 1b7c52fcd313a9eef41c62fe0d6b18a1f4c0d7b7 SHA1 1797985c4f76c48769428912f55cb1d944ac8e74 SHA256 737f58eeb7f47b46ed50f422c2bef3007505e725b18b2b7974410256d41556dd
+MISC ChangeLog 9018 RMD160 4dd3e83b28fb3bffeda9f1358454377261ae9175 SHA1 87151d485495fdd1734f3eadb629fafd1a3cf83c SHA256 859de9e7d4666c473d16e22c9777fe781f417fe1d8726cbd806d5a1da02d5bce
+MISC metadata.xml 570 RMD160 c3773d8e931a0e7a00eeb494f1f8f68cc1f799ed SHA1 71c2b881dc7b6733567777051b079745f3c2d70a SHA256 dd2a09440442264363911b455040196cbb42763fbacbb135c07b3f0de44a1e3a
diff --git a/dev-java/eclipse-ecj/eclipse-ecj-3.5.1.ebuild b/dev-java/eclipse-ecj/eclipse-ecj-3.5.1.ebuild
new file mode 100644
index 000000000000..c2e9730b7053
--- /dev/null
+++ b/dev-java/eclipse-ecj/eclipse-ecj-3.5.1.ebuild
@@ -0,0 +1,103 @@
+# 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.5.1.ebuild,v 1.1 2009/11/04 19:05:35 caster Exp $
+
+EAPI=2
+
+inherit java-pkg-2
+
+MY_PN="ecj"
+DMF="R-${PV}-200909170800"
+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="+ant"
+
+LICENSE="EPL-1.0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+SLOT="3.5"
+
+CDEPEND=">=app-admin/eselect-ecj-0.3"
+
+JAVA_PKG_WANT_SOURCE=1.4
+JAVA_PKG_WANT_TARGET=1.4
+
+DEPEND="${CDEPEND}
+ app-arch/unzip
+ >=virtual/jdk-1.6
+ sys-apps/findutils"
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.4"
+PDEPEND="ant? ( ~dev-java/ant-eclipse-ecj-${PV} )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # These have their own package.
+ rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die
+ rm -fr org/eclipse/jdt/internal/antadapter || die
+
+ # upstream build.xml excludes this
+ rm META-INF/eclipse.inf
+}
+
+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)"
+
+ find org/ -path org/eclipse/jdt/internal/compiler/apt -prune -o \
+ -path org/eclipse/jdt/internal/compiler/tool -prune -o -name '*.java' \
+ -print > sources-1.4
+ find org/eclipse/jdt/internal/compiler/{apt,tool} -name '*.java' > sources-1.6
+
+ mkdir -p bootstrap || die
+ cp -pPR org bootstrap || die
+ cd "${S}/bootstrap" || die
+
+ einfo "bootstrapping ${MY_PN} with ${javac} ..."
+ ${javac} ${javac_opts} @../sources-1.4 || die
+ ${javac} -encoding ISO-8859-1 -source 1.6 -target 1.6 @../sources-1.6 || 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 @sources-1.4 || die
+ ${java} -classpath bootstrap/${MY_PN}.jar \
+ org.eclipse.jdt.internal.compiler.batch.Main \
+ -encoding ISO-8859-1 -source 1.6 -target 1.6 -nowarn @sources-1.6 || 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
+
+ # disable the class version verify, this has intentionally
+ # some classes with 1.6, but most is 1.4
+ JAVA_PKG_STRICT="" java-pkg_dojar ${MY_PN}.jar
+}
+
+pkg_postinst() {
+ 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/metadata.xml b/dev-java/eclipse-ecj/metadata.xml
index cffcc6a6d958..2b50537a62dd 100644
--- a/dev-java/eclipse-ecj/metadata.xml
+++ b/dev-java/eclipse-ecj/metadata.xml
@@ -9,4 +9,7 @@ as a batch-compiler by running the ecj-3.x script, or it can be
used with Ant by using the -lib option to and and setting
-Dbuild.compiler=ecj
</longdescription>
+<use>
+ <flag name="ant">Support using ecj in Ant builds via dev-java/ant-eclipse-ecj</flag>
+</use>
</pkgmetadata>