changeset 481:e3cfb359481d

add an ebuild for visualvm
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 15 Aug 2019 09:26:55 +0200
parents 27094cef9d58
children 46f0f228c4b5
files dev-util/visualvm-bin/Manifest dev-util/visualvm-bin/visualvm-bin-1.4.3.ebuild
diffstat 2 files changed, 37 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-util/visualvm-bin/Manifest	Thu Aug 15 09:26:55 2019 +0200
@@ -0,0 +1,2 @@
+DIST visualvm_143.zip 15610933 BLAKE2B 73cf445418565de42fa5b4957cb8f24f45c32839fa4027a7ed28cb9c0b7f504a0fbe1af2c2d9d337373f15640acbfe59d466e4595c2ab1d47e2bd0aed2e99f6c SHA512 86a7a6a90e04404d06aae027c69192ec5f53796474341cd9ad7ec0138d4ff4c082f67681d6723b1d0b3a38c0503026af95f8b504531e40e32ae84404596545ea
+EBUILD visualvm-bin-1.4.3.ebuild 834 BLAKE2B 21a667d10110cf6e1192af9a17682c002b36de3dfe032ba5cc052c3259a70865b1b3b79ec1756ea33c1912cf5f966ce2531c2ffafb3b2b1bf2f9d78b84df2820 SHA512 e55e53ef0d7408bddeefe8e22778f9dec7a2baefe9ef2c09237e80aa0bc8839a02f81b29737bb19b9300fd646fa1754d7bdb1769654a1a2436da982402f0a9d7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-util/visualvm-bin/visualvm-bin-1.4.3.ebuild	Thu Aug 15 09:26:55 2019 +0200
@@ -0,0 +1,35 @@
+# 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
+	find profiler/lib/deployed/jdk1? -mindepth 1 \
+		-maxdepth 1 ! -name linux-amd64 -exec rm -rv {} + || die
+}
+
+src_install() {
+	local DEST_DIR="/opt/${PN}-${PV}"
+
+	exeinto ${DEST_DIR}/bin
+	doexe bin/visualvm
+
+	insinto ${DEST_DIR}
+	doins -r etc platform profiler visualvm
+}