summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2006-07-01 17:28:47 +0000
committerJoshua Nichols <nichoj@gentoo.org>2006-07-01 17:28:47 +0000
commite67c42df8330e6461cd60edaafe73a079a3473c0 (patch)
tree582dee863f4c327f3382ecda201a4b298d117130 /dev-java/gjdoc
parentDrop ~mips as discussed with Stephen Becker <geoman@gentoo.org>. (diff)
downloadgentoo-2-e67c42df8330e6461cd60edaafe73a079a3473c0.tar.gz
gentoo-2-e67c42df8330e6461cd60edaafe73a079a3473c0.tar.bz2
gentoo-2-e67c42df8330e6461cd60edaafe73a079a3473c0.zip
Revision bump to support new Java system.
(Portage version: 2.1.1_pre1)
Diffstat (limited to 'dev-java/gjdoc')
-rw-r--r--dev-java/gjdoc/ChangeLog5
-rw-r--r--dev-java/gjdoc/files/digest-gjdoc-0.7.7-r13
-rw-r--r--dev-java/gjdoc/gjdoc-0.7.7-r1.ebuild62
3 files changed, 69 insertions, 1 deletions
diff --git a/dev-java/gjdoc/ChangeLog b/dev-java/gjdoc/ChangeLog
index 5cd49fc3fb3b..944dc210b010 100644
--- a/dev-java/gjdoc/ChangeLog
+++ b/dev-java/gjdoc/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-java/gjdoc
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/gjdoc/ChangeLog,v 1.10 2006/05/15 07:36:41 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/gjdoc/ChangeLog,v 1.11 2006/07/01 17:28:47 nichoj Exp $
+
+ 01 Jul 2006; Joshua Nichols <nichoj@gentoo.org> +gjdoc-0.7.7-r1.ebuild:
+ Revision bump to support new Java system.
15 May 2006; Petteri Räty <betelgeuse@gentoo.org> gjdoc-0.7.7.ebuild:
Changed SRC_URI to use mirror://gnu.
diff --git a/dev-java/gjdoc/files/digest-gjdoc-0.7.7-r1 b/dev-java/gjdoc/files/digest-gjdoc-0.7.7-r1
new file mode 100644
index 000000000000..7229ffbc69cb
--- /dev/null
+++ b/dev-java/gjdoc/files/digest-gjdoc-0.7.7-r1
@@ -0,0 +1,3 @@
+MD5 f9755ee2601f7903360680694747a8c7 gjdoc-0.7.7.tar.gz 731115
+RMD160 118f8f710d22559cbb49eee73377fc733dcf86e3 gjdoc-0.7.7.tar.gz 731115
+SHA256 6cae05c4c49cd7f33650403a2fdbf1248c20751fa11099ca37bd34a4f1a0bd59 gjdoc-0.7.7.tar.gz 731115
diff --git a/dev-java/gjdoc/gjdoc-0.7.7-r1.ebuild b/dev-java/gjdoc/gjdoc-0.7.7-r1.ebuild
new file mode 100644
index 000000000000..510f3a3a2ad3
--- /dev/null
+++ b/dev-java/gjdoc/gjdoc-0.7.7-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/gjdoc/gjdoc-0.7.7-r1.ebuild,v 1.1 2006/07/01 17:28:47 nichoj Exp $
+
+inherit java-pkg-2
+
+DESCRIPTION="A javadoc compatible Java source documentation generator."
+HOMEPAGE="http://www.gnu.org/software/cp-tools/"
+SRC_URI="mirror://gnu/classpath/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+# Possible USE flags.
+#
+# native: to --enable-native
+# doc: to generate javadoc
+# debug: There is a debug doclet installed by default but maybe could
+# have a wrapper that uses it.
+#
+IUSE="xmldoclet source"
+
+# Refused to emerge with sun-jdk-1.3* complaining about wanting a bigger stack size
+DEPEND=">=dev-java/antlr-2.7.1
+ >=virtual/jdk-1.4
+ source? ( app-arch/zip )"
+
+RDEPEND=">=virtual/jre-1.4
+ >=dev-java/antlr-2.7.1"
+
+src_compile() {
+ # I think that configure will do --enable-native if it finds gcj
+ # so we'll disable it explicitly
+ local myc="--with-antlr-jar=$(java-pkg_getjar antlr antlr.jar) --disable-native"
+ myc="${myc} --disable-dependency-tracking"
+
+ # Does not work with gcc 3.* and without these it tries to use gij
+ # see bug #116804 for details
+
+ # TODO ideally, would respect JAVACFLAGS
+ JAVA="java" JAVAC="javac $(java-pkg_javac-args)" \
+ econf ${myc} \
+ $(use_enable xmldoclet) || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ local jars="com-sun-tools-doclets-Taglet gnu-classpath-tools-gjdoc com-sun-javadoc"
+ for jar in ${jars}; do
+ java-pkg_newjar ${jar}-${PV}.jar ${jar}.jar
+ done
+
+ dobin ${FILESDIR}/gjdoc
+ dodoc AUTHORS ChangeLog NEWS README
+
+ cd ${S}/docs
+ make DESTDIR=${D} install || die "Failed to install documentation"
+
+ use source && java-pkg_dosrc "${S}/src"/{com,gnu}
+}