diff options
-rw-r--r-- | dev-java/javacc/ChangeLog | 6 | ||||
-rw-r--r-- | dev-java/javacc/files/javacc-3.2-javadoc.patch | 14 | ||||
-rw-r--r-- | dev-java/javacc/javacc-3.2-r3.ebuild | 19 |
3 files changed, 33 insertions, 6 deletions
diff --git a/dev-java/javacc/ChangeLog b/dev-java/javacc/ChangeLog index 1db0a8572e0a..20643eb75ada 100644 --- a/dev-java/javacc/ChangeLog +++ b/dev-java/javacc/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-java/javacc # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/ChangeLog,v 1.14 2005/05/01 09:55:56 luckyduck Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/ChangeLog,v 1.15 2005/06/29 19:21:59 axxo Exp $ + + 29 Jun 2005; Thomas Matthijs <axxo@gentoo.org> + +files/javacc-3.2-javadoc.patch, javacc-3.2-r3.ebuild: + add patch from Josh Nichols <nichoj@alum.rpi.edu> to build api docs #97014 01 May 2005; Jan Brinkmann <luckyduck@gentoo.org> -javacc-3.2-r2.ebuild, javacc-3.2-r3.ebuild: diff --git a/dev-java/javacc/files/javacc-3.2-javadoc.patch b/dev-java/javacc/files/javacc-3.2-javadoc.patch new file mode 100644 index 000000000000..0bbdab9a5b06 --- /dev/null +++ b/dev-java/javacc/files/javacc-3.2-javadoc.patch @@ -0,0 +1,14 @@ +diff -ru javacc-3.2/build.xml javacc-3.2-patched/build.xml +--- javacc-3.2/build.xml 2003-08-11 15:16:01.000000000 -0400 ++++ javacc-3.2-patched/build.xml 2005-06-25 00:37:53.000000000 -0400 +@@ -148,5 +148,10 @@ + <arg line="${version}" /> + </exec> + </target> ++ <target name="javadoc" depends="compile"> ++ <javadoc destdir="doc/api"> ++ <fileset dir="src"/> ++ </javadoc> ++ </target> + + </project> diff --git a/dev-java/javacc/javacc-3.2-r3.ebuild b/dev-java/javacc/javacc-3.2-r3.ebuild index 7c17d3453d44..95f0a51150da 100644 --- a/dev-java/javacc/javacc-3.2-r3.ebuild +++ b/dev-java/javacc/javacc-3.2-r3.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/javacc-3.2-r3.ebuild,v 1.7 2005/05/01 22:12:38 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/javacc-3.2-r3.ebuild,v 1.8 2005/06/29 19:21:59 axxo Exp $ -inherit java-pkg +inherit java-pkg eutils DESCRIPTION="Java Compiler Compiler [tm] (JavaCC [tm]) - The Java Parser Generator" HOMEPAGE="https://javacc.dev.java.net/servlets/ProjectHome" @@ -18,16 +18,24 @@ DEPEND=">=virtual/jdk-1.3 source? ( app-arch/zip )" RDEPEND=">=virtual/jre-1.3" +src_unpack() { + unpack ${A} + cd ${S} + + 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}/${PN}-${PV} ${S}/ || die "Missing env file ${P}" + cp ${FILESDIR}/${P} ${S}/ || die "Missing env file ${P}" sed -i \ -e "s:@PV@:${PV}:" \ -e "s:@PN@:${PN}:" \ - ${PN}-${PV} || die "Failed to sed" + ${P} || die "Failed to sed" } src_install() { @@ -36,6 +44,7 @@ src_install() { 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 @@ -49,7 +58,7 @@ src_install() { dodir /etc/env.d/java insinto /etc/env.d/java - newins ${PN}-${PV} 22javacc || die "Missing ${PF}" + newins ${P} 22javacc || die "Missing ${PF}" } pkg_postinst() { |