blob: 10537113074edaf2fe56148d54a03a357afe9657 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/avalon-logkit/avalon-logkit-1.2.ebuild,v 1.13 2005/03/23 18:43:03 gustavoz Exp $
inherit java-pkg
DESCRIPTION="LogKit is an easy-to-use Java logging toolkit designed for secure, performance-oriented logging."
HOMEPAGE="http://avalon.apache.org/"
SRC_URI="mirror://apache/avalon/logkit/v${PV}/LogKit-${PV}-src.tar.gz"
DEPEND=">=virtual/jdk-1.3
dev-java/ant-core
dev-java/junit
jikes? ( dev-java/jikes )"
RDEPEND=">=virtual/jre-1.3
javamail? (
dev-java/sun-jaf-bin
|| (
dev-java/sun-javamail-bin
dev-java/gnu-javamail
)
)
jms? ( || (
dev-java/openjms
dev-java/jms
)
)"
LICENSE="Apache-1.1"
SLOT="1.2"
KEYWORDS="~x86 ~amd64 ~ppc64 ~sparc"
IUSE="doc javamail jikes jms"
S=${WORKDIR}/LogKit-${PV}
src_unpack() {
unpack ${A}
cd ${S}/lib
# decide which mail implementation we use
if use javamail; then
java-pkg_jar-from sun-jaf-bin
if has_version gnu-javamail; then
java-pkg_jar-from gnu-javamail
elif has_version sun-javamail-bin; then
java-pkg_jar-from sun-javamail-bin
fi
fi
# decide which jms implementation we use
if use jms; then
if has_version openjms; then
java-pkg_jar-from openjms
elif has_version jms; then
java-pkg_jar-from jms
fi
fi
}
src_compile() {
# not generating api docs because we would
# need avalon-site otherwise
local antflags="jar"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "Compilation failed"
}
src_install () {
java-pkg_dojar ${S}/build/lib/*.jar || die "Unable to Install"
use doc && java-pkg_dohtml -r docs/*
}
|