diff options
author | Alistair Bush <ali_bush@gentoo.org> | 2009-04-28 11:42:03 +0000 |
---|---|---|
committer | Alistair Bush <ali_bush@gentoo.org> | 2009-04-28 11:42:03 +0000 |
commit | f0437958650c34645dc96757771645021ed6fc2f (patch) | |
tree | 717db53f644a32dedfa3145c0873a646b26da85b /dev-java/javacc | |
parent | arm/sh stable (diff) | |
download | gentoo-2-f0437958650c34645dc96757771645021ed6fc2f.tar.gz gentoo-2-f0437958650c34645dc96757771645021ed6fc2f.tar.bz2 gentoo-2-f0437958650c34645dc96757771645021ed6fc2f.zip |
Version Bump.
(Portage version: 2.1.6.11/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/javacc')
-rw-r--r-- | dev-java/javacc/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/javacc/javacc-4.2.ebuild | 76 |
2 files changed, 84 insertions, 2 deletions
diff --git a/dev-java/javacc/ChangeLog b/dev-java/javacc/ChangeLog index 153a4ff933ff..20ebcb3ac223 100644 --- a/dev-java/javacc/ChangeLog +++ b/dev-java/javacc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/javacc -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/ChangeLog,v 1.28 2008/01/10 22:32:02 caster Exp $ +# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/ChangeLog,v 1.29 2009/04/28 11:42:03 ali_bush Exp $ + +*javacc-4.2 (28 Apr 2009) + + 28 Apr 2009; Alistair Bush <ali_bush@gentoo.org> +javacc-4.2.ebuild: + Version Bump. Thanks to Alex Busenius <the_unknown@gmx.net> for the bug + report and initial work. 10 Jan 2008; Vlastimil Babka <caster@gentoo.org> javacc-4.0-r4.ebuild: Restrict junit dependency. diff --git a/dev-java/javacc/javacc-4.2.ebuild b/dev-java/javacc/javacc-4.2.ebuild new file mode 100644 index 000000000000..d06398a283ba --- /dev/null +++ b/dev-java/javacc/javacc-4.2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/javacc-4.2.ebuild,v 1.1 2009/04/28 11:42:03 ali_bush Exp $ + +JAVA_PKG_IUSE="doc examples source test" +EAPI="2" + +inherit java-pkg-2 java-ant-2 eutils + +DESCRIPTION="Java Compiler Compiler - The Java Parser Generator" +HOMEPAGE="https://javacc.dev.java.net/" +SRC_URI="https://${PN}.dev.java.net/files/documents/17/117795/${P}src.tar.gz" +LICENSE="BSD" +SLOT="0" +IUSE="" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" +DEPEND=">=virtual/jdk-1.5 + dev-java/junit:0 + test? ( dev-java/ant-junit )" +RDEPEND=">=virtual/jre-1.4 + dev-java/junit:0" + +#There are test cases that require >=1.5 +#currently the build system handles producing +#the correct bytecode for the jar we are +#wanting. So lets just let it do its +#part. +JAVA_PKG_BSFIX="off" +JAVA_PKG_WANT_TARGET="1.4" +JAVA_PKG_WANT_SOURCE="1.4" + +S="${WORKDIR}/${PN}" + +java_prepare() { + epatch "${FILESDIR}"/${PN}-4.0-javadoc.patch + rm -v lib/junit*/*.jar || die +} + +_eant() { + eant -Djunit.jar="$(java-pkg_getjar --build-only junit junit.jar)" "${@}" +} + +src_compile() { + _eant jar $(use_doc) +} + +src_test() { + ANT_TASKS="ant-junit" _eant test +} + +src_install() { + java-pkg_dojar bin/lib/${PN}.jar + + dodoc README || die + + if use doc; then + java-pkg_dohtml -r www/* + java-pkg_dojavadoc 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/* + + echo "JAVACC_HOME=/usr/share/javacc/" > "${T}"/22javacc + doenvd "${T}"/22javacc + + echo "export VERSION=${PV}" > "${T}"/pre + + local launcher + for launcher in javacc jjdoc jjtree + do + java-pkg_dolauncher ${launcher} -pre "${T}"/pre --main ${launcher} + done +} |