+++ /dev/null
-diff -Nru mx4j-3.0.2.vanilla/src/tools/mx4j/tools/remote/caucho/serialization/JMXDeserializer.java mx4j-3.0.2/src/tools/mx4j/tools/remote/caucho/serialization/JMXDeserializer.java
---- mx4j-3.0.2.vanilla/src/tools/mx4j/tools/remote/caucho/serialization/JMXDeserializer.java 2010-04-03 13:09:19.815790652 +0100
-+++ mx4j-3.0.2/src/tools/mx4j/tools/remote/caucho/serialization/JMXDeserializer.java 2010-04-03 13:09:29.096398617 +0100
-@@ -12,13 +12,13 @@
- import java.io.IOException;
- import java.io.ObjectInputStream;
-
-+import com.caucho.hessian.io.AbstractDeserializer;
- import com.caucho.hessian.io.AbstractHessianInput;
--import com.caucho.hessian.io.Deserializer;
-
- /**
- * @version $
- */
--class JMXDeserializer extends Deserializer
-+class JMXDeserializer extends AbstractDeserializer
- {
- private Class type;
-
-diff -Nru mx4j-3.0.2.vanilla/src/tools/mx4j/tools/remote/caucho/serialization/JMXSerializer.java mx4j-3.0.2/src/tools/mx4j/tools/remote/caucho/serialization/JMXSerializer.java
---- mx4j-3.0.2.vanilla/src/tools/mx4j/tools/remote/caucho/serialization/JMXSerializer.java 2010-04-03 13:09:19.815790652 +0100
-+++ mx4j-3.0.2/src/tools/mx4j/tools/remote/caucho/serialization/JMXSerializer.java 2010-04-03 13:11:41.543862447 +0100
-@@ -13,12 +13,12 @@
- import java.io.ObjectOutputStream;
-
- import com.caucho.hessian.io.AbstractHessianOutput;
--import com.caucho.hessian.io.Serializer;
-+import com.caucho.hessian.io.AbstractSerializer;
-
- /**
- * @version $Revision: 1.3 $
- */
--class JMXSerializer extends Serializer
-+class JMXSerializer extends AbstractSerializer
- {
- public void writeObject(Object obj, AbstractHessianOutput out) throws IOException
- {
+++ /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.
-
-Beginning with 3.0.1-r2 mx4j was split into three packages dev-java/mxj4-core,
-dev-java/mxj4-tools and dev-java/mx4j. This was done in order to reduce
-dependencies in packages that only require the core.
-</longdescription>
- <upstream>
- <remote-id type="sourceforge">mx4j</remote-id>
- </upstream>
-</pkgmetadata>
+++ /dev/null
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-JAVA_PKG_IUSE="examples source doc"
-
-inherit java-pkg-2 java-ant-2
-
-DESCRIPTION="Metapackage for mx4j"
-HOMEPAGE="http://mx4j.sourceforge.net/"
-
-SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz
- doc? ( mirror://sourceforge/${PN}/${P}.tar.gz )"
-
-LICENSE="GPL-2"
-SLOT="3.0"
-
-KEYWORDS="amd64 x86"
-
-IUSE=""
-
-CDEPEND="examples? (
- dev-java/bcel:0
- dev-java/log4j:0
- dev-java/commons-logging:0
- www-servers/axis:1
- java-virtuals/servlet-api:3.0
- dev-java/hessian:4.0
- dev-java/jython:2.7
- dev-java/gnu-jaf:1
- java-virtuals/javamail:0
- )
- dev-java/mx4j-core:3.0
- dev-java/mx4j-tools:3.0
- !<dev-java/mx4j-tools-3.0.1-r1
- "
-
-RDEPEND="
- ${CDEPEND}
- examples? ( >=virtual/jre-1.6 )"
-
-# We always depend on a jdk to get the package.env created
-DEPEND=">=virtual/jdk-1.6
- ${CDEPEND}"
-
-src_prepare() {
- epatch "${FILESDIR}/${P}-new-hessian.patch"
-
- if use doc; then
- mkdir binary && cd binary
- unpack "${P}.tar.gz"
- fi
-
- if use examples; then
- cd "${S}/lib"
- java-pkg_jar-from bcel bcel.jar
- java-pkg_jar-from log4j
- java-pkg_jar-from commons-logging commons-logging.jar
- java-pkg_jar-from axis-1
- java-pkg_jar-from hessian-4.0
- java-pkg_jar-from jython-2.7 jython.jar
- java-pkg_jar-from gnu-jaf-1 activation.jar
- java-pkg_jar-from --virtual javamail mail.jar
- java-pkg_jar-from --virtual servlet-api-3.0 servlet-api.jar
- fi
-}
-
-src_compile() {
- cd build
- if use examples; then
- eant compile.examples
- fi
-}
-
-src_install() {
- dodoc README.txt RELEASE-NOTES-* || die
-
- if use examples; then
- java-pkg_dojar dist/examples/mx4j-examples.jar
- dodir /usr/share/doc/${PF}/examples
- cp -r src/examples/mx4j/examples/* "${D}usr/share/doc/${PF}/examples"
- fi
-
- use source && java-pkg_dosrc src/examples/mx4j
-
- if use doc; then
- local docdir="${WORKDIR}/${P}/binary/${P}/docs"
- java-pkg_dojavadoc "${docdir}/api"
- dohtml -r "${docdir}/images"
- dohtml "${docdir}"/{*.html,*.css}
- fi
-
- # Recording jars to get the same behaviour as before
- local jars="$(java-pkg_getjars mx4j-core-3.0,mx4j-tools-3.0)"
- for jar in ${jars//:/ }; do
- java-pkg_regjar "${jar}"
- done
-}
-
-pkg_postinst() {
- elog "Although this package can be used directly with java-config,"
- elog "ebuild developers should use mx4j-core and mx4j-tools directly."
-}