summaryrefslogtreecommitdiff
path: root/dev-java/eclipse-ecj
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/eclipse-ecj')
-rw-r--r--dev-java/eclipse-ecj/Manifest3
-rw-r--r--dev-java/eclipse-ecj/eclipse-ecj-4.32.ebuild73
-rw-r--r--dev-java/eclipse-ecj/files/ecj-4.327
3 files changed, 83 insertions, 0 deletions
diff --git a/dev-java/eclipse-ecj/Manifest b/dev-java/eclipse-ecj/Manifest
index b5323c4c2a5d..a5e8a0603783 100644
--- a/dev-java/eclipse-ecj/Manifest
+++ b/dev-java/eclipse-ecj/Manifest
@@ -3,15 +3,18 @@ AUX ecj-4.26 390 BLAKE2B 42e06c8114370763caeee14aee4e4471ba5781f2257abab6ba69ff8
AUX ecj-4.27 365 BLAKE2B 02271871307577f036952560f15bcd6261179d637892894c6b3fe7b5422e6f5c9b8967895a1df2a628f59824b7a3bc685d41ac4ce312c517b71510e0d55c5c7c SHA512 46509e4c5532f36f2f12c062ed5ab3ea8b0edd71893d9523499f5df46b6357b77f24cf244171ac2f7648b0771d80df29998060bdc5f1f74aa628c15a22463c41
AUX ecj-4.30 402 BLAKE2B e95fd45bcd60440c8b11fc8f0e34eaf40674cd004939ffcaea392f3e899f9afaae7bf1dd21525099a93012338363a4a1450d69645aa9bb91153a41dc25985e6e SHA512 50623fe3dff25d0451e4dbb8e1ab14c7f5eb566adc999eeb1612b1d4e2672a5289f6a2383a40465884d26b702efc9cd7d099843c8ea4af5d23511dfa1cae5e67
AUX ecj-4.31 383 BLAKE2B 9e24fde1df96bb18397386d2a371b8a5b6b2501cfb460379c1ce2e14ebb31ee5d80863643b47e46dd01763a9b104cb5097b283d8b2d13ae6158ffa10d906d235 SHA512 4a636356192836067d67096af43cbf1811cba211a7918e4ce27ef87cd192e6bc0246febd9278a78682aa504b215f8524de8779d920b15eea87c677496059f13b
+AUX ecj-4.32 383 BLAKE2B d7e1238f47e46d61d7ba5f153590425bb173d47468ac101d7ac3f73e378269e4b094f160116fb3cd1da4ad4050daf0347505e218cd66d73eb252c68d764b0eff SHA512 641726c40d9d31578498b82b67f4c935d99ec724ab0def5340d7b48c3c380ec479d2d5f7b3265f860f356c0f4f2801a7a9297fc9544da4a2bd470c1e26a5d969
AUX eclipse-ecj-4.31-java21.patch 736 BLAKE2B dbf787118caeeff454b75e9a1f0e6c66cc3c636ad5271694778901f35d2835303273889f70c4463370bb69e02d120c965ae123c980b485b2e9a3886cec7fbc1f SHA512 03b8e67dc30f802d956dbaa262452ede4b880317193127ad45ccf3829ba15bbbf1239c7aff253c3bc3d358cb2c9bea6a342fa0518338691bfae4dad9d20b5f37
DIST ecjsrc-4.20.jar 2255761 BLAKE2B 42e16e1bd3d90b8d9bf3e57f83b3e06f2857a20db3e3ac065ce39e95fc47e75de33186115c36dede691bc37fd55fa8123f2220d13f3d5819404f5de702b10fd2 SHA512 fb27c0a37ed5cdfdcdbc904d067bfdd0477ddfd873a6cd8477d3b473734fd0e37329f0e9ab85dc5f89994d68d9886a488bd88568bc00e25f54c1a5a468dc1384
DIST ecjsrc-4.26.jar 2347137 BLAKE2B 22e627178fe35f34cee7ba63e740ef2699bca691d460c81e97c2f18c197042cc0d901eea988331b3fa2ac7daa87daef9ee90bc1e62901935a6f2f3fe5f1e8534 SHA512 e53534160e6a2cdc8c5db7caec617d5671eb59954a86b9dcb36a514024c3205167c8416560796ce61d1aa188f551660f3bfd8eab46fefe9111c8f0b7a977342f
DIST ecjsrc-4.27.jar 2301849 BLAKE2B 77f35d1a9f36086e8515dc9437894b84c88fd440bd48b5248b141191bc04babfcf1af288643ed21e41cb054bdcfa94125a7eb139cbec9ead97e366c65c1dbe95 SHA512 689fe9ed2327f1d0e89fd13c3543369e0e13d7f15f521fc7667352e7f8d7f0b48107bc180ac16cfad375449cc2b61de74bc8ca56c95cab9ef172260a9d3a530b
DIST ecjsrc-4.30.jar 2330181 BLAKE2B 7f3ba7f8dbfcaea9f8bbcdb8161ae8f164e2bf3469cf2242b6b7df5d375c98322f810b9c6de7209f622740a2cc61704915d255559bd376bf158b114e30a17d40 SHA512 ddc1569082fad0dcf91a9d41d5ef5f2f694f007e1378af5f5f28893aeb91e99acef91af59c762010eba071fa8b8b8a9d367b08e23f91b8c73ceacc6e6150bb23
DIST ecjsrc-4.31.jar 2347993 BLAKE2B edb1a525646fc3152661a6583ab5c50a1dd7f06dac0b7cdae0913843e0ed6ef2c9862889351557857140c79c479505aeca154958b649d05ace6a5b83f6ccac45 SHA512 3e72ae5e5209dd80f7b3f208aeb0a6eece28ab416c56eedd590c67724c6a905b39b8f27a41394e3cf6a96acc16a9c7dd91d12df9651bc289839648036ac2d430
+DIST ecjsrc-4.32.jar 2357386 BLAKE2B f6c440b13eb3cd014f317d9232a7db713621b3bcb902bc385561fc4ce68711c9fde021920b535fafb4db7e93d515e23c9d57ac3506539915e1ba33ce37a4570a SHA512 e45cfe0df73f5ec83efeeb12785c2efab9977e927de8766507668f104fea4fefeaa59695988d977734fee4ccd43da43da798976177bb3b15a87ca2966e448d9e
EBUILD eclipse-ecj-4.20.ebuild 1595 BLAKE2B 4a50fc15445c4f181bfeddff056bc4bb98c6b5283e0708e67acad46d1a73b1490cc77aeaa69f12703383c08ef04a7fba6a97da10961cc3674c5205aba5b9501f SHA512 78f1fbe161290048f71c19df3b0a941e12215cb7c23a31f773af0d9b6a876efd23cf8138793a108fe515bdc3b70b22227e7d3f59c7c9eb3da23a7f2073b27722
EBUILD eclipse-ecj-4.26-r2.ebuild 1824 BLAKE2B dea06a3376512b90d00b46241d110a0853b5e31f37bea1c149b5ad08478f8b63ea0c6d028c8abe8d2120a19d673747c63ee3bcc0313155fa28d5c8a9fc179174 SHA512 10ee16cda0c1e202fcec23b0c547725c3a357afb0e95e6b0030d7430b2ae1836287b438b203906f4014b478492763700fba5bc9250ae791e44b1d74ffc98ec97
EBUILD eclipse-ecj-4.27-r1.ebuild 1836 BLAKE2B d94d7a885cfe64ddb4b3f43d22b5cda07a1f05e5e6036752f258d555d20ec844c59b7b9190d011d3ec8c0d9b69d18ad9e950432f9ad938fb6161d26ae048beb3 SHA512 8974f5c5ddb45a11060a83d48416bd0483bca7e11020adb93ae17ebee7c80075610ed53dc0b48d013af9c3f322cb107e3e763a37a0020be671eedf289a7a0333
EBUILD eclipse-ecj-4.30-r1.ebuild 2295 BLAKE2B 26738da8b2cc0989169bf6f21a3b367dde4c41423b6f08de7b6d759f3c02817ef5f4ec4b6db74c6ab44fd6a04ef0db00e405a3693ae454ac83e0b0056a22f77e SHA512 4b7312e2eecc59d058071744d71a99acd67d696ff417f86d92b2640ed9f91a70e9b42c381d0c16a20e273e401a96181223ee624584a7164c5339984bd063d831
EBUILD eclipse-ecj-4.31.ebuild 2097 BLAKE2B 4e09212d61b2da9479d148bc8eaeccf8479d5f42884366599b4c5d3c107f437a804f8377ff9fe5cb63d9caa63fc3ffda366f7350bffcf982ea0dc079b00a357b SHA512 c37f91ea971d4805b70e60c69707968bdb05b6eeec2f146526aa6eed7f4fae428554cd02894bace8d087f327fd707164e7b77bfb165ca5cff10b80a8fe97f6d4
+EBUILD eclipse-ecj-4.32.ebuild 2027 BLAKE2B c3bc2e91e8a52d830a8971890237568d5b6ba67d28aaa4ac9112559b56b6e8b2f34ff9e423a27ca57d3e222c6c50627488e65c25ccd38c1cd21e8c494f646fd8 SHA512 73475b0b73ddf0b30d46cf57d3757e94576b3a4eb9564ec09e7736b574946148161257c693b0cf2ca9f20cb2bebb7b18cccee8a4c51f15c5c3f41e06965c238f
MISC metadata.xml 637 BLAKE2B fd8214d9377a8a4101b3fd5041e17fbed9c6f5ffc8586b328db92120fc780c16d4b1152d4137a2e5554f77f60e9fe24ea3d133fc3469a4e78da7e84244bcb951 SHA512 0a0f6d8bcac2bef3a74e6328a65ecab490fcd437e8107fd1087d17ca158da29d1044d9e06d05e2781e97df88e6aec30db185c97bb9b2bdbd9b257332ce0232e0
diff --git a/dev-java/eclipse-ecj/eclipse-ecj-4.32.ebuild b/dev-java/eclipse-ecj/eclipse-ecj-4.32.ebuild
new file mode 100644
index 000000000000..3eefeac04654
--- /dev/null
+++ b/dev-java/eclipse-ecj/eclipse-ecj-4.32.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+# 3.38.0 according to
+# https://github.com/eclipse-jdt/eclipse.jdt.core/blob/R4_32/org.eclipse.jdt.core.compiler.batch/pom.xml#L20
+MAVEN_ID="org.eclipse.jdt:org.eclipse.jdt.core.compiler.batch:3.38.0"
+
+inherit java-pkg-2 java-pkg-simple prefix
+
+DMF="R-${PV/_rc/RC}-202406010610"
+
+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"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+SLOT="4.32"
+
+BDEPEND="app-arch/unzip"
+COMMON_DEP="app-eselect/eselect-java"
+# ElementsImpl9.java:206: error:
+# method does not override or implement a method from a supertype
+DEPEND="${COMMON_DEP}
+ >=dev-java/ant-1.10.14-r3:0
+ >=virtual/jdk-21:*"
+# Parser.java:1095: error:
+# pattern matching in instanceof is not supported in -source 11
+RDEPEND="${COMMON_DEP}
+ >=virtual/jre-17:*"
+
+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' \
+ | 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
+}
diff --git a/dev-java/eclipse-ecj/files/ecj-4.32 b/dev-java/eclipse-ecj/files/ecj-4.32
new file mode 100644
index 000000000000..8f4574ac16e1
--- /dev/null
+++ b/dev-java/eclipse-ecj/files/ecj-4.32
@@ -0,0 +1,7 @@
+JAVAC="@GENTOO_PORTAGE_EPREFIX@/usr/bin/ecj-4.32"
+PACKAGE="=dev-java/eclipse-ecj-4.32*"
+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 20 21 22"
+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 20 21 22"
+ANT_BUILD_COMPILER="org.eclipse.jdt.core.JDTCompilerAdapter"
+ANT_BUILD_COMPILER_DEPS="eclipse-ecj-4.32"
+GENERATION="2"