blob: abacae9789808aef925559db6091c6258aa05900 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j/mx4j-2.1.0.ebuild,v 1.3 2005/05/19 13:36:42 luckyduck Exp $
inherit eutils java-pkg
DESCRIPTION="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."
HOMEPAGE="http://mx4j.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
DEPEND=">=virtual/jdk-1.4
>=dev-java/ant-1.6
jikes?( >=dev-java/jikes-1.21)
source?( app-arch/zip )"
RDEPEND=">=virtual/jre-1.4
>=dev-java/commons-logging-1.0.4
>=dev-java/sun-jaf-bin-1.0.2
>=dev-java/sun-javamail-bin-1.3.1
>=dev-java/jython-2.1
=dev-java/servletapi-2.3*
=dev-java/xmlunit-1*
=www-servers/axis-1*
>=www-servers/resin-3.0.8"
LICENSE="mx4j"
SLOT="2.1"
KEYWORDS="x86 amd64"
IUSE="doc examples jikes source"
src_unpack(){
unpack ${A}
cd ${S}
epatch ${FILESDIR}/mx4j-2.1.0-gentoo.patch
cd ${S}/lib
java-pkg_jar-from sun-jaf-bin
java-pkg_jar-from sun-javamail-bin mail.jar
java-pkg_jar-from jython
java-pkg_jar-from axis-1
java-pkg_jar-from servletapi-2.3
java-pkg_jar-from resin resin.jar
java-pkg_jar-from xmlunit-1
}
src_compile() {
cd build/
local antflags="compile.jmx compile.rjmx compile.tools"
use doc && antflags="${antflags} javadocs"
use examples && antflags="${antflags} compile.examples"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "ant failed"
}
src_install () {
java-pkg_dojar dist/lib/*.jar
java-pkg_dowar dist/lib/*.war
dodoc LICENSE README
if use doc ; then
java_pkg-dohtml -r dist/docs/api/*
fi
if use source; then
java-pkg_dosrc ${S}/src/core/*
fi
if use examples; then
dodir /usr/share/doc/${PF}/examples
cp -r src/examples/mx4j/examples/* ${D}usr/share/doc/${PF}/examples
fi
}
|