--- /dev/null
+# ChangeLog for dev-java/mx4j-tools
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j-tools/ChangeLog,v 1.1 2006/12/07 14:44:37 betelgeuse Exp $
+
+*mx4j-tools-3.0.1 (07 Dec 2006)
+
+ 07 Dec 2006; Petteri Räty <betelgeuse@gentoo.org>
+ +files/mx4j-tools-3.0.1-split-javadoc-build.patch, +metadata.xml,
+ +mx4j-tools-3.0.1.ebuild:
+ New split mx4j. Resolves bug #152924. Thanks to Alex Tarkovsky
+ <alextarkovsky@gmail.com>.
+
--- /dev/null
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX mx4j-tools-3.0.1-split-javadoc-build.patch 1979 RMD160 197b4d91dae38d2d43153924893167d07700ae1d SHA1 a8d279c8a2bbb3bab87c776864e3137428a9c8bc SHA256 e34ab853dc00c9cae2f7f41f7431f7ab2eb26bfe7a37decf46ffd8f827d3263b
+MD5 3db9a710b1534e8fc0d67133f5a29a9d files/mx4j-tools-3.0.1-split-javadoc-build.patch 1979
+RMD160 197b4d91dae38d2d43153924893167d07700ae1d files/mx4j-tools-3.0.1-split-javadoc-build.patch 1979
+SHA256 e34ab853dc00c9cae2f7f41f7431f7ab2eb26bfe7a37decf46ffd8f827d3263b files/mx4j-tools-3.0.1-split-javadoc-build.patch 1979
+DIST mx4j-3.0.1-src.tar.gz 622504 RMD160 fbbc976aebbe7af024992f15be7feb364d6d2b15 SHA1 e35d4935c0b780cb51760cc30322bf576523e319 SHA256 f6cef53b68b06d97041f77b69e091eb76f08d1bd0d92f48c9bea958e8cb5dcba
+EBUILD mx4j-tools-3.0.1.ebuild 2655 RMD160 644ceccb3b74bfe3b4986d019369d7692df6761d SHA1 6457d7d6fa351b92759506b0b53ec413539facb7 SHA256 53ba81fdc2cc8af81b2fc902d7936fecad7ff3c5538a279a0cab31981f832406
+MD5 2b63b79a66d378b60b43fb2d1ddd0b97 mx4j-tools-3.0.1.ebuild 2655
+RMD160 644ceccb3b74bfe3b4986d019369d7692df6761d mx4j-tools-3.0.1.ebuild 2655
+SHA256 53ba81fdc2cc8af81b2fc902d7936fecad7ff3c5538a279a0cab31981f832406 mx4j-tools-3.0.1.ebuild 2655
+MISC ChangeLog 492 RMD160 34aa26deee402807b16be20643d6ecdb01507e46 SHA1 fac34490e44a0fc420c8d341cf8e3298a95b7e9f SHA256 ccf823b90e51569cacaa550eebf1b47cab77fd158bcd6434404499bf8326c894
+MD5 03abde80719599c30ceb27dd51911175 ChangeLog 492
+RMD160 34aa26deee402807b16be20643d6ecdb01507e46 ChangeLog 492
+SHA256 ccf823b90e51569cacaa550eebf1b47cab77fd158bcd6434404499bf8326c894 ChangeLog 492
+MISC metadata.xml 889 RMD160 b4710dc114109cc4aaafed6f23345bae364bc419 SHA1 798ad4429ca92df8a2d51bd052fb688861e67fde SHA256 2bab20e1dd2a72731c4fce19fba4536e318a86fb4c8152a6c9f089097e9e064c
+MD5 f476be824d21fa43efc1f88717ff7be2 metadata.xml 889
+RMD160 b4710dc114109cc4aaafed6f23345bae364bc419 metadata.xml 889
+SHA256 2bab20e1dd2a72731c4fce19fba4536e318a86fb4c8152a6c9f089097e9e064c metadata.xml 889
+MD5 cc7604d7334a2b7d2171c2baacada25e files/digest-mx4j-tools-3.0.1 244
+RMD160 cd1c3fabbf60acb0b8a1830788962bf9b65ceff3 files/digest-mx4j-tools-3.0.1 244
+SHA256 d5e8a1a30175e8368ff175e886ae1a8227b7a5be0438286e4145459fc620bf71 files/digest-mx4j-tools-3.0.1 244
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.5 (GNU/Linux)
+
+iD8DBQFFeCjfcxLzpIGCsLQRAsUIAJ9iIggML4Oy27VaIgp9M+0k0CZVtwCeOSm9
+4SkveJKREJ+8UM3bFgr3tAs=
+=2eBu
+-----END PGP SIGNATURE-----
--- /dev/null
+MD5 eb5c08c4281aeb94c08ead7091b23dde mx4j-3.0.1-src.tar.gz 622504
+RMD160 fbbc976aebbe7af024992f15be7feb364d6d2b15 mx4j-3.0.1-src.tar.gz 622504
+SHA256 f6cef53b68b06d97041f77b69e091eb76f08d1bd0d92f48c9bea958e8cb5dcba mx4j-3.0.1-src.tar.gz 622504
--- /dev/null
+--- mx4j-3.0.1.orig/build/build.xml 2006-10-27 22:11:53.000000000 -0500
++++ mx4j-3.0.1/build/build.xml 2006-10-27 22:14:39.000000000 -0500
+@@ -417,7 +417,7 @@
+ </jar>\r
+ </target>\r
+ \r
+- <target name="javadocs" description="Creates the MX4J javadoc documentation" depends="compile.tools">\r
++ <target name="javadocs.core" description="Creates the MX4J javadoc documentation" depends="compile.rjmx">\r
+ <mkdir dir="${dist.docs.api.dir}"/>\r
+ <javadoc destdir="${dist.docs.api.dir}"\r
+ author="true"\r
+@@ -431,6 +431,23 @@
+ <group title="MX4J classes" packages="mx4j:mx4j.*"/>\r
+ <sourcepath>\r
+ <pathelement path="${core.src.dir}"/>\r
++ </sourcepath>\r
++ </javadoc>\r
++ </target>\r
++\r
++ <target name="javadocs.tools" description="Creates the MX4J javadoc documentation" depends="compile.tools">\r
++ <mkdir dir="${dist.docs.api.dir}"/>\r
++ <javadoc destdir="${dist.docs.api.dir}"\r
++ author="true"\r
++ version="true"\r
++ use="true"\r
++ windowtitle="MX4J API"\r
++ classpathref="classpath">\r
++ <package name="mx4j.*"/>\r
++\r
++ <bottom><![CDATA[<center><small>Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.</small></center>]]></bottom>\r
++ <group title="MX4J classes" packages="mx4j:mx4j.*"/>\r
++ <sourcepath>\r
+ <pathelement path="${tools.src.dir}"/>\r
+ </sourcepath>\r
+ </javadoc>\r
+@@ -478,7 +495,7 @@
+ \r
+ <target name="main" depends="tests, compile.examples"/>\r
+ \r
+- <target name="release" description="Builds a release of the MX4J project" depends="clean, manifest, releasing, main, docs, javadocs">\r
++ <target name="release" description="Builds a release of the MX4J project" depends="clean, manifest, releasing, main, docs, javadocs.core">\r
+ <mkdir dir="${release.dist.dir}"/>\r
+ <mkdir dir="${binary.release.dist.dir}"/>\r
+ <mkdir dir="${source.release.dist.dir}"/>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+<longdescription>
+MX4J is a project to build an Open Source implementation of the Java(TM) Management Extensions (JMX) and of the JMX Remote API (JSR 160) specifications, and to build tools relating to JMX.
+
+JMX is an optional package for J2SE that provides a standard way to manage applications. It can also be used to wrap legacy systems and provide a standard interface to the outside world, enabling the development of web services. JMX allows developers to write more modular and loosely coupled system components and reduce the complexity of large, interoperating systems.
+
+This package has the mx4j tools. To get everything that the upstream binary has emerge
+dev-java/mx4j with the appropriate use flags.
+</longdescription>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j-tools/mx4j-tools-3.0.1.ebuild,v 1.1 2006/12/07 14:44:37 betelgeuse Exp $
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_P=${P/-tools/}
+MY_PN=${PN/-tools/}
+
+DESCRIPTION="Optional tool classes and utilities for MX4J"
+HOMEPAGE="http://mx4j.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}-src.tar.gz"
+
+# The ${S}/BUILD-HOWTO is a good source for dependencies
+# This package could also be built with jdk-1.3; see special
+# handling instructions in ${S}/BUILD-HOWTO.
+
+# javamail and jython support is optional but because ant-core puts it in the classpath
+# if it is installed we can't force disable it without modifying the build.xml
+# and jikes refuses to compile mx4j with javamail support disabled
+
+# Optional jetty support can be enabled after jetty uses java-pkg_dojar to install jars
+
+RDEPEND="
+ dev-java/bcel
+ dev-java/commons-logging
+ dev-java/log4j
+ =www-servers/axis-1*
+ =dev-java/burlap-3.0*
+ =dev-java/hessian-3.0.8*
+ dev-java/jython
+ ~dev-java/servletapi-2.3
+ =dev-java/gnu-jaf-1*
+ =dev-java/gnu-javamail-1*"
+# >=www-servers/jetty-4.2
+DEPEND="${RDEPEND}
+ >=virtual/jdk-1.4
+ >=dev-java/ant-core-1.6
+ source? ( app-arch/zip )"
+RDEPEND="${RDEPEND}
+ >=virtual/jre-1.4"
+
+LICENSE="mx4j"
+SLOT="3.0"
+KEYWORDS="~x86"
+IUSE="doc source"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-split-javadoc-build.patch"
+
+ cd "${S}/lib"
+ java-pkg_jar-from bcel bcel.jar
+ java-pkg_jar-from commons-logging commons-logging.jar
+ java-pkg_jar-from log4j
+ java-pkg_jar-from axis-1
+ java-pkg_jar-from servletapi-2.3 servlet.jar
+
+ # optionals
+# java-pkg_jar-from jetty org.mortbay.jetty.jar
+ java-pkg_jar-from burlap-3.0
+ java-pkg_jar-from hessian-3.0.8
+ java-pkg_jar-from jython jython.jar
+ java-pkg_jar-from gnu-jaf-1 activation.jar
+ java-pkg_jar-from gnu-javamail-1 gnumail.jar mail.jar
+}
+
+src_compile() {
+ eant -f build/build.xml compile.tools $(use_doc javadocs.tools)
+}
+
+src_install() {
+ java-pkg_dojar dist/lib/mx4j-tools.jar
+ java-pkg_dowar dist/lib/mx4j-soap.war
+
+ dodoc README.txt
+ use doc && java-pkg_dojavadoc dist/docs/api
+ use source && java-pkg_dosrc "${S}/src/tools/*"
+}
+
+pkg_postinst() {
+ elog
+ elog "This package is currently built without Jetty support. Jetty support will be"
+ elog "added when Jetty is brought up-to-date in Portage with the new Java system."
+ elog "To track Jetty progress, see the following:"
+ elog
+ elog " http://bugs.gentoo.org/show_bug.cgi?id=94452"
+ elog " http://bugs.gentoo.org/show_bug.cgi?id=147469"
+ elog
+}