summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-02-03 20:12:52 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-02-03 20:12:52 +0000
commit7f0bf1e6cf879c742cb9a2b51e2cdcbc85c9a373 (patch)
treeaae12ef3fb357f666e17e33eb873c37d198b0774 /dev-java/crimson/crimson-1.1.3.ebuild
parentCleanups and important amd64 fixes (diff)
downloadhistorical-7f0bf1e6cf879c742cb9a2b51e2cdcbc85c9a373.tar.gz
historical-7f0bf1e6cf879c742cb9a2b51e2cdcbc85c9a373.tar.bz2
historical-7f0bf1e6cf879c742cb9a2b51e2cdcbc85c9a373.zip
added doc and jikes useflag support, stable on amd64.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'dev-java/crimson/crimson-1.1.3.ebuild')
-rw-r--r--dev-java/crimson/crimson-1.1.3.ebuild23
1 files changed, 16 insertions, 7 deletions
diff --git a/dev-java/crimson/crimson-1.1.3.ebuild b/dev-java/crimson/crimson-1.1.3.ebuild
index a68afd383bb0..08c91cfa0c6c 100644
--- a/dev-java/crimson/crimson-1.1.3.ebuild
+++ b/dev-java/crimson/crimson-1.1.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/crimson/crimson-1.1.3.ebuild,v 1.9 2005/01/01 18:21:21 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/crimson/crimson-1.1.3.ebuild,v 1.10 2005/02/03 20:12:52 luckyduck Exp $
inherit java-pkg
@@ -9,18 +9,27 @@ HOMEPAGE="http://xml.apache.org/crimson/"
SRC_URI="http://xml.apache.org/dist/crimson/${P}-src.tar.gz"
LICENSE="Apache-1.1"
SLOT="1"
-KEYWORDS="x86 ~ppc ~amd64"
-IUSE=""
-DEPEND=">=virtual/jdk-1.3"
+KEYWORDS="x86 ~ppc amd64"
+IUSE="doc jikes"
+DEPEND=">=virtual/jdk-1.3
+ dev-java/ant-core
+ jikes? ( dev-java/jikes )"
+RDEPEND=">=virtual/jre-1.3"
src_compile() {
- ant jars docs || die
+ local antflags="jars"
+ use doc && antflags="${antflags} docs"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ ant ${antflags} || die "ant failed"
}
src_install() {
java-pkg_dojar build/crimson.jar
dodoc build/ChangeLog
dohtml build/README.html
- java-pkg_dohtml -r build/docs
- java-pkg_dohtml -r -A class,java,xml build/examples
+
+ if use doc; then
+ java-pkg_dohtml -r build/docs
+ java-pkg_dohtml -r -A class,java,xml build/examples
+ fi
}