diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-15 11:54:41 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-15 11:54:41 +0000 |
commit | 046c3c0984fd20387a9f86cdd0842fd81e70d94f (patch) | |
tree | cc10a34db3ff175a68ebd1f398672156c9aad0e9 /dev-java/eclipse-ecj | |
parent | bdc9b55c978e3939e16252e66e83950cbecbf77c (diff) |
gentoo auto-resync : 15:01:2023 - 11:54:40
Diffstat (limited to 'dev-java/eclipse-ecj')
-rw-r--r-- | dev-java/eclipse-ecj/Manifest | 2 | ||||
-rw-r--r-- | dev-java/eclipse-ecj/eclipse-ecj-4.26.ebuild | 72 |
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-java/eclipse-ecj/Manifest b/dev-java/eclipse-ecj/Manifest index c2b0d68ac507..69ab62dfb307 100644 --- a/dev-java/eclipse-ecj/Manifest +++ b/dev-java/eclipse-ecj/Manifest @@ -1,7 +1,9 @@ DIST ecjsrc-4.15.jar 2166228 BLAKE2B 794e0ba1a19b325e2dd8ad0b288ccbe04866627670b50d39dd327c13fe1fac56200eb3a6c1c3d1af043cad795508b9b714a5243049671414b5a62a97725d3297 SHA512 ada55b2522cf26570f0cd43f415eb5cf20e6840f83dadc72e1ae474ebf10eadca73f9fa3d1db51e13fd2762c38cd3e3567db3c7840d43ae3d8665ebe35e1889d DIST ecjsrc-4.22.jar 2358194 BLAKE2B e091050297b4556c38adfb01fb1e43e13644af1b3c2b30a93cfe3fdbb55050a0f7709081c7406d384d7141de67a954253aa26cdbb45f56327b16ee5ddd5e82a7 SHA512 cd52a72aecded032625ee83581ac565e1e96f8d26ecfc76e982274fd3d6238f1e7f22576855589b021e9a5ef67686b9b75e010c4e2033a8b7f6e7c9b1ff7eb4c DIST ecjsrc-4.25.jar 2340770 BLAKE2B e1e82356984a72e7ebbd5ace2ccbaf885c7acfdaf410b2386fa0a143f85e4431cfa2f5d254197eb56203c48505bc7dbe264664815b572c725ac5814645254776 SHA512 b475d58ef6a03e4bbf7e0f440edcbdd61e0548f68e48c7762973f60850a14fc1c234bb9a41be404ed06db14a273646f1dc5ad7effd4c7146b46f40a52850f236 +DIST ecjsrc-4.26.jar 2347137 BLAKE2B 22e627178fe35f34cee7ba63e740ef2699bca691d460c81e97c2f18c197042cc0d901eea988331b3fa2ac7daa87daef9ee90bc1e62901935a6f2f3fe5f1e8534 SHA512 e53534160e6a2cdc8c5db7caec617d5671eb59954a86b9dcb36a514024c3205167c8416560796ce61d1aa188f551660f3bfd8eab46fefe9111c8f0b7a977342f EBUILD eclipse-ecj-4.15.ebuild 1737 BLAKE2B de3aff3c46cf68494920930ffbf337cc79864d1adaef1c603f1c9ea8ce168823e8ba772a0a616c77ab7dafc596e37687e6460db89ee61c4127c41ed739b2d914 SHA512 6a0bd08a4aac020bc4f299907777d40673128798bd093b3bc03602aa86bb7c3436d7400ba0dc31c58ff0703d6357ac691f909dd2358a773e0b548139d251a8e7 EBUILD eclipse-ecj-4.22-r1.ebuild 1693 BLAKE2B 4b19af6eef3b9626b1451391c09836c764232352071cac79e82064c2a4a9be93b6f689845f38e8ff2c191c81e7a3a230f7927cd1fdb19115a99265f1720dbe5d SHA512 27e74aee2c6c828ed686ef17a82976f3ec6841d878384af29b10c8ee91792446153603cd8e5383b669564122f334310846ce7a72d592b2361ac02a60e64b65d4 EBUILD eclipse-ecj-4.25.ebuild 1693 BLAKE2B f8aa316f2e366fcf65564005f11c256c3b52608b027981ef93dc344aaba0ab1a7bbd8bc0ccc7b0ddb026c1f1fdafbc5764014069ac6802739382f1b6b0234209 SHA512 9d178cc5e5ec4f5ca35badf455186dd4071ab5b67a53536b9f03ef73c66320c5cdb064b39e3dbc3771a63ad69a8071dc6d8311d682b35b1889ada2c7a3c71e8e +EBUILD eclipse-ecj-4.26.ebuild 1695 BLAKE2B a7b1dab0385420d20b3127501e3a55d3e2fab801c80ffa4c1e237936ca35433703cdb0c992235ae949f6692328c22ddd9aedb17d84c4564ed9661cf78ca7ed02 SHA512 6a311a15f3ec9a1246271d34bae8f78b545e4e219baee8e0d91bd8c34b193f20ff4e2312360dad7c62bf416c7540e61ad8fa28813d8f55ea5269116e5638df53 MISC metadata.xml 657 BLAKE2B ed8b1b4598051b4191bad5e92df382f1e0910f7aa6888d9df4dedef6929a3d8933c2951c98e8f8af8750f176ff541608d8db5d311e06c721b14ce1703a95a00e SHA512 ad91b4e46f609db5c5abc145feaea99dc0e6f4297ee1f6532ff1001a991775679e8f53ef91e823d61a614e6d77fbc18637469ea1869d8f82bab352a69c6fbdaf diff --git a/dev-java/eclipse-ecj/eclipse-ecj-4.26.ebuild b/dev-java/eclipse-ecj/eclipse-ecj-4.26.ebuild new file mode 100644 index 000000000000..d4a38077e777 --- /dev/null +++ b/dev-java/eclipse-ecj/eclipse-ecj-4.26.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2023 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 + +MY_PN="ecj" +DMF="R-${PV}-202211231800" + +DESCRIPTION="Eclipse Compiler for Java" +HOMEPAGE="https://www.eclipse.org/" +SRC_URI="https://download.eclipse.org/eclipse/downloads/drops4/${DMF}/${MY_PN}src-${PV}.jar" + +LICENSE="EPL-1.0" +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris" +SLOT="4.26" +IUSE="+ant" + +COMMON_DEP=" + app-eselect/eselect-java + dev-java/ant-core:0" +RDEPEND="${COMMON_DEP} + >=virtual/jre-11:*" +DEPEND="${COMMON_DEP} + >=virtual/jdk-17:* + app-arch/unzip" +PDEPEND=" + ant? ( ~dev-java/ant-eclipse-ecj-${PV} )" + +JAVA_JAR_FILENAME="${MY_PN}.jar" +JAVA_GENTOO_CLASSPATH="ant-core" + +S="${WORKDIR}" + +# See https://bugs.eclipse.org/bugs/show_bug.cgi?id=479134 for details +src_prepare() { + default + + # These have their own package. + rm org/eclipse/jdt/core/JDTCompilerAdapter.java || die + rm -r org/eclipse/jdt/internal/antadapter || die + + # JavaCore is not distributed in the jar + sed -i -e '/import org.eclipse.jdt.core.JavaCore;/d' \ + -e 's|JavaCore.getOptions()||g' \ + org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java +} + +src_compile() { + java-pkg-simple_src_compile + find org META-INF -type f ! -name "*.java" | xargs jar uvf "${JAVA_JAR_FILENAME}" || die "jar update failed" +} + +src_install() { + java-pkg-simple_src_install + java-pkg_dolauncher ${MY_PN}-${SLOT} --main \ + org.eclipse.jdt.internal.compiler.batch.Main +} + +pkg_postinst() { + einfo "To select between slots of ECJ..." + einfo " # eselect ecj" + + eselect ecj update ecj-${SLOT} +} + +pkg_postrm() { + eselect ecj update +} |