summaryrefslogtreecommitdiff
blob: 22af68f7021acf46360518abf0983681c660da26 (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
39
40
41
42
43
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/ognl/ognl-2.6.7.ebuild,v 1.2 2006/01/22 05:06:27 nichoj Exp $

inherit java-pkg

DESCRIPTION="Object-Graph Navigation Language; it is an expression language for getting and setting properties of Java objects"
HOMEPAGE="http://www.ognl.org/"
SRC_URI="http://www.ognl.org/${PV}/${P}-dist.zip"

LICENSE="OpenSymphony-1.1"
SLOT="2.6"
KEYWORDS="~x86"
IUSE="doc source"

DEPEND=">=virtual/jdk-1.4
	dev-java/ant-core
	${RDEPEND}"
RDEPEND=">=virtual/jre-1.4
	dev-java/javacc
	=dev-java/javassist-3.1*"

S="${WORKDIR}"

src_unpack() {
	unpack ${A}
	cd ${S}/lib
	java-pkg_jar-from javacc
	java-pkg_jar-from javassist-3.1
}

src_compile() {
	local antflags="jar"
	use doc && antflags="${antflags} javadoc-doc -Djavadoc.output=doc/api"
	ant ${antflags} || die "ant failed"
}

src_install() {
	java-pkg_newjar ${P}.jar ${PN}.jar

	use doc && java-pkg_dohtml -r doc/api
	use source && java-pkg_dosrc java/*
}