diff options
author | Yuan Liao <liaoyuan@gmail.com> | 2022-04-09 23:39:30 -0700 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2022-04-11 08:14:47 +0200 |
commit | ddf5a2cd99f5b0c2190ea361c68b7b02fc9230e9 (patch) | |
tree | b4331e396ddf687b065d8f1bff2ab3879ccf40f5 /dev-java/antlr | |
parent | dev-java/antlr-tool: Add 3.5.3 (diff) | |
download | gentoo-ddf5a2cd99f5b0c2190ea361c68b7b02fc9230e9.tar.gz gentoo-ddf5a2cd99f5b0c2190ea361c68b7b02fc9230e9.tar.bz2 gentoo-ddf5a2cd99f5b0c2190ea361c68b7b02fc9230e9.zip |
dev-java/antlr: Add 3.5.3
Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24977
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/antlr')
-rw-r--r-- | dev-java/antlr/Manifest | 1 | ||||
-rw-r--r-- | dev-java/antlr/antlr-3.5.3.ebuild | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-java/antlr/Manifest b/dev-java/antlr/Manifest index 1de9662c4657..49def7a90a7c 100644 --- a/dev-java/antlr/Manifest +++ b/dev-java/antlr/Manifest @@ -2,4 +2,5 @@ DIST antlr-2.7.7.tar.gz 1816180 BLAKE2B 3a9a51070f8651befeb4d22be344b544e119db34 DIST antlr-3.2.jar 1928009 BLAKE2B 9c56b0142abdb7d0caabebbae12618a665f91001e2f472519549a65b8601b81fcca485898c7420087a7b631351eb26e4b98589d7284960efcc3c65155919fd2a SHA512 25a61404c4b41e48eeaed49d41122f9400092248a10eb776d75ce3513295870eca1acc4b06c74925284a27cc64ca0506e34de39fb91996f09727cc5cc72dd9a6 DIST antlr-3.2.tar.gz 837320 BLAKE2B 3addcfed45e67a7f8f3841a890be418626d93229dc326fe4670c6b145a457203a26f01723695573692c65bb6c376349a8d8cd852b339b1f6da7b71a52e14bb4f SHA512 8984221cd89253c033a4596dd56cd51b297393a53b4682f5ab401172745d343371bf0d45417fa286ce972add1b4e474f1f3091fa1345158dbfc040702d61607c DIST antlr-3.5.2.tar.gz 6927126 BLAKE2B 1907229549434dfea6ef1fa915137a2f733bd61f0a40aacb131689df619d1c92e125453ec3d1febc5d92da1841ffbde060af196cff1ca8fb6f4684600375e161 SHA512 e2a0520093fb2a77dcd9d44f26a9fdd612dceaffb398c53b2b8cd29f4630830647ede29e8dd55b434cb2c165b0fd1d77968ec6e6de0798f14d9cdfd9e6fccd99 +DIST antlr-3.5.3.tar.gz 6752328 BLAKE2B 8ebd098c9475122cddcadd5991b9f882b7fda5868ad979b29c9f4dab97e39cd31e7fc943476c3a854f3e3aee9c1c56384b7fcc893f87548482af5d5d0839fd30 SHA512 c565e1ade7a62bb127df707015afded9a9cea54cbf5488730a327671c57e8718f93f76c4fa28edd856810cb9c7ccbcb27b53a7c8f7e3efc8169e64cfcc535a4c DIST antlr-4.9.3.tar.gz 4640242 BLAKE2B fb58f5e533051cb2c439c32f0462c1d463c99df862ba7e1a37a1c61378ab36a9edb9525c2a342de5b517da6f02d8291de5976c550932314f3464aad1a778afb9 SHA512 61452404c9639b5a0908cda16605f17c0fed0c9adfc3278c7408f9971420e9d1fe8f9e974e0826c2e3e780fdd83324094c0246cd5b28fa63f5686b094ea08127 diff --git a/dev-java/antlr/antlr-3.5.3.ebuild b/dev-java/antlr/antlr-3.5.3.ebuild new file mode 100644 index 000000000000..41ea8dc96c2b --- /dev/null +++ b/dev-java/antlr/antlr-3.5.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.antlr3.org/" +# Reuse tarball for DOCS +SRC_URI="https://github.com/${PN}/${PN}3/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="3.5" +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}3-${PV}" + +DOCS=( contributors.txt README.txt ) + +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.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="3.5.2-r2" + 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}." +} |