blob: a8cc7b670d6eb1ff44ddf0efb4ba25fd9be699e6 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/axion/axion-1.0_rc2.ebuild,v 1.10 2005/01/01 18:09:26 eradicator Exp $
inherit java-pkg
DESCRIPTION="Java RDMS with SQL and JDBC"
HOMEPAGE="http://axion.tigris.org/"
SRC_URI="http://axion.tigris.org/releases/1.0M2/axion-1.0-M2-src.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="x86"
IUSE="doc jikes junit"
RDEPEND=">=dev-java/commons-collections-2.1
>=dev-java/commons-primitives-1.0*
>=dev-java/commons-codec-1.2*
>=dev-java/log4j-1.2*
>=dev-java/regexp-1.3-r1"
DEPEND="${RDEPEND}
jikes? >=dev-java/jikes-1.19
junit? >=dev-java/junit-3.8.1
>=dev-java/ant-1.5.4"
S=${WORKDIR}/${PN}-1.0-M2
src_unpack() {
unpack ${A}
cd ${S}
mkdir lib test
(
cd lib
java-pkg_jar-from junit || die junit
java-pkg_jar-from commons-collections || die commons-collections
java-pkg_jar-from commons-primitives || die commons-primitives
java-pkg_jar-from commons-logging || die commons-logging
java-pkg_jar-from commons-codec || die commons-codec
java-pkg_jar-from log4j || die log4j
java-pkg_jar-from regexp || die regexp
)
echo javacc.home=/usr/share/javacc/lib \
> build.properties
}
src_compile() {
local antflags="compile jar"
use jikes && antflags="-Dbuild.compiler=jikes ${antflags}"
use doc && antflags="${antflags} javadoc"
use junit && antflags="${antflags} test"
ant ${antflags} || die "Compilation failed"
}
src_install() {
java-pkg_dojar bin/axion-1.0-M2.jar
use doc && java-pkg_dohtml -r bin/docs/api
}
|