You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/excalibur-logger/excalibur-logger-2.1-r1.ebuild

56 lines
1.3 KiB

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/excalibur-logger/excalibur-logger-2.1-r1.ebuild,v 1.1 2007/11/20 05:27:33 ali_bush Exp $
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Logger from the Excalibur containerkit"
HOMEPAGE="http://excalibur.apache.org/containerkit.html"
SRC_URI="mirror://apache/${PN//-logger}/${PN}/source/${P}-src.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
# Needs 2.1 of avalon-logkit
# which does not have the jms and javamail use flags
# that are needed for this package to build
CDEP="
=dev-java/avalon-logkit-2.1*
=dev-java/avalon-framework-4.2*
dev-java/log4j
=dev-java/servletapi-2.4*
java-virtuals/javamail
dev-java/sun-jms"
RDEPEND=">=virtual/jre-1.4
${CDEP}"
DEPEND=">=virtual/jdk-1.4
dev-java/ant-core
${CDEP}"
src_unpack() {
unpack ${A}
cd "${S}"
mkdir -p target/lib
cd target/lib
java-pkg_jar-from avalon-logkit-2.0
java-pkg_jar-from avalon-framework-4.2
java-pkg_jar-from log4j
java-pkg_jar-from servletapi-2.4
java-pkg_jar-from --virtual javamail
java-pkg_jar-from sun-jms
}
src_install() {
java-pkg_newjar target/${P}.jar
dodoc NOTICE.txt
use doc && java-pkg_dojavadoc dist/docs/api
use source && java-pkg_dosrc src/java/*
}