summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2007-10-20 07:07:30 +0000
committerAlistair Bush <ali_bush@gentoo.org>2007-10-20 07:07:30 +0000
commitb0d9b0c2be37e83649544ce500e3325733dca83e (patch)
tree881f4d71ac16d235582227224b66a3b9950650de /dev-java/mx4j
parentBumping mx4j-tools to use java-virtuals/javamail (diff)
downloadgentoo-2-b0d9b0c2be37e83649544ce500e3325733dca83e.tar.gz
gentoo-2-b0d9b0c2be37e83649544ce500e3325733dca83e.tar.bz2
gentoo-2-b0d9b0c2be37e83649544ce500e3325733dca83e.zip
revbump mx4j to support java-virtuals/javamail
(Portage version: 2.1.3.15)
Diffstat (limited to 'dev-java/mx4j')
-rw-r--r--dev-java/mx4j/ChangeLog7
-rw-r--r--dev-java/mx4j/files/digest-mx4j-3.0.1-r36
-rw-r--r--dev-java/mx4j/mx4j-3.0.1-r3.ebuild104
3 files changed, 116 insertions, 1 deletions
diff --git a/dev-java/mx4j/ChangeLog b/dev-java/mx4j/ChangeLog
index 4a56a960a1be..af634fd6c87f 100644
--- a/dev-java/mx4j/ChangeLog
+++ b/dev-java/mx4j/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/mx4j
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j/ChangeLog,v 1.20 2007/04/26 23:21:30 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j/ChangeLog,v 1.21 2007/10/20 07:07:29 ali_bush Exp $
+
+*mx4j-3.0.1-r3 (20 Oct 2007)
+
+ 20 Oct 2007; <alistair@gentoo.org> +mx4j-3.0.1-r3.ebuild:
+ RevBumping mx4j to support java-virtuals/javamail
26 Apr 2007; Vlastimil Babka <caster@gentoo.org> mx4j-3.0.1-r2.ebuild:
Fix dependencies and recording of jars.
diff --git a/dev-java/mx4j/files/digest-mx4j-3.0.1-r3 b/dev-java/mx4j/files/digest-mx4j-3.0.1-r3
new file mode 100644
index 000000000000..94f7328bcac4
--- /dev/null
+++ b/dev-java/mx4j/files/digest-mx4j-3.0.1-r3
@@ -0,0 +1,6 @@
+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
+MD5 3f0089c7f305a7715a6481aca66c4e0c mx4j-3.0.1.tar.gz 4562130
+RMD160 918808d122fba60388d5b344edffad3756b50936 mx4j-3.0.1.tar.gz 4562130
+SHA256 bcb066f5b2323c66b80e80e641685e3adbd4a2d4c654f31c4a49b32b8290e006 mx4j-3.0.1.tar.gz 4562130
diff --git a/dev-java/mx4j/mx4j-3.0.1-r3.ebuild b/dev-java/mx4j/mx4j-3.0.1-r3.ebuild
new file mode 100644
index 000000000000..e6fd3f75a089
--- /dev/null
+++ b/dev-java/mx4j/mx4j-3.0.1-r3.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j/mx4j-3.0.1-r3.ebuild,v 1.1 2007/10/20 07:07:29 ali_bush Exp $
+
+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"
+
+IUSE=""
+
+COMMON_DEP="
+ examples? (
+ dev-java/bcel
+ dev-java/log4j
+ dev-java/commons-logging
+ =www-servers/axis-1*
+ ~dev-java/servletapi-2.3
+ =dev-java/burlap-3.0*
+ =dev-java/hessian-3.0.8*
+ dev-java/jython
+ =dev-java/gnu-jaf-1*
+ java-virtuals/javamail
+ )
+ =dev-java/mx4j-core-3.0*
+ =dev-java/mx4j-tools-3.0*
+ !<dev-java/mx4j-tools-3.0.1-r1
+ "
+
+RDEPEND="
+ ${COMMON_DEP}
+ examples? ( >=virtual/jre-1.4 )"
+
+# We always depend on a jdk to get the package.env created
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+
+src_unpack() {
+ unpack "${P}-src.tar.gz"
+
+ 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 servletapi-2.3 servlet.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 --virtual javamail mail.jar
+ fi
+}
+
+src_compile() {
+ cd build
+ use examples && eant compile.examples
+}
+
+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}/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."
+}