blob: ca18fec627eeef8db08c2f3d26fa0d16e226ad2b (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
JAVA_PKG_BSFIX="off"
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Swing components for date operations and palettes"
HOMEPAGE="http://microba.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}-full.zip"
LICENSE="BSD"
KEYWORDS="amd64 ppc x86"
SLOT="0"
COMMON_DEPEND=">=dev-java/jgraph-5.9.2"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
${COMMON_DEPEND}"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEPEND}"
IUSE=""
S="${WORKDIR}"
src_unpack() {
unpack ${A}
cd "${S}"
unpack ./${P}-sources.jar
rm *.jar || die
# do not delete stuff after it's zipped
sed -i -e "s/<delete/<mkdir/" build.xml
cd lib-compiletime
rm *.jar || die
java-pkg_jar-from jgraph jgraph.jar
}
EANT_BUILD_TARGET="bin_release"
EANT_DOC_TARGET="doc_release"
src_install() {
java-pkg_newjar redist/${P}.jar
dodoc *.txt || die
use doc && java-pkg_dojavadoc javadoc
use source && java-pkg_dosrc src/com
}
|