dev-java/eclipse-ecj: add 4.35

Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: 28a0edbf92
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2025-03-12 07:53:45 +01:00
committed by Miroslav Šulc
parent 84fafb1ae8
commit 2a3fb0fb56
2 changed files with 68 additions and 0 deletions

View File

@@ -6,3 +6,4 @@ DIST ecjsrc-4.31.jar 2347993 BLAKE2B edb1a525646fc3152661a6583ab5c50a1dd7f06dac0
DIST ecjsrc-4.32.jar 2357386 BLAKE2B f6c440b13eb3cd014f317d9232a7db713621b3bcb902bc385561fc4ce68711c9fde021920b535fafb4db7e93d515e23c9d57ac3506539915e1ba33ce37a4570a SHA512 e45cfe0df73f5ec83efeeb12785c2efab9977e927de8766507668f104fea4fefeaa59695988d977734fee4ccd43da43da798976177bb3b15a87ca2966e448d9e
DIST ecjsrc-4.33.jar 2361539 BLAKE2B 1bfd2f7d8e9f79bceebec337ddff651a42d133015be8749076d6a67f60d7fbf8e56e658b1535f52fe7f736b6e59eff6187ee94c6c260b399145c1018ae388e35 SHA512 48823264ff18b666b6d350c58e8b3b7d0429d2c5de061cee4c88894da2d44049bf0fcf13ca20d848797ef0591fccd028ac687ec072b8eb02deb5f57b7e560677
DIST ecjsrc-4.34.jar 2369991 BLAKE2B 61ab2deff1753864b1b69eafb7ed99134a15d0e467ad91bc9ca8a74ca607ae2f3831b8e5af11fa2a584232302b7af510d043445e86bd327e09153666e8f0103e SHA512 6bf4f7c1630d81901ff8ed2345371cadcaf7f62c4edc7ade3211c0c254a2099c4e9506563c27c49be966765899f447fc280ff4ca411e636e269fca0f687a502c
DIST ecjsrc-4.35.jar 2365106 BLAKE2B 2f9f50e8b3e2744ed1ca01a9717502aeab431bba225b021d334a432f64c1cb13985462fc7df1dc8803ba55149f2fa28a8973767e511594add72973d4c5d9ab63 SHA512 4e78df003b446fbf4fd74f4e4e810fb529ada751858007519bd0341f9ef256dcd9ac193b1af5cf652de19839e347b45fbafcdb9babeee0b67c54a59fc6716617

View File

@@ -0,0 +1,67 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
JAVA_PKG_IUSE="doc source"
# 3.41.0 according to
# https://github.com/eclipse-jdt/eclipse.jdt.core/blob/R4_35/org.eclipse.jdt.core.compiler.batch/pom.xml
MAVEN_ID="org.eclipse.jdt:org.eclipse.jdt.core.compiler.batch:3.41.0"
inherit java-pkg-2 java-pkg-simple
DMF="R-${PV/_rc/RC}-202502280140"
DESCRIPTION="Eclipse Compiler for Java"
HOMEPAGE="https://projects.eclipse.org/projects/eclipse.jdt"
SRC_URI="https://download.eclipse.org/eclipse/downloads/drops4/${DMF}/ecjsrc-${PV/_rc/RC}.jar"
S="${WORKDIR}"
LICENSE="EPL-1.0"
SLOT="4.35"
# KEYWORDS="~amd64 ~arm64 ~ppc64" # Seems to depend on higher jdk which is not LTS
BDEPEND="app-arch/unzip"
# restrict to >=virtual/jdk-23:*
# ./org/eclipse/jdt/internal/compiler/apt/model/ElementsImpl9.java:347: error: cannot find symbol
# public DocCommentKind getDocCommentKind(Element e) {
# ^
# symbol: class DocCommentKind
# location: class ElementsImpl9
DEPEND="
>=dev-java/ant-1.10.15:0
>=virtual/jdk-23:*
"
# restrict to >=virtual/jre-21:*
# ./org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java:722:
# error: unconditional patterns in instanceof are not supported in -source 17
# return isRecord() && components() instanceof RecordComponentBinding [] components && components.length > 0;
# ^
# (use -source 21 or higher to enable unconditional patterns in instanceof)
RDEPEND=">=virtual/jre-21:*"
DOCS=( org/eclipse/jdt/core/README.md )
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
# Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
rm META-INF/ECLIPSE_* || die
mkdir "${JAVA_RESOURCE_DIRS}" || die
find -type f \
! -name '*.java' \
! -name 'package.html' \
! -path '*/grammar/*' \
! -path '*/OSGI-INF/*' |
xargs cp --parent -t "${JAVA_RESOURCE_DIRS}" || die
}