/[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.7 - (hide annotations) (download)
Sun Aug 10 20:13:49 2014 UTC (5 weeks, 6 days ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -3 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 slyfox 1.7 # Copyright 1999-2014 Gentoo Foundation
2 caster 1.1 # Distributed under the terms of the GNU General Public License v2
3 slyfox 1.7 # $Header: /var/cvsroot/gentoo-x86/dev-java/gjdoc/gjdoc-0.7.9-r2.ebuild,v 1.6 2012/05/11 02:52:38 aballier Exp $
4 caster 1.1
5     EAPI=2
6     JAVA_PKG_IUSE="source"
7    
8     inherit eutils autotools java-pkg-2
9    
10 slyfox 1.7 DESCRIPTION="A javadoc compatible Java source documentation generator"
11 caster 1.1 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 aballier 1.6 KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
17 caster 1.1
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