diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2018-11-02 01:16:42 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2018-11-02 01:16:42 +0000 |
commit | 22b1d35cc4be3dc33bbb6592c5989a15e5d8c4b2 (patch) | |
tree | 02d95f2e9431972f2fb50481a6fe780e0412f48f | |
parent | dev-java/gnu-classpath: Remove references to dead packages (diff) | |
download | java-22b1d35c.tar.gz java-22b1d35c.tar.bz2 java-22b1d35c.zip |
dev-java/gnu-classpath: Merge gjdoc changes from main tree.
Package-Manager: Portage-2.3.50, Repoman-2.3.10
-rw-r--r-- | dev-java/gnu-classpath/ChangeLog | 7 | ||||
-rw-r--r-- | dev-java/gnu-classpath/gnu-classpath-0.99-r2.ebuild (renamed from dev-java/gnu-classpath/gnu-classpath-0.99-r1.ebuild) | 29 | ||||
-rw-r--r-- | dev-java/gnu-classpath/gnu-classpath-9999.ebuild | 29 |
3 files changed, 61 insertions, 4 deletions
diff --git a/dev-java/gnu-classpath/ChangeLog b/dev-java/gnu-classpath/ChangeLog index a8e7a4b1..deb35d54 100644 --- a/dev-java/gnu-classpath/ChangeLog +++ b/dev-java/gnu-classpath/ChangeLog @@ -2,6 +2,13 @@ # Copyright 1999-2018 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/gnu-classpath/ChangeLog,v 1.109 2010/04/29 19:50:01 caster Exp $ +*gnu-classpath-0.99-r2 (02 Nov 2018) + + 02 Nov 2018; Andrew John Hughes <gnu_andrew@member.fsf.org> + +gnu-classpath-0.99-r2.ebuild, -gnu-classpath-0.99-r1.ebuild, + gnu-classpath-9999.ebuild: + dev-java/gnu-classpath: Merge gjdoc changes from main tree. + 22 Oct 2018; Andrew John Hughes <gnu_andrew@member.fsf.org> gnu-classpath-0.99-r1.ebuild, gnu-classpath-9999.ebuild: dev-java/gnu-classpath: Remove references to dead packages diff --git a/dev-java/gnu-classpath/gnu-classpath-0.99-r1.ebuild b/dev-java/gnu-classpath/gnu-classpath-0.99-r2.ebuild index da6c27ac..c0043d66 100644 --- a/dev-java/gnu-classpath/gnu-classpath-0.99-r1.ebuild +++ b/dev-java/gnu-classpath/gnu-classpath-0.99-r2.ebuild @@ -15,9 +15,9 @@ SLOT="0" KEYWORDS="~amd64" IUSE="alsa debug doc dssi examples gconf +gjdoc +gmp +gtk gstreamer qt4 xml" +REQUIRED_USE="doc? ( gjdoc )" RDEPEND="alsa? ( media-libs/alsa-lib ) - doc? ( >=dev-java/gnu-classpath-0.98:* ) dssi? ( >=media-libs/dssi-0.9 ) gconf? ( gnome-base/gconf:2= ) gjdoc? ( >=dev-java/antlr-2.7.7-r7:0 ) @@ -87,6 +87,13 @@ src_configure() { myconf="--with-antlr-jar=${antlr}" fi + if use doc; then + # Avoid a cyclic dependency on gjdoc by building gjdoc before + # the docs. First we need to trick configure. Hack alert! + echo -e "#!/bin/sh\necho gjdoc 0.8" > tools/gjdoc.build || die + chmod 755 tools/gjdoc.build || die + fi + ANTLR= econf \ $(use_enable alsa) \ $(use_enable debug ) \ @@ -98,7 +105,7 @@ src_configure() { $(use_enable gstreamer gstreamer-peer) \ $(use_enable xml xmlj) \ $(use_enable dssi ) \ - $(use_with doc gjdoc) \ + $(use_with doc gjdoc "${S}/tools/gjdoc.build") \ --enable-jni \ --disable-dependency-tracking \ --disable-plugin \ @@ -108,9 +115,27 @@ src_configure() { ${myconf} } +src_compile() { + if use doc; then + # Build gjdoc before the docs. We need to hack the real gjdoc + # script to run from the build directory instead. + sed -r "s:^(tools_dir=).*:\1${S}/tools:" tools/gjdoc > tools/gjdoc.build || die + emake -C lib + emake -C tools + fi + + default +} + src_install() { emake DESTDIR="${D}" install dodoc AUTHORS BUGS ChangeLog* HACKING NEWS README THANKYOU TODO java-pkg_regjar /usr/share/classpath/glibj.zip java-pkg_regjar /usr/share/classpath/tools.zip + + if use doc; then + # Strangely the Makefile doesn't install these. + insinto "/usr/${PN}-${SLOT}/share/classpath/api" + doins -r doc/api/html/* + fi } diff --git a/dev-java/gnu-classpath/gnu-classpath-9999.ebuild b/dev-java/gnu-classpath/gnu-classpath-9999.ebuild index 9d5c601f..4a2a905a 100644 --- a/dev-java/gnu-classpath/gnu-classpath-9999.ebuild +++ b/dev-java/gnu-classpath/gnu-classpath-9999.ebuild @@ -15,9 +15,9 @@ SLOT="0" KEYWORDS="" IUSE="alsa debug doc dssi examples gconf +gjdoc +gmp +gtk gstreamer qt4 xml" +REQUIRED_USE="doc? ( gjdoc )" RDEPEND="alsa? ( media-libs/alsa-lib ) - doc? ( >=dev-java/gnu-classpath-0.98:* ) dssi? ( >=media-libs/dssi-0.9 ) gconf? ( gnome-base/gconf:2= ) gjdoc? ( >=dev-java/antlr-2.7.7-r7:0 ) @@ -85,6 +85,13 @@ src_configure() { myconf="--with-antlr-jar=${antlr}" fi + if use doc; then + # Avoid a cyclic dependency on gjdoc by building gjdoc before + # the docs. First we need to trick configure. Hack alert! + echo -e "#!/bin/sh\necho gjdoc 0.8" > tools/gjdoc.build || die + chmod 755 tools/gjdoc.build || die + fi + ANTLR= econf \ $(use_enable alsa) \ $(use_enable debug ) \ @@ -96,7 +103,7 @@ src_configure() { $(use_enable gstreamer gstreamer-peer) \ $(use_enable xml xmlj) \ $(use_enable dssi ) \ - $(use_with doc gjdoc) \ + $(use_with doc gjdoc "${S}/tools/gjdoc.build") \ --enable-jni \ --disable-dependency-tracking \ --disable-plugin \ @@ -106,9 +113,27 @@ src_configure() { ${myconf} } +src_compile() { + if use doc; then + # Build gjdoc before the docs. We need to hack the real gjdoc + # script to run from the build directory instead. + sed -r "s:^(tools_dir=).*:\1${S}/tools:" tools/gjdoc > tools/gjdoc.build || die + emake -C lib + emake -C tools + fi + + default +} + src_install() { emake DESTDIR="${D}" install dodoc AUTHORS BUGS ChangeLog* HACKING NEWS README THANKYOU TODO java-pkg_regjar /usr/share/classpath/glibj.zip java-pkg_regjar /usr/share/classpath/tools.zip + + if use doc; then + # Strangely the Makefile doesn't install these. + insinto "/usr/${PN}-${SLOT}/share/classpath/api" + doins -r doc/api/html/* + fi } |