From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-util/visualvm/Manifest | 5 +++ dev-util/visualvm/files/visualvm-r1.conf | 9 +++++ dev-util/visualvm/files/visualvm-r1.sh | 13 +++++++ dev-util/visualvm/metadata.xml | 12 ++++++ dev-util/visualvm/visualvm-1.4.1.ebuild | 66 ++++++++++++++++++++++++++++++++ 5 files changed, 105 insertions(+) create mode 100644 dev-util/visualvm/Manifest create mode 100644 dev-util/visualvm/files/visualvm-r1.conf create mode 100644 dev-util/visualvm/files/visualvm-r1.sh create mode 100644 dev-util/visualvm/metadata.xml create mode 100644 dev-util/visualvm/visualvm-1.4.1.ebuild (limited to 'dev-util/visualvm') diff --git a/dev-util/visualvm/Manifest b/dev-util/visualvm/Manifest new file mode 100644 index 000000000000..b43aed57a5fd --- /dev/null +++ b/dev-util/visualvm/Manifest @@ -0,0 +1,5 @@ +AUX visualvm-r1.conf 786 BLAKE2B 863af1d373f3e8633a630c6a1cdbc8ada09b1a9b5f35704db044e12614c997e9648ae9c087caaed89c2632dde7a09a1eb3b158d4227a1e2cd94214ba25d61eef SHA512 243ab8ac4472492edf796582dea5164f53261f654168cde9ccf863e0f265ec5c50442c1c44de89ca759c8d0dee6c00c10a3f807ad45d039976ff4d91c89d8397 +AUX visualvm-r1.sh 424 BLAKE2B ad18e375535b92e5bc5720c7b4f9f9526ee136d29d51103038a68e8c260245222af1e912b8320ca98dbaeb1a8736f041fea89ae87b15d1db9cb916eb1552c8e6 SHA512 8e579f126142f52e14f235a23c3834933b59a9df95ba76b6b9a82175cfc5e12d759bc0d7234ae3cea7684bdfe12f2efb9785afbe6844394f458cff05ae8342f7 +DIST visualvm-1.4.1.tar.gz 56752632 BLAKE2B cd171a48a0a9af440c27f2968ce27c5f89af3769046258629ba384ebbfc1c2ecb9847678af9d69bea5847fe1098e9039f35d350fb6f5d112e9236a6510c52bc7 SHA512 de8cf37e619e15c3a30c5116d49becddc09b54062aa22709e412892cf78e3048777116a8388dc6f63609d11bfb6fe37176fe48f5e3263a4dbce8439df676ef15 +EBUILD visualvm-1.4.1.ebuild 1667 BLAKE2B 92813bb7a920d1f2a83af817d9fdd821be79661331c29b6c4a7f8f945c190a9dfd4a89a8cae04ae347be3fbb68bf6a8f9b02a80310780f7fea29f3522dec0fbf SHA512 b38ac4aae3d549e8f7c749436f885cc538c5844b81af6ba2adbed503ffc5ec297ffc1dec3a4f5e3c96ac7f53dd8f508e25c18e3a11f7a3b9108b05ce0d51d542 +MISC metadata.xml 452 BLAKE2B a1a04fcf6da524fc4bc9d68c415c429dbf43813e594797eaf24f6590e47dd6466d9ec5bae1909011976ab9a47cedb07bbbff29f254f60371aa50ed88a3d9a50a SHA512 cfb0070326f1fc73f96016a138bdba35b6799333a625c38c84fb486134e1446f71bcfe2f170cdbe9ff86befe66905ba79caebd68f811547ec638e69821a5a739 diff --git a/dev-util/visualvm/files/visualvm-r1.conf b/dev-util/visualvm/files/visualvm-r1.conf new file mode 100644 index 000000000000..fce7cfece13f --- /dev/null +++ b/dev-util/visualvm/files/visualvm-r1.conf @@ -0,0 +1,9 @@ +# Default user directory +visualvm_default_userdir="${HOME}/.visualvm" +visualvm_default_cachedir="${HOME}/.cache/visualvm" + +# Default runtime options +visualvm_default_options="-J-client -J-Xms24m -J-Xmx256m -J-Dnetbeans.accept_license_class=com.sun.tools.visualvm.modules.startup.AcceptLicense -J-Dsun.jvmstat.perdata.syncWaitMs=10000 -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.d3d=false -J--add-exports=java.desktop/sun.awt=ALL-UNNAMED -J--add-exports=jdk.jvmstat/sun.jvmstat.monitor.event=ALL-UNNAMED -J--add-exports=jdk.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED -J--add-exports=java.desktop/sun.swing=ALL-UNNAMED -J--add-exports=jdk.attach/sun.tools.attach=ALL-UNNAMED -J--add-modules=java.activation -J-XX:+IgnoreUnrecognizedVMOptions" + +# JDK home +visualvm_jdkhome="$(java-config -O)" diff --git a/dev-util/visualvm/files/visualvm-r1.sh b/dev-util/visualvm/files/visualvm-r1.sh new file mode 100644 index 000000000000..dd6956da0697 --- /dev/null +++ b/dev-util/visualvm/files/visualvm-r1.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# source the configuration file +. /etc/visualvm/visualvm.conf + +# launch visualvm +exec sh /usr/share/visualvm/platform/lib/nbexec \ + --branding visualvm \ + --jdkhome "${visualvm_jdkhome}" \ + --userdir "${visualvm_default_userdir}" \ + --cachedir "${visualvm_default_cachedir}" \ + --clusters /usr/share/visualvm/cluster:/usr/share/visualvm/platform:/usr/share/visualvm/profiler \ + ${visualvm_default_options} "${@}" diff --git a/dev-util/visualvm/metadata.xml b/dev-util/visualvm/metadata.xml new file mode 100644 index 000000000000..619755c9c84e --- /dev/null +++ b/dev-util/visualvm/metadata.xml @@ -0,0 +1,12 @@ + + + + + java@gentoo.org + Java + + VisualVM is a visual tool integrating commandline JDK tools and lightweight profiling capabilities. + + oracle/visualvm + + diff --git a/dev-util/visualvm/visualvm-1.4.1.ebuild b/dev-util/visualvm/visualvm-1.4.1.ebuild new file mode 100644 index 000000000000..a33b5289f774 --- /dev/null +++ b/dev-util/visualvm/visualvm-1.4.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +NBV=90 +NBT=24042018 +NBZ=nb${NBV}_${PN}_${NBT}.zip + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Integrates commandline JDK tools and profiling capabilities" +HOMEPAGE="https://visualvm.github.io" + +# Netbeans plattform is already included in the main archive this time +# SRC_URI="https://github.com/oracle/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz +# https://github.com/oracle/${PN}/releases/download/${PV}/${NBZ}" +SRC_URI="https://github.com/oracle/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2-with-linking-exception" +SLOT="7" +KEYWORDS="~amd64" + +RDEPEND=" + >=virtual/jre-1.7" + +DEPEND=" + >=virtual/jdk-1.7" + +S="${WORKDIR}/${P}/${PN}" + +EANT_BUILD_TARGET=build +INSTALL_DIR=/usr/share/${PN} + +src_unpack() { + unpack ${P}.tar.gz + cd "${S}" || die + # unpack ${NBZ} + unpack "${S}"/"${NBZ}" # archive is included in the main archive +} + +src_prepare() { + default + + # Remove unneeded binaries + rm -rv netbeans/platform/lib/*.{dll,exe} \ + netbeans/platform/modules/lib/{amd64/*.dll,i386,x86} || die + find netbeans/profiler/lib/deployed/jdk1? -mindepth 1 \ + -maxdepth 1 ! -name linux-amd64 -exec rm -rv {} + || die +} + +src_install() { + # this is the visualvm cluster + insinto ${INSTALL_DIR} + doins -r build/cluster netbeans/{platform,profiler} + + # configuration file that can be used to tweak visualvm startup parameters + insinto /etc/${PN} + newins "${FILESDIR}"/${PN}-r1.conf ${PN}.conf + + # visualvm runtime script + newbin "${FILESDIR}"/${PN}-r1.sh ${PN} + + # makes visualvm entry + make_desktop_entry ${PN} VisualVM java "Development;Java;" +} -- cgit v1.2.3