blob: 6c529176db0af66316e179cf8a8e1fe047fb796e (
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
# $Header: /var/cvsroot/gentoo-x86/dev-java/microba/microba-0.4.3.ebuild,v 1.7 2007/03/02 19:16:28 nixnut Exp $
# does not need java-ant-2, source and target is already set to 1.4
inherit java-pkg-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
dev-java/ant-core
app-arch/unzip
source? ( app-arch/zip )
${COMMON_DEPEND}"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEPEND}"
IUSE="doc source"
S="${WORKDIR}"
src_unpack() {
unpack ${A}
cd "${S}"
unzip -qq "redist/${P}-src.zip"
rm lib-compiletime/*.jar
rm redist/*
# do not delete stuff after it's zipped
sed -i -e "/<delete/d" build.xml
cd lib-compiletime
java-pkg_jar-from jgraph jgraph.jar
}
src_compile() {
eant bin_release $(use_doc doc_release)
}
src_install() {
java-pkg_newjar redist/${P}-bin.jar
dodoc *.txt
use doc && java-pkg_dojavadoc javadoc
use source && java-pkg_dosrc src/com
}
|