blob: 751b51706a373af05a91a791ec735a4034272d14 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=2
JAVA_PKG_IUSE="doc source test"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Easy-to-use Java logging toolkit"
HOMEPAGE="http://avalon.apache.org/"
SRC_URI="mirror://apache/excalibur/excalibur-logkit/source/${P}-src.tar.gz"
KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
LICENSE="Apache-2.0"
SLOT="2.0"
IUSE=""
COMMON_DEP="
dev-java/log4j
java-virtuals/jms
java-virtuals/javamail
=dev-java/servletapi-2.4*"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
# Doesn't like 1.6 changes to JDBC
DEPEND=">=virtual/jdk-1.4
test? (
=dev-java/junit-3*
dev-java/ant-junit
)
${COMMON_DEP}"
java_prepare() {
epatch "${FILESDIR}/${P}-java7.patch"
java-ant_ignore-system-classes
java-ant_xml-rewrite -f build.xml \
-c -e available -a classpathref -v 'build.classpath' || die
mkdir -p target/lib || die
cd target/lib || die
java-pkg_jar-from servletapi-2.4
java-pkg_jar-from jms
java-pkg_jar-from --virtual javamail
java-pkg_jar-from log4j
java-pkg_filter-compiler jikes
}
src_test() {
java-pkg_jar-from --into target/lib junit
ANT_TASKS="ant-junit" eant test
}
src_install() {
java-pkg_newjar target/${P}.jar
use doc && java-pkg_dojavadoc dist/docs/api
use source && java-pkg_dosrc src/java/*
}
|