summaryrefslogtreecommitdiff
path: root/dev-java/javacc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/javacc
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/javacc')
-rw-r--r--dev-java/javacc/Manifest6
-rw-r--r--dev-java/javacc/files/javacc-4.0-javadoc.patch14
-rw-r--r--dev-java/javacc/javacc-5.0-r3.ebuild73
-rw-r--r--dev-java/javacc/metadata.xml8
4 files changed, 101 insertions, 0 deletions
diff --git a/dev-java/javacc/Manifest b/dev-java/javacc/Manifest
new file mode 100644
index 000000000000..1c6e0528e5fa
--- /dev/null
+++ b/dev-java/javacc/Manifest
@@ -0,0 +1,6 @@
+AUX javacc-4.0-javadoc.patch 420 SHA256 4bef6b418576e68921583a28e9ec7789ddea35c8b8b7b2a9a7e8803c2c67774d SHA512 e20554696a27137b7f9c086f7d8c4854742fa1e14ad84e2157cecebdc65f2fb6726a0eaaff7bf3f1113a6fade51c5825b86641b61b917a4fcdd96663a8830438 WHIRLPOOL 56bdd4a910ef840b2899990302a018087f20b1deffa305df8b2b588bec4baf4f3e60054434edc8306aedd09c4bde01a072fd90dd9b26a165d06cd47f41fdb3db
+DIST javacc-5.0src.tar.gz 810123 SHA256 766cae9d3710054f452a7f0779db885eacfdae363152cb2e7fe025aa7ea17370 SHA512 91896a0affac1c4fd00a093a731dfd02bda548d1a4d83e1077ed36a67f4f9deab0ce9f2d0212fd4c08ab00065d3029533adbafbc026a22ca071285093bd3bba6 WHIRLPOOL 11b299f2e2c0f0d699b0eb5f150e2200b60c0b385a0f3c8e4ca2be38971b71b52c7d351c7219af636d4fbab451fe9e471b9f2f676bc79cc2e76740e702159825
+EBUILD javacc-5.0-r3.ebuild 1404 SHA256 16ca7c19331a1c6abfc574fa4ddadb094da2f2dd5f0b0853c228e0d24fab2563 SHA512 ad8a7789976f67488cd3f749efe961b98e72530af5c9097f160eff51cc894648787882a3c69062bbfba9ae0f3e2517a850429beb5b1049af9b933dff104e8c80 WHIRLPOOL 51550849694f54b87e9ef64e8377bc0d7047ad5d26abf5515b8f706ab34e334f10398d80acd68424e3588f734a6563112e0513af9782da1d41788bab0610a2f7
+MISC ChangeLog 3910 SHA256 9faafef020f8bd57ae76d88f69464ea1ae0a15f188e37e7354809e3435442b19 SHA512 71010911cdad94486874bd6df891d2bdaf5b2223cd993be9093c358344b083bd8250d861dde9e7d56cc708ee5419470172579dbfec6d280a6341c3370298fd54 WHIRLPOOL a9223fce1288c2dcdcea3f4ba572eec1b20fcb4102f114bb113027fd81d4f351ada9f7430c75918d9df3e40b7191e7b90c2a3ef8d51bfac928da02ea37f06982
+MISC ChangeLog-2015 6540 SHA256 79301b32e783e3cdf9133ca3a3408d2f0cfd488e43f5a4c7fe1625182e55bcf8 SHA512 c7f970d6e7ac19cb7e93ad87e0bd14213fd2e2bd996177f1c5fa4ca7a95b6daa3bcd16359ad99d8dfec1bc7b2b6f0c2283b3f3a4db38e2f10046ad2989a467b9 WHIRLPOOL f00bbc8bb6c7ea15fefac19f4950a1eab2f57c3c5e62b1a1f7406e2a486917c9ff7d06bbc4e5fe6063a2a4a9b3518f8e24eb2034af725fcd5f15b471c58092aa
+MISC metadata.xml 232 SHA256 0c8d91b3d514ac42d0eaca567346ab909c0f947049c85c25a380ec2400f1b3fb SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 WHIRLPOOL 3a1a6d054edc9177d85ca868f9b0a6e84ee51bab4fbdbb9b1ead1a03874036bcc3f96e903fb751dc4d29fdb7d6b5f3d8dbe7b042fc697c887e23f41cc9c8c4ac
diff --git a/dev-java/javacc/files/javacc-4.0-javadoc.patch b/dev-java/javacc/files/javacc-4.0-javadoc.patch
new file mode 100644
index 000000000000..41093de26566
--- /dev/null
+++ b/dev-java/javacc/files/javacc-4.0-javadoc.patch
@@ -0,0 +1,14 @@
+diff -ru javacc/build.xml javacc-patched/build.xml
+--- javacc/build.xml 2003-08-11 15:16:01.000000000 -0400
++++ javacc-patched/build.xml 2005-06-25 00:37:53.000000000 -0400
+@@ -150,5 +150,10 @@
+ <arg line="${version}" />
+ </exec>
+ </target>
++ <target name="javadoc" depends="compile">
++ <javadoc destdir="doc/api" source="1.4">
++ <packageset dir="src"/>
++ </javadoc>
++ </target>
+
+ </project>
diff --git a/dev-java/javacc/javacc-5.0-r3.ebuild b/dev-java/javacc/javacc-5.0-r3.ebuild
new file mode 100644
index 000000000000..1249b0be132f
--- /dev/null
+++ b/dev-java/javacc/javacc-5.0-r3.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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.java.net/"
+SRC_URI="http://java.net/projects/${PN}/downloads/download/${P}src.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+
+KEYWORDS="amd64 ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+
+CDEPEND="dev-java/junit:0"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.6
+ test? ( dev-java/ant-junit:0 )"
+
+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
+
+ 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
+}
diff --git a/dev-java/javacc/metadata.xml b/dev-java/javacc/metadata.xml
new file mode 100644
index 000000000000..2444066aa02b
--- /dev/null
+++ b/dev-java/javacc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+</maintainer>
+</pkgmetadata>