blob: cc2c2479867c7d7b85f408ba0f1b17c53af0e3a6 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Copyright 1999-2008 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-r3.ebuild,v 1.6 2008/03/22 22:45:02 betelgeuse Exp $
EAPI=1
JAVA_PKG_IUSE="doc source"
WANT_ANT_TASKS="ant-nodeps"
inherit java-pkg-2 java-ant-2 eutils
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="amd64 x86 ~x86-fbsd"
IUSE=""
COMMON_DEP="dev-java/javacc
>=dev-java/commons-collections-2.1
>=dev-java/commons-primitives-1.0
dev-java/commons-logging
>=dev-java/commons-codec-1.2
>=dev-java/log4j-1.2
=dev-java/jakarta-regexp-1.3*"
RDEPEND="|| (
=virtual/jre-1.5*
=virtual/jre-1.4* )
${COMMON_DEP}"
DEPEND="|| (
=virtual/jdk-1.5*
=virtual/jdk-1.4* )
${COMMON_DEP}"
S="${WORKDIR}/${PN}-1.0-M2"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/commons-codec.patch"
echo javacc.home=/usr/share/javacc/lib/ > build.properties
mkdir lib test
cd lib
java-pkg_jar-from commons-collections
java-pkg_jar-from commons-primitives
java-pkg_jar-from commons-logging
java-pkg_jar-from commons-codec
java-pkg_jar-from log4j
java-pkg_jar-from jakarta-regexp-1.3
cd "${S}/"
# These files are re-created by javacc, if they are not removed the compile
# will fail:
rm -v \
src/org/axiondb/parser/TokenMgrError.java \
src/org/axiondb/parser/ParseException.java \
src/org/axiondb/parser/Token.java \
src/org/axiondb/parser/SimpleCharStream.java \
|| die
}
EANT_BUILD_TARGET="compile jar"
# The test dir is empty
src_test() { :; }
src_install() {
java-pkg_newjar bin/axion-1.0-M2.jar
use doc && java-pkg_dojavadoc bin/docs/api
use source && java-pkg_dosrc src/*
}
|