You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.8 KiB
74 lines
1.8 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
13 years ago
|
|
||
9 years ago
|
EAPI=5
|
||
13 years ago
|
JAVA_PKG_IUSE="source"
|
||
|
|
||
|
inherit eutils autotools java-pkg-2
|
||
|
|
||
10 years ago
|
DESCRIPTION="A javadoc compatible Java source documentation generator"
|
||
9 years ago
|
HOMEPAGE="https://www.gnu.org/software/cp-tools/"
|
||
13 years ago
|
SRC_URI="mirror://gnu/classpath/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
12 years ago
|
KEYWORDS="amd64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
|
||
13 years ago
|
|
||
|
# 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"
|
||
|
|
||
9 years ago
|
CDEPEND=">=dev-java/antlr-2.7.1:0[java(+)]"
|
||
13 years ago
|
|
||
9 years ago
|
RDEPEND="${CDEPEND}
|
||
|
>=virtual/jre-1.4"
|
||
|
|
||
|
DEPEND="${CDEPEND}
|
||
|
>=virtual/jdk-1.4"
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
|
epatch "${FILESDIR}/${PN}-0.7.7-gcp.patch"
|
||
|
epatch "${FILESDIR}/0.7.9-main-execute.patch"
|
||
|
AT_M4DIR="m4" eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
# 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} \
|
||
9 years ago
|
$(use_enable xmldoclet)
|
||
13 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
default # Don't use from java-pkg-2
|
||
|
}
|
||
|
|
||
|
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
|
||
|
|
||
|
java-pkg_dolauncher ${PN} --main gnu.classpath.tools.gjdoc.Main
|
||
9 years ago
|
dodoc AUTHORS ChangeLog NEWS README
|
||
13 years ago
|
|
||
|
cd "${S}"/docs
|
||
9 years ago
|
emake DESTDIR="${D}" install
|
||
13 years ago
|
|
||
|
use source && java-pkg_dosrc "${S}/src"/{com,gnu}
|
||
|
}
|