diff options
Diffstat (limited to 'dev-java/javacc/javacc-3.2-r2.ebuild')
-rw-r--r-- | dev-java/javacc/javacc-3.2-r2.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-java/javacc/javacc-3.2-r2.ebuild b/dev-java/javacc/javacc-3.2-r2.ebuild new file mode 100644 index 000000000000..436aab424df8 --- /dev/null +++ b/dev-java/javacc/javacc-3.2-r2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/javacc-3.2-r2.ebuild,v 1.1 2004/06/19 22:54:38 karltk Exp $ + +inherit java-pkg + +DESCRIPTION="Java Compiler Compiler [tm] (JavaCC [tm]) - The Java Parser Generator" +HOMEPAGE="https://javacc.dev.java.net/servlets/ProjectHome" +SRC_URI="https://javacc.dev.java.net/files/documents/17/3616/javacc-3.2.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="doc" +DEPEND="virtual/jdk + sys-apps/sed + dev-java/ant" +RDEPEND="virtual/jre" + +src_compile() { + ant || die "compilation failed" + + cp ${FILESDIR}/${PN}-${PV} ${S}/ || die "Missing env file ${P}" + sed -i \ + -e "s:@PV@:${PV}:" \ + -e "s:@PN@:${PN}:" \ + ${PN}-${PV} || die "Failed to sed" +} + +src_install() { + if use doc ; then + dohtml -r www/* || die "Failed to install HTML files" + dodir /usr/share/${PN}/examples + cp -R examples ${D}/usr/share/${PN} || die "Failed to copy examples" + fi + java-pkg_dojar bin/lib/javacc.jar + + newbin ${FILESDIR}/javacc.sh-${PV} javacc + newbin ${FILESDIR}/jjdoc-${PV} jjdoc + newbin ${FILESDIR}/jjtree-${PV} jjtree + + dodir /etc/env.d/java + insinto /etc/env.d/java + newins ${PN}-${PV} 22javacc || die "Missing ${PF}" +} |