/[gentoo-x86]/dev-java/gjdoc/gjdoc-0.7.9-r2.ebuild
Gentoo

Contents of /dev-java/gjdoc/gjdoc-0.7.9-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Feb 9 14:47:55 2010 UTC (4 years, 5 months ago) by josejx
Branch: MAIN
Changes since 1.4: +2 -2 lines
Marked ppc stable for bug #296215.
(Portage version: 2.1.7.16/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/gjdoc/gjdoc-0.7.9-r2.ebuild,v 1.4 2010/01/03 20:37:54 fauli Exp $
4
5 EAPI=2
6 JAVA_PKG_IUSE="source"
7
8 inherit eutils autotools java-pkg-2
9
10 DESCRIPTION="A javadoc compatible Java source documentation generator."
11 HOMEPAGE="http://www.gnu.org/software/cp-tools/"
12 SRC_URI="mirror://gnu/classpath/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
17
18 # Possible USE flags.
19 #
20 # native: to --enable-native
21 # doc: to generate javadoc
22 # debug: There is a debug doclet installed by default but maybe could
23 # have a wrapper that uses it.
24 #
25 IUSE="xmldoclet"
26
27 RDEPEND=">=virtual/jre-1.4
28 >=dev-java/antlr-2.7.1:0[java]"
29
30 # Refused to emerge with sun-jdk-1.3* complaining about wanting a bigger stack size
31 DEPEND="${RDEPEND}
32 >=virtual/jdk-1.4"
33
34 src_prepare() {
35 epatch "${FILESDIR}/${PN}-0.7.7-gcp.patch"
36 epatch "${FILESDIR}/0.7.9-main-execute.patch"
37 AT_M4DIR="m4" eautoreconf
38 }
39
40 src_configure() {
41 # I think that configure will do --enable-native if it finds gcj
42 # so we'll disable it explicitly
43 local myc="--with-antlr-jar=$(java-pkg_getjar antlr antlr.jar) --disable-native"
44 myc="${myc} --disable-dependency-tracking"
45
46 # Does not work with gcc 3.* and without these it tries to use gij
47 # see bug #116804 for details
48
49 # TODO ideally, would respect JAVACFLAGS
50 JAVA="java" JAVAC="javac $(java-pkg_javac-args)" \
51 econf ${myc} \
52 $(use_enable xmldoclet) || die "econf failed"
53 }
54
55 src_compile() {
56 default # Don't use from java-pkg-2
57 }
58
59 src_install() {
60 local jars="com-sun-tools-doclets-Taglet gnu-classpath-tools-gjdoc com-sun-javadoc"
61 for jar in ${jars}; do
62 java-pkg_newjar ${jar}-${PV}.jar ${jar}.jar
63 done
64
65 java-pkg_dolauncher ${PN} --main gnu.classpath.tools.gjdoc.Main
66 dodoc AUTHORS ChangeLog NEWS README || die
67
68 cd "${S}"/docs
69 emake DESTDIR="${D}" install || die "Failed to install documentation"
70
71 use source && java-pkg_dosrc "${S}/src"/{com,gnu}
72 }

  ViewVC Help
Powered by ViewVC 1.1.20