summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2004-12-07 15:16:02 +0000
committerThomas Matthijs <axxo@gentoo.org>2004-12-07 15:16:02 +0000
commitd75101c16a95ee22730b7ba19aaec88cb74260e7 (patch)
tree79041ea191d94567533ab398cd023bf09249fc95 /dev-java/log4j/log4j-1.2.9.ebuild
parentStable on sparc (Manifest recommit) (diff)
downloadgentoo-2-d75101c16a95ee22730b7ba19aaec88cb74260e7.tar.gz
gentoo-2-d75101c16a95ee22730b7ba19aaec88cb74260e7.tar.bz2
gentoo-2-d75101c16a95ee22730b7ba19aaec88cb74260e7.zip
version bump
Diffstat (limited to 'dev-java/log4j/log4j-1.2.9.ebuild')
-rw-r--r--dev-java/log4j/log4j-1.2.9.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-java/log4j/log4j-1.2.9.ebuild b/dev-java/log4j/log4j-1.2.9.ebuild
new file mode 100644
index 000000000000..e134a603963b
--- /dev/null
+++ b/dev-java/log4j/log4j-1.2.9.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/log4j/log4j-1.2.9.ebuild,v 1.1 2004/12/07 15:16:02 axxo Exp $
+
+inherit java-pkg
+
+DESCRIPTION="A low-overhead robust logging package for Java"
+SRC_URI="mirror://apache/logging/log4j/${PV}/logging-${P}.tar.gz"
+HOMEPAGE="http://jakarta.apache.org"
+LICENSE="Apache-1.1"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="jikes doc javamail jmx jms"
+DEPEND=">=virtual/jdk-1.4
+ dev-java/ant-core
+ javamail? ( dev-java/sun-javamail-bin dev-java/sun-jaf-bin )
+ jmx? ( dev-java/jmx )
+ jms? ( =dev-java/openjms-bin-0.7.6 )
+ jikes? ( dev-java/jikes )"
+RDEPEND=">=virtual/jre-1.4"
+
+S="${WORKDIR}/logging-${P}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ rm -rf dist/
+}
+
+src_compile() {
+ local antflags="jar"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ use javamail && antflags="${antflags} -Djavamail.jar=/usr/share/sun-javamail-bin/lib/mail.jar -Dactivation.jar=/usr/share/sun-jaf-bin/lib/activation.jar"
+ use jmx && antflags="${antflags} -Djmx.jar=/usr/share/jmx/lib/jmxri.jar -Djmx-extra.jar=/usr/share/jmx/lib/jmxtools.jar"
+ use jms && antflags="${antflags} -Djms.jar=/opt/openjms/lib/jms-1.0.2a.jar"
+ ant ${antflags} || die "compilation error"
+}
+
+src_install() {
+ cd dist/lib
+ mv log4j-${PV}.jar ${PN}.jar
+ java-pkg_dojar ${PN}.jar
+
+ cd ${S}
+ use doc && java-pkg_dohtml -r docs/*
+}
+