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

Contents of /dev-java/mx4j-core/mx4j-core-3.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Dec 2 08:29:18 2012 UTC (7 years, 1 month ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Update LICENSE, this is identical with the Apache-1.1 license, bug 444848.

(Portage version: 2.1.11.32/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/mx4j-core/mx4j-core-3.0.2.ebuild,v 1.3 2010/01/03 21:24:06 fauli Exp $
4
5 inherit eutils java-pkg-2 java-ant-2
6
7 MY_PN="${PN/-core/}"
8 MY_P="${MY_PN}-${PV}"
9 DESCRIPTION="Open Source implementation of the JMX and JMX Remote API (JSR 160) specifications"
10 HOMEPAGE="http://mx4j.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}-src.tar.gz"
12
13 # The ${S}/BUILD-HOWTO is a good source for dependencies
14 # This package could also be built with jdk-1.3; see special
15 # handling instructions in ${S}/BUILD-HOWTO.
16
17 RDEPEND="dev-java/bcel
18 dev-java/commons-logging
19 dev-java/log4j"
20 DEPEND="${RDEPEND}
21 >=virtual/jdk-1.5
22 >=dev-java/ant-core-1.6
23 source? ( app-arch/zip )"
24 RDEPEND="${RDEPEND}
25 >=virtual/jre-1.5"
26
27 LICENSE="Apache-1.1"
28 SLOT="3.0"
29 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
30 IUSE="doc source"
31
32 S="${WORKDIR}/${MY_P}"
33
34 src_unpack() {
35 unpack ${A}
36
37 cd "${S}"
38 epatch "${FILESDIR}/${P}-split-javadoc-build.patch"
39
40 cd "${S}/lib"
41 java-pkg_jar-from bcel bcel.jar
42 java-pkg_jar-from commons-logging commons-logging.jar
43 java-pkg_jar-from log4j
44 }
45
46 src_compile() {
47 eant -f build/build.xml compile.jmx compile.rjmx $(use_doc javadocs.core)
48 }
49
50 src_install() {
51 java-pkg_dojar dist/lib/*.jar
52 dodoc README.txt
53 use doc && java-pkg_dojavadoc dist/docs/api
54 use source && java-pkg_dosrc "${S}/src/core/*"
55 }
56
57 pkg_postinst() {
58 elog "This is a a new split ebuild for just the core jmx to reduce"
59 elog "dependencies for packages that only require the core. You can"
60 elog "find the examples in dev-java/mx4j and the tools in dev-java/mx4j-tools"
61 }

  ViewVC Help
Powered by ViewVC 1.1.20