1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc source"
8 inherit java-pkg-2 java-pkg-simple
11 DMF="R-${PV}-201502041700"
13 DESCRIPTION="Eclipse Compiler for Java"
14 HOMEPAGE="http://www.eclipse.org/"
15 SRC_URI="http://download.eclipse.org/eclipse/downloads/drops4/${DMF}/${MY_PN}src-${PV}.jar"
18 KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~x86-solaris"
23 app-eselect/eselect-java"
24 RDEPEND="${COMMON_DEP}
30 ant? ( ~dev-java/ant-eclipse-ecj-${PV} )"
32 JAVA_JAR_FILENAME="${MY_PN}.jar"
35 # These have their own package.
36 rm org/eclipse/jdt/core/JDTCompilerAdapter.java || die
37 rm -r org/eclipse/jdt/internal/antadapter || die
43 java-pkg-simple_src_compile
44 find org META-INF -type f ! -name "*.java" | xargs jar uvf "${JAVA_JAR_FILENAME}" || die "jar update failed"
48 java-pkg-simple_src_install
49 java-pkg_dolauncher ${MY_PN}-${SLOT} --main \
50 org.eclipse.jdt.internal.compiler.batch.Main
54 einfo "To select between slots of ECJ..."
55 einfo " # eselect ecj"
57 eselect ecj update ecj-${SLOT}