/[gentoo-x86]/dev-java/sun-jmx/sun-jmx-1.2.1-r2.ebuild
Gentoo

Contents of /dev-java/sun-jmx/sun-jmx-1.2.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Apr 7 12:05:54 2007 UTC (7 years, 3 months ago) by betelgeuse
Branch: MAIN
Changes since 1.7: +2 -2 lines
Mark stable on ppc wrt bug #172456.
(Portage version: 2.1.2.3)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jmx/sun-jmx-1.2.1-r2.ebuild,v 1.7 2007/04/07 04:46:14 wltjr Exp $
4
5 inherit java-pkg-2 eutils java-ant-2
6
7 MY_PN=${PN//sun-/}
8 MY_P=${MY_PN}-${PV//./_}
9 DESCRIPTION="Java Management Extensions for managing and monitoring devices, applications, and services."
10 HOMEPAGE="http://java.sun.com/products/JavaManagement/index.jsp"
11 SRC_URI="${MY_P}-scsl.zip"
12 LICENSE="sun-csl"
13 SLOT="0"
14 KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
15 IUSE="doc examples source"
16 DEPEND=">=virtual/jdk-1.4
17 dev-java/ant-core
18 app-arch/unzip
19 source? ( app-arch/zip )"
20 RDEPEND=">=virtual/jre-1.4"
21 RESTRICT="fetch"
22
23 S="${WORKDIR}/${MY_P}-src"
24
25 DOWNLOADSITE="http://wwws.sun.com/software/communitysource/jmx/download.html"
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30 sed -i.orig -r -e 's/="src"/="src\/jmxri"/g' build.xml || die "sed failed"
31 }
32
33 pkg_nofetch() {
34 einfo
35 einfo " Due to license restrictions, we cannot fetch the"
36 einfo " distributables automagically."
37 einfo
38 einfo " 1. Visit ${DOWNLOADSITE} and follow instructions"
39 einfo " 2. Download ${SRC_URI}"
40 einfo " 3. Move file to ${DISTDIR}"
41 einfo " 4. Run emerge on this package again to complete"
42 einfo
43 }
44
45 EANT_DOC_TARGET="examples"
46
47 src_install() {
48 java-pkg_dojar lib/*.jar
49 use doc && java-pkg_dohtml -r doc/*
50 if use examples; then
51 dodir /usr/share/doc/${PF}/examples
52 cp -r examples/* ${D}/usr/share/doc/${PF}/examples
53 fi
54 use source && java-pkg_dosrc src/jmxri/*
55 }

  ViewVC Help
Powered by ViewVC 1.1.20