blob: 434c950b8e0cc5c1748ac1412e596a440398087e (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/cdegroot-db/cdegroot-db-0.08.ebuild,v 1.7 2005/05/18 11:32:32 corsair Exp $
inherit java-pkg eutils
DESCRIPTION="OO database written in Java"
HOMEPAGE="http://www.cdegroot.com/software/db/"
SRC_URI="http://www.cdegroot.com/software/db/download/com.${P/-/.}.tar.gz"
LICENSE="cdegroot"
SLOT="1"
KEYWORDS="amd64 x86 ppc64 sparc ppc"
IUSE="doc jikes source"
DEPEND=">=virtual/jdk-1.4
dev-java/ant-core
jikes? ( dev-java/jikes )
source? ( app-arch/zip )"
RDEPEND=">=virtual/jre-1.4"
S=${WORKDIR}/com.${P/-/.}
src_unpack() {
unpack ${A}
rm -rf ${S}/src/db/test
cd ${S}
cp ${FILESDIR}/build.xml ${S}/build.xml
epatch ${FILESDIR}/${P}-gentoo.patch
}
src_compile() {
local antflags="jar"
use doc && antflags="${antflags} docs"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "ant failed"
}
src_install() {
java-pkg_dojar dist/${PN}.jar
dodoc TODO VERSION CHANGES BUGS README
use doc && java-pkg_dohtml docs/*
use source && java-pkg_dosrc src/*
}
|