diff options
author | Vlastimil Babka <caster@gentoo.org> | 2009-11-04 19:06:08 +0000 |
---|---|---|
committer | Vlastimil Babka <caster@gentoo.org> | 2009-11-04 19:06:08 +0000 |
commit | 1f89948792e7232a0322f6ff89c7923e08f1fe2e (patch) | |
tree | e2aab62877cd76c83c3fe668ae4f2cac8265a4d4 | |
parent | Version bump. Fixes bug #278000 Instead of java6 flag, it builds most using 1... (diff) | |
download | gentoo-2-1f89948792e7232a0322f6ff89c7923e08f1fe2e.tar.gz gentoo-2-1f89948792e7232a0322f6ff89c7923e08f1fe2e.tar.bz2 gentoo-2-1f89948792e7232a0322f6ff89c7923e08f1fe2e.zip |
Version bump. Fixes bug #278000.
(Portage version: 2.2_rc48/cvs/Linux x86_64)
-rw-r--r-- | dev-java/ant-eclipse-ecj/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/ant-eclipse-ecj/ant-eclipse-ecj-3.5.1.ebuild | 49 | ||||
-rw-r--r-- | dev-java/ant-eclipse-ecj/files/compiler-settings-3.5 | 7 |
3 files changed, 63 insertions, 1 deletions
diff --git a/dev-java/ant-eclipse-ecj/ChangeLog b/dev-java/ant-eclipse-ecj/ChangeLog index 7153c0324e51..676db58a1efa 100644 --- a/dev-java/ant-eclipse-ecj/ChangeLog +++ b/dev-java/ant-eclipse-ecj/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/ant-eclipse-ecj # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-eclipse-ecj/ChangeLog,v 1.12 2009/04/26 23:49:00 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-eclipse-ecj/ChangeLog,v 1.13 2009/11/04 19:06:07 caster Exp $ + +*ant-eclipse-ecj-3.5.1 (04 Nov 2009) + + 04 Nov 2009; Vlastimil Babka <caster@gentoo.org> + +files/compiler-settings-3.5, +ant-eclipse-ecj-3.5.1.ebuild: + Version bump. Fixes bug #278000. 26 Apr 2009; Brent Baude <ranger@gentoo.org> ant-eclipse-ecj-3.4.ebuild: Marking ant-eclipse-ecj-3.4 ppc for bug 263969 diff --git a/dev-java/ant-eclipse-ecj/ant-eclipse-ecj-3.5.1.ebuild b/dev-java/ant-eclipse-ecj/ant-eclipse-ecj-3.5.1.ebuild new file mode 100644 index 000000000000..3722a66f7312 --- /dev/null +++ b/dev-java/ant-eclipse-ecj/ant-eclipse-ecj-3.5.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-eclipse-ecj/ant-eclipse-ecj-3.5.1.ebuild,v 1.1 2009/11/04 19:06:07 caster Exp $ + +inherit java-pkg-2 + +DMF="R-${PV}--200909170800" +S="${WORKDIR}" + +DESCRIPTION="Ant Compiler Adapter for Eclipse Java Compiler" +HOMEPAGE="http://www.eclipse.org/" +SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/${DMF/.0}/ecjsrc-${PV}.zip" + +LICENSE="EPL-1.0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +SLOT="3.5" +IUSE="" + +RDEPEND=">=virtual/jre-1.4 + ~dev-java/eclipse-ecj-${PV} + >=dev-java/ant-core-1.7" +DEPEND="${RDEPEND} + app-arch/unzip + >=virtual/jdk-1.4 + sys-apps/findutils" + +src_unpack() { + unpack ${A} + mkdir -p src/org/eclipse/jdt/{core,internal} + cp org/eclipse/jdt/core/JDTCompilerAdapter.java \ + src/org/eclipse/jdt/core || die + cp -r org/eclipse/jdt/internal/antadapter \ + src/org/eclipse/jdt/internal || die + rm -fr about* org +} + +src_compile() { + cd src + ejavac -classpath "$(java-pkg_getjars ant-core,eclipse-ecj-${SLOT})" \ + $(find org/ -name '*.java') || die "ejavac failed!" + find org/ -name '*.class' -o -name '*.properties' | \ + xargs jar cf "${S}/${PN}.jar" || die "jar failed!" +} + +src_install() { + java-pkg_dojar ${PN}.jar + insinto /usr/share/java-config-2/compiler + newins "${FILESDIR}/compiler-settings-${SLOT}" ecj-${SLOT} +} diff --git a/dev-java/ant-eclipse-ecj/files/compiler-settings-3.5 b/dev-java/ant-eclipse-ecj/files/compiler-settings-3.5 new file mode 100644 index 000000000000..a15e7705d7a5 --- /dev/null +++ b/dev-java/ant-eclipse-ecj/files/compiler-settings-3.5 @@ -0,0 +1,7 @@ +JAVAC="/usr/bin/ecj-3.5" +PACKAGE="=dev-java/ant-eclipse-ecj-3.5*" +SUPPORTED_TARGET="1.1 1.2 1.3 1.4 1.5 1.6 1.7" +SUPPORTED_SOURCE="1.3 1.4 1.5 1.6 1.7" +ANT_BUILD_COMPILER="org.eclipse.jdt.core.JDTCompilerAdapter" +ANT_BUILD_COMPILER_DEPS="eclipse-ecj-3.5,ant-eclipse-ecj-3.5" +GENERATION="2" |