diff options
author | Joshua Nichols <nichoj@gentoo.org> | 2006-01-22 05:08:34 +0000 |
---|---|---|
committer | Joshua Nichols <nichoj@gentoo.org> | 2006-01-22 05:08:34 +0000 |
commit | 71601ae6715e6497b925e3bed9c188310cd1226a (patch) | |
tree | 060d42c4921b76ed2f7bd271628c534797e556af /dev-java/javacc/javacc-4.0.ebuild | |
parent | stable on x86 for bug #115113 (diff) | |
download | gentoo-2-71601ae6715e6497b925e3bed9c188310cd1226a.tar.gz gentoo-2-71601ae6715e6497b925e3bed9c188310cd1226a.tar.bz2 gentoo-2-71601ae6715e6497b925e3bed9c188310cd1226a.zip |
Version bump (bug #118576).
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'dev-java/javacc/javacc-4.0.ebuild')
-rw-r--r-- | dev-java/javacc/javacc-4.0.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/dev-java/javacc/javacc-4.0.ebuild b/dev-java/javacc/javacc-4.0.ebuild new file mode 100644 index 000000000000..63ed43bcfaf4 --- /dev/null +++ b/dev-java/javacc/javacc-4.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/javacc-4.0.ebuild,v 1.1 2006/01/22 05:08:34 nichoj Exp $ + +inherit java-pkg eutils + +DESCRIPTION="Java Compiler Compiler" +HOMEPAGE="https://javacc.dev.java.net/servlets/ProjectHome" +SRC_URI="https://${PN}.dev.java.net/files/documents/17/26783/${P}src.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc examples jikes source" +DEPEND=">=virtual/jdk-1.3 + sys-apps/sed + dev-java/ant-core + jikes? ( dev-java/jikes ) + source? ( app-arch/zip )" +RDEPEND=">=virtual/jre-1.3" + +S="${WORKDIR}/${PN}" + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${P}-javadoc.patch +} + +src_compile() { + local antflags="jar" + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + use doc && antflags="${antflags} javadoc" + ant ${antflags} || die "compilation failed" + + cp ${FILESDIR}/${P} ${WORKDIR}/${PN}/ || die "Missing env file ${P}" + sed -i \ + -e "s:@PV@:${PV}:" \ + -e "s:@PN@:${PN}:" \ + ${P} || die "Failed to sed" +} + +src_install() { + java-pkg_dojar bin/lib/${PN}.jar + + if use doc; then + dodoc README + java-pkg_dohtml -r www/* + java-pkg_dohtml -r doc/api + fi + if use examples; then + dodir /usr/share/doc/${PF}/examples + cp -R examples/* ${D}/usr/share/doc/${PF}/examples + fi + use source && java-pkg_dosrc src/* + + 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 ${P} 22javacc || die "Missing ${PF}" +} + +pkg_postinst() { + #close bug 61975 + if [ -f /etc/env.d/22javacc ] ; then + rm -f /etc/env.d/22javacc + fi +} |