Mercurial > hg > portage
diff dev-util/visualvm-bin/visualvm-bin-2.0.2.ebuild @ 519:060bd9c14587
new visualvm version
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Wed, 20 May 2020 09:39:56 +0200 |
parents | dev-util/visualvm-bin/visualvm-bin-2.0.1.ebuild@88c03660056d |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-util/visualvm-bin/visualvm-bin-2.0.2.ebuild Wed May 20 09:39:56 2020 +0200 @@ -0,0 +1,33 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Integrates commandline JDK tools and profiling capabilities" +HOMEPAGE="https://visualvm.github.io" + +MY_PV="${PV//\./}" +SRC_URI="https://github.com/visualvm/visualvm.src/releases/download/${PV}/visualvm_${MY_PV}.zip" +S="${WORKDIR}/visualvm_${MY_PV}" + +SLOT="0" +KEYWORDS="amd64" + +src_prepare() { + default + + # Remove unneeded binaries + rm bin/*.exe + rm -rv platform/lib/*.{dll,exe} \ + platform/modules/lib/{amd64/*.dll,i386,x86} || die +} + +src_install() { + local DEST_DIR="/opt/${PN}-${PV}" + + exeinto ${DEST_DIR}/bin + doexe bin/visualvm + + insinto ${DEST_DIR} + doins -r etc platform visualvm +}