diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2024-01-01 22:31:28 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2024-01-23 10:42:34 +0100 |
commit | c4e40ba9f16a46b2e79992426ea32cdbff229c68 (patch) | |
tree | 4644eddf45209d518f3ce839f5d401a11a67da57 /dev-java | |
parent | dev-java/xmlunit: add 1.6-r2 for >=dev-java/ant-1.10.14 (diff) | |
download | gentoo-c4e40ba9f16a46b2e79992426ea32cdbff229c68.tar.gz gentoo-c4e40ba9f16a46b2e79992426ea32cdbff229c68.tar.bz2 gentoo-c4e40ba9f16a46b2e79992426ea32cdbff229c68.zip |
dev-java/javacc: add 5.0-r5 for >=dev-java/ant-1.10.14
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/javacc/javacc-5.0-r5.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/dev-java/javacc/javacc-5.0-r5.ebuild b/dev-java/javacc/javacc-5.0-r5.ebuild new file mode 100644 index 000000000000..0fd23fe4c7b9 --- /dev/null +++ b/dev-java/javacc/javacc-5.0-r5.ebuild @@ -0,0 +1,73 @@ +# 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" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Java Compiler Compiler - The Java Parser Generator" +HOMEPAGE="https://javacc.github.io/javacc/" +SRC_URI="http://java.net/projects/${PN}/downloads/download/${P}src.tar.gz" + +LICENSE="BSD" +SLOT="0" + +KEYWORDS="~amd64 ~arm ~arm64" + +CDEPEND="dev-java/junit:0" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.8:*" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.8:* + test? ( >=dev-java/ant-1.10.14:0[junit] )" + +S="${WORKDIR}/${PN}" + +PATCHES=( + "${FILESDIR}"/${PN}-4.0-javadoc.patch +) + +JAVA_ANT_REWRITE_CLASSPATH="yes" +JAVA_ANT_CLASSPATH_TAGS+=" javadoc" + +EANT_GENTOO_CLASSPATH="junit" + +src_prepare() { + default #780585 + + rm -v lib/junit*/*.jar || die +} + +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 doc/api + fi + + use examples && java-pkg_doexamples examples + use source && java-pkg_dosrc src/* + + echo "JAVACC_HOME=${EPREFIX}/usr/share/javacc/" > "${T}"/22javacc || die + doenvd "${T}"/22javacc + + 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 +} |