/[gentoo-x86]/dev-java/mx4j/mx4j-2.1.0.ebuild
Gentoo

Contents of /dev-java/mx4j/mx4j-2.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue Nov 28 04:27:35 2006 UTC (13 years, 4 months ago) by nichoj
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Dropped old slot, which depends on an old version of resin.
(Portage version: 2.1.2_rc1-r5)
 (Unsigned Manifest commit)

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

  ViewVC Help
Powered by ViewVC 1.1.20