diff options
author | Yuan Liao <liaoyuan@gmail.com> | 2022-01-28 13:22:19 -0800 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2022-02-04 09:17:41 +0100 |
commit | 9bf289c4c6372a3ab19c1af18800af8f492d9a21 (patch) | |
tree | 871034ae83e96d2088c93dd84b1ab8ab8054b117 /dev-java | |
parent | dev-java/antlr-tool: Add 4.9.3 (diff) | |
download | gentoo-9bf289c4c6372a3ab19c1af18800af8f492d9a21.tar.gz gentoo-9bf289c4c6372a3ab19c1af18800af8f492d9a21.tar.bz2 gentoo-9bf289c4c6372a3ab19c1af18800af8f492d9a21.zip |
dev-java/antlr: Add 4.9.3
Closes: https://bugs.gentoo.org/605036
Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24006
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/antlr/Manifest | 1 | ||||
-rw-r--r-- | dev-java/antlr/antlr-4.9.3.ebuild | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-java/antlr/Manifest b/dev-java/antlr/Manifest index b36664559005..b1d446eb0c3b 100644 --- a/dev-java/antlr/Manifest +++ b/dev-java/antlr/Manifest @@ -7,3 +7,4 @@ DIST antlr-4.5.1-complete.jar 1478820 BLAKE2B 7f6ab8d1bad6b75ede4930fe594a3302bd DIST antlr-4.5.1.tar.gz 6158475 BLAKE2B 17cf84a60393c786d8b8addd93b87998178cea55f2a6bcc4ca244655a6d2aacc15226111b00fc0a8a6424f8a7c6eb3bfa49172e3b2149714a5c0c6ad69943cd9 SHA512 949306b0ee87a0c002664ee7ac0f32c43385c501b4e28f181417559ce09b07cc12a8441c3bb81f8a72feba3d4ccc693a3c03bcccad7fc81223cddb19e10468a9 DIST antlr-4.5.3-complete.jar 1485121 BLAKE2B 84d41b17bd30dfad7a79e9759802c76d986299cc592c7b2c859225ed00989bb2709b14635ee40c8ecfe79e2441ecb697b2d17b7e6e789a7549868b93a3876f77 SHA512 53dcadf3007c9bdbeb391ea72fb9bab7c086fa0b9d1d93b83050b2ebb726c2f52743b5ba944c68f6da513d915ab5e8721676d74d823c32484928ccad2a28f1e4 DIST antlr-4.5.3.tar.gz 6760401 BLAKE2B d436b4a964c527e230912a0ba23146af199478570cf5491eadeb5025e814642658cc71d71e6a09b5df3cc18e9b8991abf930cab70677d117a112e0922e046e07 SHA512 d0e61baebb338e5e4e8eaf87aa6ef52a568ec51bc86bc07acf8f82be0c173ea4f0f85978dfd034c2642505888c0849663f6b6fb030c4c19e0571f29277fb54f7 +DIST antlr-4.9.3.tar.gz 4640242 BLAKE2B fb58f5e533051cb2c439c32f0462c1d463c99df862ba7e1a37a1c61378ab36a9edb9525c2a342de5b517da6f02d8291de5976c550932314f3464aad1a778afb9 SHA512 61452404c9639b5a0908cda16605f17c0fed0c9adfc3278c7408f9971420e9d1fe8f9e974e0826c2e3e780fdd83324094c0246cd5b28fa63f5686b094ea08127 diff --git a/dev-java/antlr/antlr-4.9.3.ebuild b/dev-java/antlr/antlr-4.9.3.ebuild new file mode 100644 index 000000000000..7bbb32776001 --- /dev/null +++ b/dev-java/antlr/antlr-4.9.3.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit java-pkg-2 + +DESCRIPTION="A parser generator for many languages" +HOMEPAGE="https://www.antlr.org/" +# Reuse tarball for DOCS +SRC_URI="https://github.com/${PN}/${PN}4/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="4" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +CP_DEPEND=" + ~dev-java/antlr-runtime-${PV}:${SLOT} + ~dev-java/antlr-tool-${PV}:${SLOT} +" + +DEPEND=" + >=virtual/jdk-1.8:* + ${CP_DEPEND} +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CP_DEPEND} +" + +S="${WORKDIR}/${PN}4-${PV}" + +DOCS=( CHANGES.txt CONTRIBUTING.md contributors.txt README.md doc ) + +src_compile() { + : +} + +src_install() { + java-pkg_regjar "$(java-pkg_getjar "antlr-runtime-${SLOT}" antlr-runtime.jar)" + java-pkg_regjar "$(java-pkg_getjar "antlr-tool-${SLOT}" antlr-tool.jar)" + + java-pkg_dolauncher "${PN}${SLOT}" --main org.antlr.v4.Tool + einstalldocs # https://bugs.gentoo.org/789582 +} + +pkg_postinst() { + # If upgrading from a version of this slot that installs JARs, + # display a message about submodule split + local changed_ver="4.9.3" + local should_show_msg + for replaced_ver in ${REPLACING_VERSIONS}; do + if ver_test "${replaced_ver}" -lt "${changed_ver}"; then + should_show_msg=1 + break + fi + done + [[ "${should_show_msg}" ]] || return + elog "Since version ${changed_ver}, ${PN}-${SLOT} no longer installs JARs." + elog "Please find the JARs from files installed by submodule packages" + elog "antlr-runtime-${SLOT} and antlr-tool-${SLOT}." +} |