summaryrefslogtreecommitdiff
blob: 2b7ddc49558e57aec8990c2ec742b5bcb39d7e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/xmlc/xmlc-2.2.5.ebuild,v 1.4 2006/10/05 15:53:30 gustavoz Exp $

inherit java-pkg

DESCRIPTION="Enhydra XMLC is the presentation technology that supports the needs of designers, developers and architects alike, delivering what JSP cannot - strict separation of markup and logic in a true object view of dynamic presentations."
HOMEPAGE="http://xmlc.objectweb.org/"
SRC_URI="http://download.forge.objectweb.org/${PN}/${PN}-src-${PV}.zip
	http://download.us.forge.objectweb.org/${PN}/${PN}-src-${PV}.zip"
DEPEND=">=virtual/jdk-1.3
	app-arch/unzip
	>=dev-java/ant-core-1.4
	jikes? ( >=dev-java/jikes-1.21 )"
RDEPEND=">=virtual/jre-1.3"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86 ppc amd64"
IUSE="doc jikes"

S="${WORKDIR}/${PN}-src-${PV}/"

src_compile() {
	local antflags="all-libs"
	use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
	use doc && antflags="${antflags} javadoc"
	ant ${antflags} || die "compile problem"
}

src_install() {
	java-pkg_dojar release/lib/*.jar
	dodoc release/lib/README
	# Move the generated documentation around
	use doc && mv ${PN}/modules/taskdef/doc ${PN}/modules/${PN}/doc/taskdef
	use doc && mv ${PN}/modules/wireless/doc ${PN}/modules/${PN}/doc/wireless
	use doc && mv ${PN}/modules/xhtml/doc ${PN}/modules/${PN}/doc/xhtml
	use doc && dohtml -r ${PN}/modules/xmlc/doc/*
}