blob: 2aced54d16d1595e6b96d4bffe67963b4ecab6cf (
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
44
45
46
47
48
49
50
51
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jcalendar/jcalendar-1.2.2.ebuild,v 1.2 2005/01/06 21:29:54 luckyduck Exp $
inherit eutils java-pkg
DESCRIPTION="Java date chooser bean for graphically picking a date."
SRC_URI="http://www.toedter.com/download/${PN}.zip"
HOMEPAGE="http://www.toedter.com/en/jcalendar/"
LICENSE="LGPL-2.1"
SLOT="1.2"
KEYWORDS="~x86 ~amd64"
IUSE="doc jikes"
DEPEND=">=virtual/jdk-1.4
jikes? ( >=dev-java/jikes-1.21 )
>=dev-java/ant-core-1.4
=dev-java/jgoodies-looks-1.2*
>=app-arch/unzip-5.50-r1"
RDEPEND=">=virtual/jdk-1.4"
S=${WORKDIR}
src_unpack() {
unpack ${A}
cd ${S}/lib
rm -f looks-1.2.2.jar
java-pkg_jar-from jgoodies-looks-1.2 looks.jar looks-1.2.2.jar
}
src_compile() {
cd src/
local antflags="jar"
if use doc; then
antflags="${antflags} javadocs"
fi
if use jikes; then
antflags="${antflags} -Dbuild.compiler=jikes"
fi
ant ${antflags} || die "failed to build"
}
src_install() {
java-pkg_dojar lib/jcalendar.jar
dodoc jcalendar-license.txt readme.txt
if use doc; then
java-pkg_dohtml -r doc/*
fi
}
|