diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-09-07 17:24:44 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-09-07 17:24:44 +0000 |
commit | 47610d5deb3a7be9f609d8022d46f1a78b0e87b4 (patch) | |
tree | 60d48c767a4b0ad1e187707955dfee44d2f33c80 /dev-java | |
parent | Version bump - 2.3.0 is released (bug 187398) (diff) | |
download | gentoo-2-47610d5deb3a7be9f609d8022d46f1a78b0e87b4.tar.gz gentoo-2-47610d5deb3a7be9f609d8022d46f1a78b0e87b4.tar.bz2 gentoo-2-47610d5deb3a7be9f609d8022d46f1a78b0e87b4.zip |
Use java-pkg_dolauncher instead of the hand written wrapper script.
(Portage version: 2.1.3.7)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/eclipse-ecj/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/eclipse-ecj/eclipse-ecj-3.3.0-r1.ebuild | 74 | ||||
-rw-r--r-- | dev-java/eclipse-ecj/files/digest-eclipse-ecj-3.3.0-r1 | 3 |
3 files changed, 84 insertions, 1 deletions
diff --git a/dev-java/eclipse-ecj/ChangeLog b/dev-java/eclipse-ecj/ChangeLog index ab611004f524..d93a65ca25d8 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.20 2007/07/27 13:01:38 nichoj Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/ChangeLog,v 1.21 2007/09/07 17:24:44 betelgeuse Exp $ + +*eclipse-ecj-3.3.0-r1 (07 Sep 2007) + + 07 Sep 2007; Petteri Räty <betelgeuse@gentoo.org> + +eclipse-ecj-3.3.0-r1.ebuild: + Use java-pkg_dolauncher instead of the hand written wrapper script. *eclipse-ecj-3.3.0 (27 Jul 2007) diff --git a/dev-java/eclipse-ecj/eclipse-ecj-3.3.0-r1.ebuild b/dev-java/eclipse-ecj/eclipse-ecj-3.3.0-r1.ebuild new file mode 100644 index 000000000000..81e157210f50 --- /dev/null +++ b/dev-java/eclipse-ecj/eclipse-ecj-3.3.0-r1.ebuild @@ -0,0 +1,74 @@ +# 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.3.0-r1.ebuild,v 1.1 2007/09/07 17:24:44 betelgeuse Exp $ + +inherit eutils java-utils-2 + +MY_PN="ecj" +DMF="R-${PV}-200706251500" +S="${WORKDIR}" + +DESCRIPTION="Eclipse Compiler for Java" +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" +DEPEND=">=virtual/jdk-1.4 + sys-apps/findutils + app-arch/unzip" + +src_unpack() { + unpack ${A} + cd ${S} + + # own package + rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java + rm -fr org/eclipse/jdt/internal/antadapter + + # what the heck...?! java6 + rm -fr org/eclipse/jdt/internal/compiler/tool/ \ + org/eclipse/jdt/internal/compiler/apt/ + + # gcj feature + epatch ${FILESDIR}/${P}-gcj.patch +} + +src_compile() { + local javac="javac" java="java" jar="jar" + + mkdir -p bootstrap + cp -a org bootstrap + + einfo "bootstrapping ${MY_PN} with javac" + + cd ${S}/bootstrap + ${javac} $(find org/ -name '*.java') || die "${MY_PN} bootstrap failed!" + + find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' | \ + xargs ${jar} cf ${MY_PN}.jar + + einfo "build ${MY_PN} with bootstrapped ${MY_PN}" + + cd ${S} + ${java} -classpath bootstrap/${MY_PN}.jar \ + org.eclipse.jdt.internal.compiler.batch.Main -encoding ISO-8859-1 org \ + || die "${MY_PN} build failed!" + find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' | \ + xargs ${jar} cf ${MY_PN}.jar +} + +src_install() { + java-pkg_dojar ${MY_PN}.jar + java-pkg_dolauncher ${MY_PN}-${SLOT} --main \ + org.eclipse.jdt.internal.compiler.batch.Main +} + +pkg_postinst() { + ewarn "to get the compiler adapter of ecj for ant do" + ewarn " # emerge ant-eclipse-ecj" +} diff --git a/dev-java/eclipse-ecj/files/digest-eclipse-ecj-3.3.0-r1 b/dev-java/eclipse-ecj/files/digest-eclipse-ecj-3.3.0-r1 new file mode 100644 index 000000000000..d8f2e5bbad7a --- /dev/null +++ b/dev-java/eclipse-ecj/files/digest-eclipse-ecj-3.3.0-r1 @@ -0,0 +1,3 @@ +MD5 9e1fc1c86c85e72df5e141069b82041d ecjsrc.zip 1215250 +RMD160 938320ae54050e322bbb98c78b0e86d241862153 ecjsrc.zip 1215250 +SHA256 f41194a9580023afd11d18b82f6815b064af83c4f9ca407a40cd8d960bd112cc ecjsrc.zip 1215250 |