blob: 6d4586472ede944c5530ffed826d8d67102c3af2 (
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
52
53
54
55
56
57
58
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/mckoi/mckoi-1.0.3.ebuild,v 1.2 2004/12/21 12:04:06 axxo Exp $
inherit eutils java-pkg
DESCRIPTION="Mckoi Java SQL Database System"
HOMEPAGE="http://mckoi.com/database/"
SRC_URI="http://www.mckoi.com/database/ver/${P/-/}.zip"
LICENSE="GPL-2"
SLOT="1"
KEYWORDS="~x86"
IUSE="doc jikes"
DEPEND=">=virtual/jdk-1.4
>=dev-java/ant-core-1.6.2
app-arch/unzip
jikes? ( >=dev-java/jikes-1.21 )"
RDEPEND=">=virtual/jre-1.4
=dev-java/gnu-regexp-1.1*"
S=${WORKDIR}/${P/-/}
src_unpack() {
unpack ${A}
cd ${S}
unzip -q src.zip || die "unpack failed"
epatch ${FILESDIR}/mckoi-1.0.3-jikes.patch
rm gnu-regexp-*
rm *.jar
cp ${FILESDIR}/build.xml .
echo "gnu-regexp.jar=`java-config -p gnu-regexp-1`" > build.properties
cd src/
rm -rf net
}
src_compile() {
local antflags="jar"
if use doc; then
antflags="${antflags} docs"
fi
if use jikes; then
antflags="${antflags} -Dbuild.compiler=jikes"
fi
ant ${antflags} || die "compiling failed"
}
src_install() {
dodoc LICENSE.txt README.txt db.conf
java-pkg_dojar dist/mckoidb.jar
if use doc; then
java-pkg_dohtml -r docs/*
fi
}
|