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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (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.4: +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-r1.ebuild,v 1.4 2005/12/16 01:05:50 nichoj 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
11 # The ${S}/BUILD-HOWTO is a good source for dependencies
12 # This package could also be built with 1.3 after the virtual
13 # handling for java-config goes official
14
15 # javamail and jython support is optional but because ant-core puts it in the classpath
16 # if it is installed we can't force disable it without modifying the build.xml
17 # and jikes refuses to compile mx4j with javamail support disabled
18
19 # Optional jetty support can be enabled after jetty uses java-pkg_dojar to install jars
20
21 RDEPEND=">=virtual/jre-1.4
22 =www-servers/axis-1*
23 =dev-java/bcel-5.1*
24 ~dev-java/burlap-3.0.8
25 >=dev-java/commons-logging-1.0.4
26 ~dev-java/hessian-3.0.8
27 =dev-java/servletapi-2.3*
28 >=dev-java/sun-jaf-bin-1.0.2
29 >=dev-java/sun-javamail-bin-1.3.1
30 >=dev-java/jython-2.1"
31
32 DEPEND=">=virtual/jdk-1.4
33 ${RDEPEND}
34 >=dev-java/ant-1.6
35 jikes? ( >=dev-java/jikes-1.21 )
36 source? ( app-arch/zip )"
37
38 LICENSE="mx4j"
39 SLOT="2.1"
40 KEYWORDS="~amd64 ~x86"
41
42 IUSE="doc examples jikes source"
43
44 src_unpack(){
45 unpack ${A}
46
47 cd ${S}
48 epatch ${FILESDIR}/${P}-gentoo.patch
49
50 cd ${S}/lib
51
52 # use jetty && java-pkg_jar-from jetty
53
54 # for jmx
55 java-pkg_jar-from bcel
56 java-pkg_jar-from commons-logging
57
58 # for tools
59 java-pkg_jar-from axis-1
60 java-pkg_jar-from burlap-3.0
61 java-pkg_jar-from hessian-3.0.8
62 java-pkg_jar-from servletapi-2.3
63
64 # optionals (tools)
65 java-pkg_jar-from jython
66 java-pkg_jar-from sun-jaf-bin
67 java-pkg_jar-from sun-javamail-bin mail.jar
68 }
69
70 src_compile() {
71 cd build/
72
73 # The jsr160 and tools compilation could probably
74 # be made optional by use flags.
75 local antflags="compile.jmx compile.rjmx compile.tools"
76 use doc && antflags="${antflags} javadocs"
77 use examples && antflags="${antflags} compile.examples"
78 use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
79 ant ${antflags} || die "ant failed"
80 }
81
82 src_install() {
83 java-pkg_dojar dist/lib/*.jar
84 java-pkg_dowar dist/lib/*.war
85
86 dodoc README
87
88 use doc && java-pkg_dohtml -r dist/docs/api/*
89 use source && java-pkg_dosrc ${S}/src/core/*
90
91 if use examples; then
92 dodir /usr/share/doc/${PF}/examples
93 cp -r src/examples/mx4j/examples/* ${D}usr/share/doc/${PF}/examples
94 fi
95 }

  ViewVC Help
Powered by ViewVC 1.1.20