mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-java/eclipse-ecj: add 4.26-r1 for >=dev-java/ant-1.10.14
Includes ant-eclipse-ecj Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
committed by
Miroslav Šulc
parent
7ccd417e1c
commit
af2eaa9751
65
dev-java/eclipse-ecj/eclipse-ecj-4.26-r1.ebuild
Normal file
65
dev-java/eclipse-ecj/eclipse-ecj-4.26-r1.ebuild
Normal file
@@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-pkg-simple prefix
|
||||
|
||||
DMF="R-${PV}-202211231800"
|
||||
|
||||
DESCRIPTION="Eclipse Compiler for Java"
|
||||
HOMEPAGE="https://www.eclipse.org/"
|
||||
SRC_URI="https://archive.eclipse.org/eclipse/downloads/drops4/${DMF}/ecjsrc-${PV}.jar"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64"
|
||||
SLOT="4.26"
|
||||
|
||||
BDEPEND="
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
"
|
||||
COMMON_DEP="app-eselect/eselect-java"
|
||||
DEPEND="${COMMON_DEP}
|
||||
>=dev-java/ant-1.10.14:0
|
||||
>=virtual/jdk-17:*"
|
||||
RDEPEND="${COMMON_DEP}
|
||||
!dev-java/ant-eclipse-ecj:4.26
|
||||
>=virtual/jre-11:*"
|
||||
|
||||
JAVA_AUTOMATIC_MODULE_NAME="org.eclipse.jdt.core.compiler.batch"
|
||||
JAVA_CLASSPATH_EXTRA="ant"
|
||||
JAVA_JAR_FILENAME="ecj.jar"
|
||||
JAVA_LAUNCHER_FILENAME="ecj-${SLOT}"
|
||||
JAVA_MAIN_CLASS="org.eclipse.jdt.internal.compiler.batch.Main"
|
||||
JAVA_RESOURCE_DIRS="res"
|
||||
|
||||
src_prepare() {
|
||||
java-pkg-2_src_prepare
|
||||
|
||||
mkdir "${JAVA_RESOURCE_DIRS}" || die
|
||||
find org META-INF -type f \
|
||||
! -name '*.java' \
|
||||
| xargs cp --parent -t "${JAVA_RESOURCE_DIRS}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg-simple_src_install
|
||||
insinto /usr/share/java-config-2/compiler
|
||||
doins "${FILESDIR}/ecj-${SLOT}"
|
||||
eprefixify "${ED}"/usr/share/java-config-2/compiler/ecj-${SLOT}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "To select between slots of ECJ..."
|
||||
einfo " # eselect ecj"
|
||||
|
||||
eselect ecj update ecj-${SLOT}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ecj update
|
||||
}
|
||||
7
dev-java/eclipse-ecj/files/ecj-4.26
Normal file
7
dev-java/eclipse-ecj/files/ecj-4.26
Normal file
@@ -0,0 +1,7 @@
|
||||
JAVAC="@GENTOO_PORTAGE_EPREFIX@/usr/bin/ecj-4.25"
|
||||
PACKAGE="=dev-java/ant-eclipse-ecj-4.25*"
|
||||
SUPPORTED_TARGET="1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 9 10 11 12 13 14 15 16 17 18 19"
|
||||
SUPPORTED_SOURCE="1.3 1.4 1.5 1.6 1.7 1.8 9 10 11 12 13 14 15 16 17 18 19"
|
||||
ANT_BUILD_COMPILER="org.eclipse.jdt.core.JDTCompilerAdapter"
|
||||
ANT_BUILD_COMPILER_DEPS="eclipse-ecj-4.26,ant-eclipse-ecj-4.26"
|
||||
GENERATION="2"
|
||||
Reference in New Issue
Block a user