dev-java/javacc: add 4.1

Should replace javacc-5.0-r5 where SRC_URI pkgcheck complains
"SSLCertificateError: version 5.0-r5: SRC_URI: SSL cert error:"

Both velocity-2.3 and lucene-2.4.1-r3 fail to compile with any newer
version.

Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/35736
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2024-03-13 16:35:46 +01:00
committed by Miroslav Šulc
parent 322e518660
commit 61955a8d89
2 changed files with 67 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST javacc-4.1.tar.gz 769476 BLAKE2B c2a22fa78ff4dcf1e36221a23ca1e3cd1eecb473a59ea94ce52e298673f6bd18c0ea0cf757dd68885696ebc8cc724d271c69c923a21ffa433d03c1062b1201ee SHA512 911e5e9f062561ade1748dcef3596e0f25c399c4d52dd174773783dadf24a4ceea8d3feab9ab08880370677959051d8557aed815d4c4184f5ecd5789ee8a5754
DIST javacc-5.0src.tar.gz 810123 BLAKE2B 6833e79a33c7ae8b28902d1c372162a2f9e326629f0d4c1936a8c3638d3aa3f6bd5713aca8398ba5f1ff963fe585eb683fcd3009602ee592ba79692c8ba0f3d6 SHA512 91896a0affac1c4fd00a093a731dfd02bda548d1a4d83e1077ed36a67f4f9deab0ce9f2d0212fd4c08ab00065d3029533adbafbc026a22ca071285093bd3bba6

View File

@@ -0,0 +1,66 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
JAVA_PKG_IUSE="doc examples source test"
MAVAN_ID="net.java.dev.javacc:javacc:${PV}"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Java Compiler Compiler - The Java Parser Generator"
HOMEPAGE="https://javacc.github.io/javacc/"
SRC_URI="https://github.com/javacc/javacc/archive/release_${PV//./}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/javacc-release_${PV//./}"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
CP_DEPEND="dev-java/junit:0"
DEPEND="${CP_DEPEND}
>=virtual/jdk-1.8:*
test? ( >=dev-java/ant-1.10.14:0[junit] )"
RDEPEND="${CP_DEPEND}
>=virtual/jre-1.8:*"
PATCHES=(
"${FILESDIR}"/${PN}-4.0-javadoc.patch
)
JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
JAVA_ANT_REWRITE_CLASSPATH="yes"
src_prepare() {
java-pkg-2_src_prepare
java-pkg_clean ! -path "./bootstrap/*"
}
src_test() {
java-pkg-2_src_test
}
src_install() {
java-pkg_dojar bin/lib/"${PN}".jar
if use doc; then
java-pkg_dohtml -r www/*
java-pkg_dojavadoc target/javadoc
fi
use examples && java-pkg_doexamples examples
use source && java-pkg_dosrc src/*
echo "JAVACC_HOME=${EPREFIX}/usr/share/javacc/" > "${T}"/22javacc-${SLOT} || die
doenvd "${T}"/22javacc-${SLOT}
echo "export VERSION=${PV}" > "${T}"/pre || die
local launcher
for launcher in javacc jjdoc jjtree; do
java-pkg_dolauncher ${launcher} -pre "${T}"/pre --main ${launcher}
done
einstalldocs
}