summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2007-11-20 05:23:04 +0000
committerAlistair Bush <ali_bush@gentoo.org>2007-11-20 05:23:04 +0000
commitcf195ad56446aaaa0ec6443b87b98da41119aec8 (patch)
treec98c490733e65fc126ba0b890382b16d34d43573 /dev-java/avalon-logkit/avalon-logkit-2.1-r2.ebuild
parentStable on mips, per #194017. (diff)
downloadgentoo-2-cf195ad56446aaaa0ec6443b87b98da41119aec8.tar.gz
gentoo-2-cf195ad56446aaaa0ec6443b87b98da41119aec8.tar.bz2
gentoo-2-cf195ad56446aaaa0ec6443b87b98da41119aec8.zip
Bumping to support javamail virtual.
(Portage version: 2.1.3.19)
Diffstat (limited to 'dev-java/avalon-logkit/avalon-logkit-2.1-r2.ebuild')
-rw-r--r--dev-java/avalon-logkit/avalon-logkit-2.1-r2.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-java/avalon-logkit/avalon-logkit-2.1-r2.ebuild b/dev-java/avalon-logkit/avalon-logkit-2.1-r2.ebuild
new file mode 100644
index 000000000000..72e2ffb448a1
--- /dev/null
+++ b/dev-java/avalon-logkit/avalon-logkit-2.1-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/avalon-logkit/avalon-logkit-2.1-r2.ebuild,v 1.1 2007/11/20 05:23:03 ali_bush Exp $
+
+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 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+LICENSE="Apache-2.0"
+SLOT="2.0"
+IUSE=""
+
+COMMON_DEP="
+ dev-java/log4j
+ dev-java/sun-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.5*
+ =virtual/jdk-1.4*
+ )
+ test? (
+ =dev-java/junit-3*
+ dev-java/ant-junit
+ )
+ ${COMMON_DEP}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ 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 sun-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/*
+}