4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
6 |
JAVA_PKG_IUSE="doc source"
|
7 |
|
# 3.38.0 according to
|
8 |
|
# https://github.com/eclipse-jdt/eclipse.jdt.core/blob/R4_32/org.eclipse.jdt.core.compiler.batch/pom.xml#L20
|
9 |
|
MAVEN_ID="org.eclipse.jdt:org.eclipse.jdt.core.compiler.batch:3.38.0"
|
|
7 |
# 3.41.0 according to
|
|
8 |
# https://github.com/eclipse-jdt/eclipse.jdt.core/blob/R4_35/org.eclipse.jdt.core.compiler.batch/pom.xml
|
|
9 |
MAVEN_ID="org.eclipse.jdt:org.eclipse.jdt.core.compiler.batch:3.41.0"
|
10 |
10 |
|
11 |
11 |
inherit java-pkg-2 java-pkg-simple
|
12 |
12 |
|
13 |
|
DMF="R-${PV/_rc/RC}-202409030240"
|
|
13 |
DMF="R-${PV/_rc/RC}-202502280140"
|
14 |
14 |
|
15 |
15 |
DESCRIPTION="Eclipse Compiler for Java"
|
16 |
16 |
HOMEPAGE="https://projects.eclipse.org/projects/eclipse.jdt"
|
... | ... | |
18 |
18 |
S="${WORKDIR}"
|
19 |
19 |
|
20 |
20 |
LICENSE="EPL-1.0"
|
21 |
|
SLOT="4.33"
|
22 |
|
KEYWORDS="amd64 ~arm64 ~ppc64"
|
|
21 |
SLOT="4.35"
|
|
22 |
# KEYWORDS="~amd64 ~arm64 ~ppc64" # Seems to depend on higher jdk which is not LTS
|
23 |
23 |
|
24 |
24 |
BDEPEND="app-arch/unzip"
|
25 |
|
COMMON_DEP="app-eselect/eselect-java"
|
26 |
|
# ElementsImpl9.java:206: error:
|
27 |
|
# method does not override or implement a method from a supertype
|
28 |
|
DEPEND="${COMMON_DEP}
|
29 |
|
>=dev-java/ant-1.10.14-r3:0
|
30 |
|
>=virtual/jdk-21:*"
|
31 |
|
# Parser.java:1095: error:
|
32 |
|
# pattern matching in instanceof is not supported in -source 11
|
33 |
|
RDEPEND="${COMMON_DEP}
|
34 |
|
>=virtual/jre-17:*"
|
|
25 |
|
|
26 |
# restrict to >=virtual/jdk-23:*
|
|
27 |
# ./org/eclipse/jdt/internal/compiler/apt/model/ElementsImpl9.java:347: error: cannot find symbol
|
|
28 |
# public DocCommentKind getDocCommentKind(Element e) {
|
|
29 |
# ^
|
|
30 |
# symbol: class DocCommentKind
|
|
31 |
# location: class ElementsImpl9
|
|
32 |
DEPEND="
|
|
33 |
>=dev-java/ant-1.10.15:0
|
|
34 |
>=virtual/jdk-23:*
|
|
35 |
"
|
|
36 |
|
|
37 |
# restrict to >=virtual/jre-21:*
|
|
38 |
# ./org/eclipse/jdt/internal/compiler/lookup/TypeBinding.java:722:
|
|
39 |
# error: unconditional patterns in instanceof are not supported in -source 17
|
|
40 |
# return isRecord() && components() instanceof RecordComponentBinding [] components && components.length > 0;
|
|
41 |
# ^
|
|
42 |
# (use -source 21 or higher to enable unconditional patterns in instanceof)
|
|
43 |
RDEPEND=">=virtual/jre-21:*"
|
35 |
44 |
|
36 |
45 |
DOCS=( org/eclipse/jdt/core/README.md )
|
37 |
46 |
|
... | ... | |
51 |
60 |
mkdir "${JAVA_RESOURCE_DIRS}" || die
|
52 |
61 |
find -type f \
|
53 |
62 |
! -name '*.java' \
|
54 |
|
| xargs cp --parent -t "${JAVA_RESOURCE_DIRS}" || die
|
|
63 |
! -name 'package.html' \
|
|
64 |
! -path '*/grammar/*' \
|
|
65 |
! -path '*/OSGI-INF/*' |
|
|
66 |
xargs cp --parent -t "${JAVA_RESOURCE_DIRS}" || die
|
55 |
67 |
}
|