annotate dev-util/visualvm-bin/visualvm-bin-2.1.3.ebuild @ 565:fb3b4edf20c9 default tip

openjdk is in portage now
author Dirk Olmes <dirk.olmes@codedo.de>
date Tue, 23 Jul 2024 15:55:19 +0200
parents 85f9a2fbc16e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
499
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
1 # Copyright 1999-2018 Gentoo Foundation
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
3
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
4 EAPI=7
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
5
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
6 DESCRIPTION="Integrates commandline JDK tools and profiling capabilities"
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
7 HOMEPAGE="https://visualvm.github.io"
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
8
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
9 MY_PV="${PV//\./}"
526
c212ef82c7fd new version of visualvm
Dirk Olmes <dirk.olmes@codedo.de>
parents: 519
diff changeset
10 SRC_URI="https://github.com/oracle/visualvm/releases/download/${PV}/visualvm_${MY_PV}.zip"
499
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
11 S="${WORKDIR}/visualvm_${MY_PV}"
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
12
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
13 SLOT="0"
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
14 KEYWORDS="amd64"
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
15
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
16 src_prepare() {
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
17 default
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
18
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
19 # Remove unneeded binaries
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
20 rm bin/*.exe
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
21 rm -rv platform/lib/*.{dll,exe} \
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
22 platform/modules/lib/{amd64/*.dll,i386,x86} || die
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
23 }
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
24
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
25 src_install() {
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
26 local DEST_DIR="/opt/${PN}-${PV}"
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
27
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
28 exeinto ${DEST_DIR}/bin
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
29 doexe bin/visualvm
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
30
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
31 insinto ${DEST_DIR}
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
32 doins -r etc platform visualvm
5963f39960df visualvm update
Dirk Olmes <dirk.olmes@codedo.de>
parents:
diff changeset
33 }