summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2007-07-27 13:02:44 +0000
committerJoshua Nichols <nichoj@gentoo.org>2007-07-27 13:02:44 +0000
commit38c139ea783d66879c58f5337458829082bbe760 (patch)
tree302dca8d09db2fedafdb4c9f1fbef46915e47439 /dev-java/ant-eclipse-ecj
parentVersion bump imported from gcj-overlay. (diff)
downloadhistorical-38c139ea783d66879c58f5337458829082bbe760.tar.gz
historical-38c139ea783d66879c58f5337458829082bbe760.tar.bz2
historical-38c139ea783d66879c58f5337458829082bbe760.zip
Initial version imported from gcj-overlay.
Package-Manager: portage-2.1.3_rc8
Diffstat (limited to 'dev-java/ant-eclipse-ecj')
-rw-r--r--dev-java/ant-eclipse-ecj/ChangeLog11
-rw-r--r--dev-java/ant-eclipse-ecj/ant-eclipse-ecj-3.3.0.ebuild50
-rw-r--r--dev-java/ant-eclipse-ecj/files/compiler-settings-3.37
-rw-r--r--dev-java/ant-eclipse-ecj/files/digest-ant-eclipse-ecj-3.3.03
-rw-r--r--dev-java/ant-eclipse-ecj/metadata.xml12
5 files changed, 83 insertions, 0 deletions
diff --git a/dev-java/ant-eclipse-ecj/ChangeLog b/dev-java/ant-eclipse-ecj/ChangeLog
new file mode 100644
index 000000000000..186499d642c7
--- /dev/null
+++ b/dev-java/ant-eclipse-ecj/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/ant-eclipse-ecj
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-eclipse-ecj/ChangeLog,v 1.1 2007/07/27 13:02:44 nichoj Exp $
+
+*ant-eclipse-ecj-3.3.0 (27 Jul 2007)
+
+ 27 Jul 2007; Joshua Nichols <nichoj@gentoo.org>
+ +files/compiler-settings-3.3, +metadata.xml,
+ +ant-eclipse-ecj-3.3.0.ebuild:
+ Initial version imported from gcj-overlay.
+
diff --git a/dev-java/ant-eclipse-ecj/ant-eclipse-ecj-3.3.0.ebuild b/dev-java/ant-eclipse-ecj/ant-eclipse-ecj-3.3.0.ebuild
new file mode 100644
index 000000000000..ae58e9d63819
--- /dev/null
+++ b/dev-java/ant-eclipse-ecj/ant-eclipse-ecj-3.3.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2007 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.3.0.ebuild,v 1.1 2007/07/27 13:02:44 nichoj Exp $
+
+inherit java-pkg-2
+
+MY_PN="ecj"
+DMF="R-${PV}-200706251500"
+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}/${MY_PN}src.zip"
+
+LICENSE="EPL-1.0"
+KEYWORDS="~amd64 ~ppc ~x86"
+SLOT="3.3"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.4
+ ~dev-java/eclipse-ecj-${PV}
+ >=dev-java/ant-core-1.7"
+DEPEND="${RDEPEND}
+ >=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-config -p 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.3 b/dev-java/ant-eclipse-ecj/files/compiler-settings-3.3
new file mode 100644
index 000000000000..8cc6efcb0645
--- /dev/null
+++ b/dev-java/ant-eclipse-ecj/files/compiler-settings-3.3
@@ -0,0 +1,7 @@
+JAVAC="/usr/bin/ecj-3.3"
+PACKAGE="=dev-java/ant-eclipse-ecj-3.3*"
+SUPPORTED_TARGET="1.1 1.2 1.3 1.4 1.5 1.6"
+SUPPORTED_SOURCE="1.3 1.4 1.5 1.6"
+ANT_BUILD_COMPILER="org.eclipse.jdt.core.JDTCompilerAdapter"
+ANT_BUILD_COMPILER_DEPS="eclipse-ecj-3.3,ant-eclipse-ecj-3.3"
+GENERATION="2"
diff --git a/dev-java/ant-eclipse-ecj/files/digest-ant-eclipse-ecj-3.3.0 b/dev-java/ant-eclipse-ecj/files/digest-ant-eclipse-ecj-3.3.0
new file mode 100644
index 000000000000..d8f2e5bbad7a
--- /dev/null
+++ b/dev-java/ant-eclipse-ecj/files/digest-ant-eclipse-ecj-3.3.0
@@ -0,0 +1,3 @@
+MD5 9e1fc1c86c85e72df5e141069b82041d ecjsrc.zip 1215250
+RMD160 938320ae54050e322bbb98c78b0e86d241862153 ecjsrc.zip 1215250
+SHA256 f41194a9580023afd11d18b82f6815b064af83c4f9ca407a40cd8d960bd112cc ecjsrc.zip 1215250
diff --git a/dev-java/ant-eclipse-ecj/metadata.xml b/dev-java/ant-eclipse-ecj/metadata.xml
new file mode 100644
index 000000000000..f685f4a1f625
--- /dev/null
+++ b/dev-java/ant-eclipse-ecj/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+<longdescription>
+ECJ is the Eclipse Compiler for Java. It's a separate packaging of
+the embedded Java compiler that comes with Eclipse. It can be used
+as a batch-compiler by running the ecj-3.1 script, or it can be
+used with Ant by using the -lib option to and and setting
+-Dbuild.compiler=ecj
+</longdescription>
+</pkgmetadata>