New split mx4j. Resolves bug #152924. Thanks to Alex Tarkovsky <alextarkovsky@gmail...
authorPetteri Räty <betelgeuse@gentoo.org>
Thu, 7 Dec 2006 14:39:32 +0000 (14:39 +0000)
committerPetteri Räty <betelgeuse@gentoo.org>
Thu, 7 Dec 2006 14:39:32 +0000 (14:39 +0000)
Package-Manager: portage-2.1.2_rc2-r3

dev-java/mx4j-core/ChangeLog [new file with mode: 0644]
dev-java/mx4j-core/Manifest [new file with mode: 0644]
dev-java/mx4j-core/files/digest-mx4j-core-3.0.1 [new file with mode: 0644]
dev-java/mx4j-core/files/mx4j-core-3.0.1-split-javadoc-build.patch [new file with mode: 0644]
dev-java/mx4j-core/metadata.xml [new file with mode: 0644]
dev-java/mx4j-core/mx4j-core-3.0.1.ebuild [new file with mode: 0644]

diff --git a/dev-java/mx4j-core/ChangeLog b/dev-java/mx4j-core/ChangeLog
new file mode 100644 (file)
index 0000000..6dfdb47
--- /dev/null
@@ -0,0 +1,12 @@
+# ChangeLog for dev-java/mx4j-core
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j-core/ChangeLog,v 1.1 2006/12/07 14:39:32 betelgeuse Exp $
+
+*mx4j-core-3.0.1 (07 Dec 2006)
+
+  07 Dec 2006; Petteri Räty <betelgeuse@gentoo.org>
+  +files/mx4j-core-3.0.1-split-javadoc-build.patch, +metadata.xml,
+  +mx4j-core-3.0.1.ebuild:
+  New split mx4j. Resolves bug #152924. Thanks to Alex Tarkovsky
+  <alextarkovsky@gmail.com>.
+
diff --git a/dev-java/mx4j-core/Manifest b/dev-java/mx4j-core/Manifest
new file mode 100644 (file)
index 0000000..a59455f
--- /dev/null
@@ -0,0 +1,30 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX mx4j-core-3.0.1-split-javadoc-build.patch 1979 RMD160 197b4d91dae38d2d43153924893167d07700ae1d SHA1 a8d279c8a2bbb3bab87c776864e3137428a9c8bc SHA256 e34ab853dc00c9cae2f7f41f7431f7ab2eb26bfe7a37decf46ffd8f827d3263b
+MD5 3db9a710b1534e8fc0d67133f5a29a9d files/mx4j-core-3.0.1-split-javadoc-build.patch 1979
+RMD160 197b4d91dae38d2d43153924893167d07700ae1d files/mx4j-core-3.0.1-split-javadoc-build.patch 1979
+SHA256 e34ab853dc00c9cae2f7f41f7431f7ab2eb26bfe7a37decf46ffd8f827d3263b files/mx4j-core-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-core-3.0.1.ebuild 1642 RMD160 69de9d5a60ce4c74a7647d01feeff553e461df15 SHA1 901523fb2134cc9cbc62e52c1df8f7bb2d1935e2 SHA256 6a99d9a14355e249b4b7074dc7894d8bb33e315abac75ac3f6cfdd392780c567
+MD5 e2b0de4ca4e943b9526936d91934e027 mx4j-core-3.0.1.ebuild 1642
+RMD160 69de9d5a60ce4c74a7647d01feeff553e461df15 mx4j-core-3.0.1.ebuild 1642
+SHA256 6a99d9a14355e249b4b7074dc7894d8bb33e315abac75ac3f6cfdd392780c567 mx4j-core-3.0.1.ebuild 1642
+MISC ChangeLog 487 RMD160 55f217bbbdc5a0494bcfe53e8a59dece3263655c SHA1 5038aa52473176211505118bb83452575f84ee1f SHA256 95b83951bfbc2fcfc3a530df285cdfa3d40d36b627955fa581cc6fc68191b902
+MD5 77d4a2dbd87a471cafd493730f4a81ca ChangeLog 487
+RMD160 55f217bbbdc5a0494bcfe53e8a59dece3263655c ChangeLog 487
+SHA256 95b83951bfbc2fcfc3a530df285cdfa3d40d36b627955fa581cc6fc68191b902 ChangeLog 487
+MISC metadata.xml 883 RMD160 3bf009f9cc22d6d8968d1bbbc09fa3418cdb81b3 SHA1 e73b977239431a3fdef3dc0f91bf9a9f033db708 SHA256 fb7e87fff55fbd72651c1dded32f35a7b2008196a6f5cebc72c69b8bfd48cda7
+MD5 3347324701234eb2d1838fc741e09fe0 metadata.xml 883
+RMD160 3bf009f9cc22d6d8968d1bbbc09fa3418cdb81b3 metadata.xml 883
+SHA256 fb7e87fff55fbd72651c1dded32f35a7b2008196a6f5cebc72c69b8bfd48cda7 metadata.xml 883
+MD5 cc7604d7334a2b7d2171c2baacada25e files/digest-mx4j-core-3.0.1 244
+RMD160 cd1c3fabbf60acb0b8a1830788962bf9b65ceff3 files/digest-mx4j-core-3.0.1 244
+SHA256 d5e8a1a30175e8368ff175e886ae1a8227b7a5be0438286e4145459fc620bf71 files/digest-mx4j-core-3.0.1 244
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.5 (GNU/Linux)
+
+iD8DBQFFeCetcxLzpIGCsLQRAvqXAJ0bdh37wUCg8mgQZfZuoHbwLSPLkQCfd9g6
+gOGZX3DG6ROrR/a1uqT1Sx0=
+=FYkZ
+-----END PGP SIGNATURE-----
diff --git a/dev-java/mx4j-core/files/digest-mx4j-core-3.0.1 b/dev-java/mx4j-core/files/digest-mx4j-core-3.0.1
new file mode 100644 (file)
index 0000000..29dc77e
--- /dev/null
@@ -0,0 +1,3 @@
+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
diff --git a/dev-java/mx4j-core/files/mx4j-core-3.0.1-split-javadoc-build.patch b/dev-java/mx4j-core/files/mx4j-core-3.0.1-split-javadoc-build.patch
new file mode 100644 (file)
index 0000000..35c20fe
--- /dev/null
@@ -0,0 +1,44 @@
+--- 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 &#169; 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
diff --git a/dev-java/mx4j-core/metadata.xml b/dev-java/mx4j-core/metadata.xml
new file mode 100644 (file)
index 0000000..60444f3
--- /dev/null
@@ -0,0 +1,13 @@
+<?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 jmx core. To get everything that upstream binary has emerge
+dev-java/mx4j with the appropriate use flags.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-java/mx4j-core/mx4j-core-3.0.1.ebuild b/dev-java/mx4j-core/mx4j-core-3.0.1.ebuild
new file mode 100644 (file)
index 0000000..dc269ff
--- /dev/null
@@ -0,0 +1,60 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j-core/mx4j-core-3.0.1.ebuild,v 1.1 2006/12/07 14:39:32 betelgeuse Exp $
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_P="${P/-core/}"
+DESCRIPTION="Open Source implementation of the JMX and JMX Remote API (JSR 160) specifications"
+HOMEPAGE="http://mx4j.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${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.
+
+RDEPEND="dev-java/bcel
+       dev-java/commons-logging
+       dev-java/log4j"
+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
+}
+
+src_compile() {
+       eant -f build/build.xml compile.jmx compile.rjmx $(use_doc javadocs.core)
+}
+
+src_install() {
+       java-pkg_dojar dist/lib/*.jar
+       dodoc README.txt
+       use doc && java-pkg_dojavadoc dist/docs/api
+       use source && java-pkg_dosrc "${S}/src/core/*"
+}
+
+pkg_postinst() {
+       elog "This is a a new split ebuild for just the core jmx to reduce"
+       elog "dependencies for packages that only require the core. You can"
+       elog "find the examples in dev-java/mx4j and the tools in dev-java/mx4j-tools"
+}