blob: 089a02c739ada230bf93ef6963c0100084f8b566 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/joda-time/joda-time-1.0.ebuild,v 1.3 2005/10/07 18:57:32 betelgeuse Exp $
inherit java-pkg
DESCRIPTION="Joda-Time is an open-source project to provide a quality Java date and time API."
HOMEPAGE="http://joda-time.sourceforge.net/"
SRC_URI="mirror://sourceforge/joda-time/${P}-src.tar.gz"
LICENSE="joda"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="doc jikes"
DEPEND=">=virtual/jdk-1.3
>=dev-java/ant-1.4
jikes? ( dev-java/jikes )"
RDEPEND=">=virtual/jre-1.3"
src_compile() {
local antflags="jar -Djunit.jar=$(java-pkg_getjars junit)"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
use doc && antflags="${antflags} javadoc"
ant ${antflags} || die "compile problem"
}
src_install() {
java-pkg_newjar build/${P}.jar ${PN}.jar
use doc && java-pkg_dohtml -r build/docs/
}
|