blob: 0d64471ec5a2b61a02458ee374852d34bc68fb0a (
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
|
# 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.21 2005/07/13 14:05:58 swegener 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"
RDEPEND=">=virtual/jre-1.3
javamail? (
dev-java/sun-jaf-bin
|| (
dev-java/sun-javamail-bin
dev-java/gnu-javamail
)
)
jms? ( || (
!ppc? ( dev-java/openjms )
dev-java/jms
)
)"
DEPEND=">=virtual/jdk-1.3
dev-java/ant-core
dev-java/junit
source? ( app-arch/zip )
jikes? ( dev-java/jikes )
${RDEPEND}"
LICENSE="Apache-1.1"
SLOT="1.2"
KEYWORDS="x86 amd64 ppc64 sparc ppc"
IUSE="doc javamail jikes jms source"
S=${WORKDIR}/LogKit-${PV}
src_unpack() {
unpack ${A}
cd ${S}/lib
rm -f *.jar
# decide which mail implementation we use
if use javamail; then
java-pkg_jar-from sun-jaf-bin
if has_version dev-java/gnu-javamail; then
java-pkg_jar-from gnu-javamail
elif has_version dev-java/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 dev-java/openjms; then
java-pkg_jar-from openjms
elif has_version dev-java/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/*
use source && java-pkg_dosrc src/java/*
}
|