chewi       15/03/19 10:03:23

  Modified:             ChangeLog
  Added:                eclipse-ecj-4.4.2-r1.ebuild
  Removed:              eclipse-ecj-4.4.2.ebuild
  Log:
  Regarding bug #449442, don't install ecj.jar as a symlink because the
  gnu-classpath ebuild cannot find it. Use the new feature in
  java-pkg-simple to give it this name instead.
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
9C6D7DE4)

Revision  Changes    Path
1.100                dev-java/eclipse-ecj/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/ChangeLog?rev=1.100&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/ChangeLog?rev=1.100&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/ChangeLog?r1=1.99&r2=1.100

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/ChangeLog,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -r1.99 -r1.100
--- ChangeLog   15 Mar 2015 21:07:16 -0000      1.99
+++ ChangeLog   19 Mar 2015 10:03:23 -0000      1.100
@@ -1,6 +1,14 @@
 # ChangeLog for dev-java/eclipse-ecj
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/ChangeLog,v 1.99 
2015/03/15 21:07:16 chewi Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/ChangeLog,v 1.100 
2015/03/19 10:03:23 chewi Exp $
+
+*eclipse-ecj-4.4.2-r1 (19 Mar 2015)
+
+  19 Mar 2015; James Le Cuirot <[email protected]> +eclipse-ecj-4.4.2-r1.ebuild,
+  -eclipse-ecj-4.4.2.ebuild:
+  Regarding bug #449442, don't install ecj.jar as a symlink because the gnu-
+  classpath ebuild cannot find it. Use the new feature in java-pkg-simple to
+  give it this name instead.
 
 *eclipse-ecj-4.4.2 (15 Mar 2015)
 



1.1                  dev-java/eclipse-ecj/eclipse-ecj-4.4.2-r1.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-4.4.2-r1.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-4.4.2-r1.ebuild?rev=1.1&content-type=text/plain

Index: eclipse-ecj-4.4.2-r1.ebuild
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-4.4.2-r1.ebuild,v 1.1 
2015/03/19 10:03:23 chewi Exp $

EAPI=5

JAVA_PKG_IUSE="doc source"

inherit java-pkg-2 java-pkg-simple

MY_PN="ecj"
DMF="R-${PV}-201502041700"

DESCRIPTION="Eclipse Compiler for Java"
HOMEPAGE="http://www.eclipse.org/";
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops4/${DMF}/${MY_PN}src-${PV}.jar";

LICENSE="EPL-1.0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux 
~x86-linux ~x86-solaris"
SLOT="4.4"
IUSE="+ant"

COMMON_DEP="
        || ( app-admin/eselect-java app-admin/eselect-ecj )"
RDEPEND="${COMMON_DEP}
        >=virtual/jre-1.6"
DEPEND="${COMMON_DEP}
        >=virtual/jdk-1.6
        app-arch/unzip"
PDEPEND="
        ant? ( ~dev-java/ant-eclipse-ecj-${PV} )"

JAVA_JAR_FILENAME="${MY_PN}.jar"

java_prepare() {
        # These have their own package.
        rm org/eclipse/jdt/core/JDTCompilerAdapter.java || die
        rm -r org/eclipse/jdt/internal/antadapter || die

        rm build.xml || die
}

src_compile() {
        java-pkg-simple_src_compile
        find org META-INF -type f ! -name "*.java" | xargs jar uvf 
"${JAVA_JAR_FILENAME}" || die "jar update failed"
}

src_install() {
        java-pkg-simple_src_install
        java-pkg_dolauncher ${MY_PN}-${SLOT} --main \
                org.eclipse.jdt.internal.compiler.batch.Main
}

pkg_postinst() {
        einfo "To select between slots of ECJ..."
        einfo " # eselect ecj"

        eselect ecj update ecj-${SLOT}
}

pkg_postrm() {
        eselect ecj update
}




Reply via email to