blob: e572320858a53a0aa4ff87f9e9488b550484116a (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jmx/sun-jmx-1.2.1-r1.ebuild,v 1.2 2006/10/05 15:47:34 gustavoz Exp $
inherit java-pkg eutils
MY_PN=${PN//sun-/}
MY_P=${MY_PN}-${PV//./_}
DESCRIPTION="Java Management Extensions for managing and monitoring devices, applications, and services."
HOMEPAGE="http://java.sun.com/products/JavaManagement/index.jsp"
SRC_URI="${MY_P}-scsl.zip"
LICENSE="sun-csl"
SLOT="0"
KEYWORDS="x86 ppc amd64 ppc64"
IUSE="doc examples jikes source"
DEPEND=">=virtual/jdk-1.4
dev-java/ant-core
app-arch/unzip
jikes? ( dev-java/jikes )
source? ( app-arch/zip )"
RDEPEND=">=virtual/jre-1.4"
RESTRICT="fetch"
S="${WORKDIR}/${MY_P}-src"
DOWNLOADSITE="http://wwws.sun.com/software/communitysource/jmx/download.html"
src_unpack() {
unpack ${A}
cd ${S}
sed -i.orig -r -e 's/="src"/="src\/jmxri"/g' build.xml || die "sed failed"
}
pkg_nofetch() {
einfo
einfo " Due to license restrictions, we cannot fetch the"
einfo " distributables automagically."
einfo
einfo " 1. Visit ${DOWNLOADSITE} and follow instructions"
einfo " 2. Download ${SRC_URI}"
einfo " 3. Move file to ${DISTDIR}"
einfo " 4. Run emerge on this package again to complete"
einfo
}
src_compile() {
local antflags="jar"
use doc && antflags="${antflags} examples"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "compile problem"
}
src_install() {
java-pkg_dojar lib/*.jar
use doc && java-pkg_dohtml -r docs/*
if use examples; then
dodir /usr/share/doc/${PF}/examples
cp -r examples/* ${D}/usr/share/doc/${PF}/examples
fi
use source && java-pkg_dosrc src/jmxri/*
}
|