annotate dev-util/visualvm-bin/visualvm-bin-1.4.3.ebuild @ 487:6df6fb0af440

ebuild for newer citrix desktop client
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 08 Oct 2019 10:06:50 +0200
parents e3cfb359481d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
481
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2018 Gentoo Foundation
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4 EAPI=7
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 DESCRIPTION="Integrates commandline JDK tools and profiling capabilities"
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 HOMEPAGE="https://visualvm.github.io"
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 MY_PV="${PV//\./}"
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 SRC_URI="https://github.com/visualvm/visualvm.src/releases/download/${PV}/visualvm_${MY_PV}.zip"
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 S="${WORKDIR}/visualvm_${MY_PV}"
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 SLOT="0"
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 KEYWORDS="amd64"
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 src_prepare() {
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 default
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 # Remove unneeded binaries
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 rm bin/*.exe
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 rm -rv platform/lib/*.{dll,exe} \
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 platform/modules/lib/{amd64/*.dll,i386,x86} || die
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 find profiler/lib/deployed/jdk1? -mindepth 1 \
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 -maxdepth 1 ! -name linux-amd64 -exec rm -rv {} + || die
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 }
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 src_install() {
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 local DEST_DIR="/opt/${PN}-${PV}"
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 exeinto ${DEST_DIR}/bin
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 doexe bin/visualvm
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 insinto ${DEST_DIR}
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 doins -r etc platform profiler visualvm
e3cfb359481d add an ebuild for visualvm
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 }