# 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.ebuild,v 1.4 2007/04/13 01:18:26 ali_bush Exp $ 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="doc source" # 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* dev-java/sun-javamail dev-java/sun-jms" RDEPEND=">=virtual/jre-1.4 ${CDEP}" DEPEND=">=virtual/jdk-1.4 dev-java/ant-core source? ( app-arch/zip ) ${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 sun-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/* }