diff options
author | Tim Harder <radhermit@gentoo.org> | 2014-04-25 06:08:27 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2014-04-25 06:08:27 +0000 |
commit | a2644a6e6b5b30c9dad98213757fefae58376029 (patch) | |
tree | 05bd1d66070db58279e48aa05d058563f1e9d349 /dev-java/slf4j-log4j12/slf4j-log4j12-1.7.7.ebuild | |
parent | version bump (diff) | |
download | historical-a2644a6e6b5b30c9dad98213757fefae58376029.tar.gz historical-a2644a6e6b5b30c9dad98213757fefae58376029.tar.bz2 historical-a2644a6e6b5b30c9dad98213757fefae58376029.zip |
Version bump.
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'dev-java/slf4j-log4j12/slf4j-log4j12-1.7.7.ebuild')
-rw-r--r-- | dev-java/slf4j-log4j12/slf4j-log4j12-1.7.7.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-java/slf4j-log4j12/slf4j-log4j12-1.7.7.ebuild b/dev-java/slf4j-log4j12/slf4j-log4j12-1.7.7.ebuild new file mode 100644 index 000000000000..45e02a27f2d0 --- /dev/null +++ b/dev-java/slf4j-log4j12/slf4j-log4j12-1.7.7.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/slf4j-log4j12/slf4j-log4j12-1.7.7.ebuild,v 1.1 2014/04/25 06:05:50 radhermit Exp $ + +EAPI=5 +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Simple Logging Facade for Java (SLF4J) log4j bindings" +HOMEPAGE="http://www.slf4j.org/" +SRC_URI="http://www.slf4j.org/dist/${P/-log4j12/}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +COMMON_DEPEND=" + dev-java/log4j:0 + dev-java/slf4j-api:0" +RDEPEND="${COMMON_DEPEND} + >=virtual/jre-1.5" +DEPEND="${COMMON_DEPEND} + >=virtual/jdk-1.5 + test? ( + dev-java/hamcrest-core:0 + dev-java/junit:4 + dev-java/ant-junit4:0 + )" + +S=${WORKDIR}/${P/-log4j12/}/${PN} + +EANT_GENTOO_CLASSPATH="log4j,slf4j-api" +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},hamcrest-core,junit-4" +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_EXTRA_ARGS="-Dmaven.build.finalName=${PN}" + +java_prepare() { + cp "${FILESDIR}"/${PN}-1.7.6-maven-build.xml build.xml || die + find "${WORKDIR}" -iname '*.jar' -delete || die +} + +src_test() { + java-pkg-2_src_test +} + +src_install() { + java-pkg_dojar target/${PN}.jar + use doc && java-pkg_dojavadoc target/site/apidocs + use source && java-pkg_dosrc src/main/java/org +} |