blob: 66887b428ed01ca2ffe38e5020977700acdb4397 (
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
59
60
61
62
63
|
# Copyright 1999-2009 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-r2.ebuild,v 1.2 2009/12/10 19:59:32 maekke Exp $
EAPI=2
JAVA_PKG_IUSE="doc examples source"
JAVA_PKG_WANT_BOOTCLASSPATH="1.5"
inherit eutils java-pkg-2 java-ant-2
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="amd64 x86"
IUSE=""
COMMON_DEP="=dev-java/gnu-regexp-1.1*"
RDEPEND=">=virtual/jre-1.5
${COMMON_DEP}"
DEPEND=">=virtual/jdk-1.5
app-arch/unzip
${COMMON_DEP}"
S="${WORKDIR}/${P/-/}"
# uses enum as identifier
JAVA_PKG_WANT_SOURCE="1.4"
JAVA_PKG_WANT_TARGET="1.4"
src_unpack() {
default
cd "${S}"
unpack ./src.zip
}
java_prepare() {
epatch "${FILESDIR}/${P}-jikes.patch"
cp "${FILESDIR}/build.xml" . || die
java-ant_rewrite-classpath
java-ant_rewrite-bootclasspath 1.5
rm -v gnu-regexp-*
rm -v *.jar
find demo -name '*.class' -delete
# some contrib stuff depending on jboss
rm -rf src/net
}
EANT_DOC_TARGET="docs"
EANT_GENTOO_CLASSPATH="gnu-regexp-1"
src_install() {
java-pkg_dojar dist/mckoidb.jar
dodoc README.txt db.conf
# apidocs are in expected place
use doc && java-pkg_dohtml -r docs/*
use examples && java-pkg_doexamples demo
use source && java-pkg_dosrc src/*
}
|