blob: 9c716a06886b4781412951e5ec1ca1fa49369562 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/odmg/odmg-3.0.ebuild,v 1.4 2005/07/15 20:21:08 axxo Exp $
inherit java-pkg
SRC_PN=db-ojb
SRC_PV=1.0.1
SRC_P=${SRC_PN}-${SRC_PV}
DESCRIPTION="The (now obsolete) ODMG 3.0 Java Binding, superceded by JDO."
SRC_URI="mirror://apache/db/ojb/${SRC_P}/${SRC_P}-src.tgz"
HOMEPAGE="http://www.odmg.org"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="x86 amd64"
RDEPEND=">=virtual/jre-1.3"
DEPEND=">=virtual/jdk-1.3
>=dev-java/ant-core-1.5
jikes? ( dev-java/jikes )"
IUSE="doc jikes"
S=${WORKDIR}/${SRC_P}
src_unpack() {
unpack ${A}
cd ${S}
cp ${FILESDIR}/build-odmg.xml .
sed -i -r -e "/import/d" -e "s/EnhancedOQL/OQL/g" \
src/java/org/odmg/Implementation.java || die
}
src_compile() {
local antflags="jar"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
use doc && antflags="${antflags} javadoc"
ant -f build-odmg.xml ${antflags} || die "build failed"
}
src_install() {
java-pkg_dojar dist/odmg.jar
dodoc NOTICE
use doc && java-pkg_dohtml -r target/javadoc/*
}
|