blob: 4bc3e8a1ac7ced3c19fdd32babcde224e20d09df (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
JAVA_PKG_IUSE="doc examples"
inherit java-pkg-2
MY_P=jmx-${PV//./_}
DESCRIPTION="Java Management Extensions for managing and monitoring"
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/tech/javamanagement-140525.html"
SRC_URI="${MY_P}-ri.zip"
LICENSE="Oracle-BCLA-JavaSE"
SLOT="0"
KEYWORDS="amd64 ~arm ppc64 x86 ~amd64-linux ~x86-linux ~x86-macos"
BDEPEND="app-arch/unzip"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip"
RDEPEND=">=virtual/jre-1.4"
RESTRICT="bindist fetch"
S="${WORKDIR}/${MY_P}-bin"
DOWNLOADSITE="http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-plat-419418.html"
src_compile() { :; }
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 your DISTDIR directory"
einfo " 4. Run emerge on this package again to complete"
einfo
}
src_install() {
java-pkg_dojar lib/*.jar
if use doc; then
java-pkg_dojavadoc doc/api
java-pkg_dohtml -r doc/doc doc/index.html
fi
use examples && java-pkg_doexamples examples
}
|