summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-02-22 16:15:01 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-02-22 16:15:01 +0000
commita40391cae3c83bf4ef22b7d8aaabc8f3da2b02c0 (patch)
treea496ae02f3bd483842274c46ce9a3b7c0d197cbb /dev-java
parentVersion bumped. (diff)
downloadgentoo-2-a40391cae3c83bf4ef22b7d8aaabc8f3da2b02c0.tar.gz
gentoo-2-a40391cae3c83bf4ef22b7d8aaabc8f3da2b02c0.tar.bz2
gentoo-2-a40391cae3c83bf4ef22b7d8aaabc8f3da2b02c0.zip
Initial import, ebuilds contributed by Mark Wolfe <mwolfe@netspace.net.au> and Saleem A. <compnerd@gentoo.org>. fixes #63284
(Portage version: 2.0.51.16)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/avalon-logkit/ChangeLog11
-rw-r--r--dev-java/avalon-logkit/Manifest7
-rw-r--r--dev-java/avalon-logkit/avalon-logkit-1.2.ebuild71
-rw-r--r--dev-java/avalon-logkit/avalon-logkit-2.0.ebuild92
-rw-r--r--dev-java/avalon-logkit/files/2.0-build.xml64
-rw-r--r--dev-java/avalon-logkit/files/digest-avalon-logkit-1.21
-rw-r--r--dev-java/avalon-logkit/files/digest-avalon-logkit-2.01
-rw-r--r--dev-java/avalon-logkit/metadata.xml5
8 files changed, 252 insertions, 0 deletions
diff --git a/dev-java/avalon-logkit/ChangeLog b/dev-java/avalon-logkit/ChangeLog
new file mode 100644
index 000000000000..51b862b30787
--- /dev/null
+++ b/dev-java/avalon-logkit/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/avalon-logkit
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/avalon-logkit/ChangeLog,v 1.8 2005/02/22 16:15:01 luckyduck Exp $
+
+*avalon-logkit-1.2 (22 Feb 2005)
+
+ 22 Feb 2005; Jan Brinkmann <luckyduck@gentoo.org> +metadata.xml,
+ +files/2.0-build.xml, +avalon-logkit-1.2.ebuild, +avalon-logkit-2.0.ebuild:
+ Initial import, ebuilds contributed by Mark Wolfe <mwolfe@netspace.net.au> and
+ Saleem A. <compnerd@gentoo.org>. fixes #63284
+
diff --git a/dev-java/avalon-logkit/Manifest b/dev-java/avalon-logkit/Manifest
new file mode 100644
index 000000000000..4041fdcc5388
--- /dev/null
+++ b/dev-java/avalon-logkit/Manifest
@@ -0,0 +1,7 @@
+MD5 60a8405a799681aa682281637f498464 ChangeLog 346
+MD5 e4a5407592a278deae8f9b563dcce703 avalon-logkit-1.2.ebuild 1196
+MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157
+MD5 ff46cb56d91106d16163e22187db205e avalon-logkit-2.0.ebuild 1899
+MD5 1d4fb92234d539c16377690ccc278dbb files/2.0-build.xml 1931
+MD5 59f31286545f93f7dfa4a5e40cfb19a4 files/digest-avalon-logkit-1.2 66
+MD5 f5ee024795ce428b5418141110096d4d files/digest-avalon-logkit-2.0 78
diff --git a/dev-java/avalon-logkit/avalon-logkit-1.2.ebuild b/dev-java/avalon-logkit/avalon-logkit-1.2.ebuild
new file mode 100644
index 000000000000..e2dc8332fbf5
--- /dev/null
+++ b/dev-java/avalon-logkit/avalon-logkit-1.2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/avalon-logkit/avalon-logkit-1.2.ebuild,v 1.9 2005/02/22 16:15:01 luckyduck Exp $
+
+
+inherit java-pkg
+
+DESCRIPTION="LogKit is an easy-to-use Java logging toolkit designed for secure, performance-oriented logging."
+HOMEPAGE="http://avalon.apache.org/"
+SRC_URI="mirror://apache/avalon/logkit/v${PV}/LogKit-${PV}-src.tar.gz"
+DEPEND=">=virtual/jdk-1.3
+ dev-java/ant-core
+ jikes? ( dev-java/jikes )"
+RDEPEND=">=virtual/jre-1.3
+ javamail? (
+ dev-java/sun-jaf-bin
+ || (
+ dev-java/sun-javamail-bin
+ gnu-javamail
+ )
+ )
+ jms? ( || (
+ dev-java/openjms
+ dev-java/jms
+ )
+ )"
+
+LICENSE="Apache-1.1"
+SLOT="1.2"
+KEYWORDS="~x86 ~amd64"
+IUSE="doc javamail jikes jms"
+
+S=${WORKDIR}/LogKit-${PV}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}/lib
+
+ # decide which mail implementation we use
+ if use javamail; then
+ java-pkg_jar-from sun-jaf-bin
+
+ if has_version gnu-javamail; then
+ java-pkg_jar-from gnu-javamail
+ elif has_version sun-javamail-bin; then
+ java-pkg_jar-from sun-javamail-bin
+ fi
+ fi
+
+ # decide which jms implementation we use
+ if use jms; then
+ if has_version openjms; then
+ java-pkg_jar-from openjms
+ elif has_version jms; then
+ java-pkg_jar-from jms
+ fi
+ fi
+}
+
+src_compile() {
+ # not generating api docs because we would
+ # need avalon-site otherwise
+ local antflags="jar"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ ant ${antflags} || die "Compilation failed"
+}
+
+src_install () {
+ java-pkg_dojar ${S}/build/lib/*.jar || die "Unable to Install"
+ use doc && java-pkg_dohtml -r docs/*
+}
diff --git a/dev-java/avalon-logkit/avalon-logkit-2.0.ebuild b/dev-java/avalon-logkit/avalon-logkit-2.0.ebuild
new file mode 100644
index 000000000000..b840490329f7
--- /dev/null
+++ b/dev-java/avalon-logkit/avalon-logkit-2.0.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2005 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.0.ebuild,v 1.1 2005/02/22 16:15:01 luckyduck Exp $
+
+inherit java-pkg
+
+DESCRIPTION="Easy-to-use Java logging toolkit"
+HOMEPAGE="http://avalon.apache.org/"
+SRC_URI="mirror://apache/avalon/avalon-logkit/distributions/${PF}.dev-0-src.tar.gz"
+KEYWORDS="~x86 ~amd64"
+LICENSE="Apache-2.0"
+SLOT="2.0"
+IUSE="doc jikes jms javamail"
+DEPEND=">=virtual/jdk-1.4
+ jikes? ( >=dev-java/jikes-1.21 )
+ >=dev-java/ant-1.5"
+RDEPEND=">=virtual/jre-1.4
+ dev-java/log4j
+ jms? ( || (
+ dev-java/jms
+ dev-java/openjms
+ )
+ )
+ javamail? ( || (
+ dev-java/gnu-javamail
+ dev-java/sun-javamail-bin
+ )
+ dev-java/servletapi
+ )"
+
+S=${WORKDIR}/${PF}.dev-0
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # the build.xml file for ant
+ cp ${FILESDIR}/${PV}-build.xml ./build.xml
+
+ # decide which mail implementation we use
+ local javamail=""
+ if use javamail; then
+ if has_version gnu-javamail; then
+ javamail="gnu-javamail"
+ elif has_version sun-javamail-bin; then
+ javamail="sun-javamail-bin"
+ fi
+ fi
+
+ # decide which jms implementation we use
+ local jms=""
+ if use jms; then
+ if has_version openjms; then
+ jms="openjms"
+ elif has_version jms; then
+ jms="jms"
+ fi
+ fi
+
+ local libs="log4j"
+ use jms && libs="${libs},${jms}"
+ use javamail && libs="${libs},${javamail}"
+
+ echo "classpath=`java-config -p ${libs}`" > build.properties
+
+ cd ${S}/src/java/org/apache/log/output/
+
+ if ! use jms; then
+ einfo "Removing jms related files"
+ rm -rf jms || die "JMS Failure!"
+ rm -f ServletOutputLogTarget.java || die "JMS Failure!"
+ fi
+
+ if ! use javamail; then
+ einfo "Removing javamail related files"
+ rm -rf net || die "JavaMail Failure!"
+ fi
+}
+
+src_compile() {
+ local antflags="jar"
+ use doc && antflags="${antflags} javadoc"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ ant ${antflags} || die "Build Failed!"
+}
+
+src_install() {
+ java-pkg_dojar ${S}/dist/avalon-logkit.jar || die "Install Failed!"
+
+ dodoc README.txt LICENSE.txt
+ use doc && java-pkg_dohtml -r ${S}/dist/docs/*
+}
diff --git a/dev-java/avalon-logkit/files/2.0-build.xml b/dev-java/avalon-logkit/files/2.0-build.xml
new file mode 100644
index 000000000000..0585b4d59fb0
--- /dev/null
+++ b/dev-java/avalon-logkit/files/2.0-build.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project default="jar" name="avalon-logkit" basedir=".">
+ <property file="build.properties"/>
+ <property file="default.properties"/>
+
+ <property name="libs" value="${basedir}/libs"/>
+ <property name="src" value="${basedir}/src/java"/>
+ <property name="target" value="${basedir}/target"/>
+ <property name="dist" value="${basedir}/dist"/>
+
+ <property name="jarfile" value="avalon-logkit.jar"/>
+
+ <property name="javadoc" value="${dist}/docs"/>
+ <property name="packages" value="org.apache.log.*"/>
+
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${target}"/>
+ <mkdir dir="${dist}"/>
+ <mkdir dir="${javadoc}"/>
+ </target>
+
+ <target name="compile" depends="init">
+ <javac srcdir="${src}"
+ destdir="${target}"
+ deprecation="true"
+ excludes="**/package.html"
+ classpath="${classpath}"/>
+
+ <copy toDir="${target}">
+ <fileset dir="${src}">
+ <include name="**/*.dtd"/>
+ <include name="**/*.properties"/>
+ <include name="**/*.xinfo"/>
+ <include name="**/*.xtype"/>
+ <include name="**/*.xprofile"/>
+ <include name="**/*.xconfig"/>
+ <include name="**/*.xml"/>
+ <include name="**/*.xservice"/>
+ </fileset>
+ </copy>
+
+ <copy toDir="${target}">
+ <fileset dir=".">
+ <include name="block.xml"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="javadoc" depends="compile">
+ <javadoc sourcepath="${src}"
+ destdir="${javadoc}"
+ packagenames="${packages}"
+ classpath="${classpath}"
+ source="1.4"/>
+ </target>
+
+ <target name="jar" depends="init,compile">
+ <jar jarfile="${dist}/${jarfile}"
+ excludes="**/package.html"
+ basedir="${target}"/>
+ </target>
+</project>
diff --git a/dev-java/avalon-logkit/files/digest-avalon-logkit-1.2 b/dev-java/avalon-logkit/files/digest-avalon-logkit-1.2
new file mode 100644
index 000000000000..95649c6de514
--- /dev/null
+++ b/dev-java/avalon-logkit/files/digest-avalon-logkit-1.2
@@ -0,0 +1 @@
+MD5 17ede0a7d297ad610b47c476757c2b96 LogKit-1.2-src.tar.gz 239132
diff --git a/dev-java/avalon-logkit/files/digest-avalon-logkit-2.0 b/dev-java/avalon-logkit/files/digest-avalon-logkit-2.0
new file mode 100644
index 000000000000..bb30207dc871
--- /dev/null
+++ b/dev-java/avalon-logkit/files/digest-avalon-logkit-2.0
@@ -0,0 +1 @@
+MD5 fded0316383d82b1cee4c799876f56d5 avalon-logkit-2.0.dev-0-src.tar.gz 59466
diff --git a/dev-java/avalon-logkit/metadata.xml b/dev-java/avalon-logkit/metadata.xml
new file mode 100644
index 000000000000..838c00a4a448
--- /dev/null
+++ b/dev-java/avalon-logkit/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+</pkgmetadata>