diff options
author | James Le Cuirot <chewi@gentoo.org> | 2017-11-02 21:19:32 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2017-11-02 21:19:32 +0000 |
commit | c2ad389ca165c7d8c68ad119b7fda76bf872cdb2 (patch) | |
tree | 45aaabeac1d5ad818fe4485096b53768d252a608 /dev-util/visualvm | |
parent | dev-python/qscintilla-python: x86 stable (bug #634838) (diff) | |
download | gentoo-c2ad389ca165c7d8c68ad119b7fda76bf872cdb2.tar.gz gentoo-c2ad389ca165c7d8c68ad119b7fda76bf872cdb2.tar.bz2 gentoo-c2ad389ca165c7d8c68ad119b7fda76bf872cdb2.zip |
dev-util/visualvm: Version bump to 1.3.9
We are using the upstream-provided Netbeans in this version to avoid
the Java 7 dependency, as well as Netbeans itself, which is quite
heavy.
Closes: https://bugs.gentoo.org/611102
Package-Manager: Portage-2.3.13, Repoman-2.3.2
Diffstat (limited to 'dev-util/visualvm')
-rw-r--r-- | dev-util/visualvm/Manifest | 2 | ||||
-rw-r--r-- | dev-util/visualvm/files/visualvm-r1.conf | 9 | ||||
-rw-r--r-- | dev-util/visualvm/files/visualvm-r1.sh | 13 | ||||
-rw-r--r-- | dev-util/visualvm/metadata.xml | 13 | ||||
-rw-r--r-- | dev-util/visualvm/visualvm-1.3.9.ebuild | 58 |
5 files changed, 90 insertions, 5 deletions
diff --git a/dev-util/visualvm/Manifest b/dev-util/visualvm/Manifest index 534f47c89f32..c2a7b2d4dc46 100644 --- a/dev-util/visualvm/Manifest +++ b/dev-util/visualvm/Manifest @@ -1 +1,3 @@ +DIST nb802_visualvm_02102016.zip 23257637 SHA256 9f5cfe0d8c4f7a01c7b7df0f04e7c12f860b8e2efa9136dcfa105e00b90b873b SHA512 e33dba0cdfb509e9351fac343a4fbec07d3a893b6f484d0aeab972aefe41b061422dba8695003c6ca33db52d5be2f4ce218ea4fc7129f67dbd48c991c35349b5 WHIRLPOOL 7012d24b74bc92221ce257357bb3f69dfc360422512e6f3ada164f5bd5b76f4056a5a6f2308c87da891d2a1a561d1c15ae734e63e015635ec78bc7eb20ed96fa +DIST visualvm-1.3.9.tar.gz 3622508 SHA256 92006824ba3b79ad86d543a81a5cdbcdf1cc8f6243a613c252eb1416287ff82f SHA512 884c04952dbb418de1bcd68b584f9053f03bd72ed6a9327d9f80897eee4f338a71343836efdd7a8172377552ab1f11d34c75c8804dd31da3fb67ee83c6edbf74 WHIRLPOOL b74b4e5f6c9967664d7150fd9411b0121ea3990e112f23ea75a4e2266c9cfd27003273315dd7845156e69ddea9da05f265c3b3c151059723f8ad4f5e755000c6 DIST visualvm_138-src.tar.gz 1052176 SHA256 e34cd0425d74055e03394c572735067d3b98095ed5c04268707b52f1dc7c6144 SHA512 f418fcd3316f793c6fc77c6bcdf1e53dc543f7de2ee638f3d500a4de61505246fd07829b25cdf988836f515b72c59c71a2a4fecbb569910e9203e5b490e837a1 WHIRLPOOL c2d83fd92687d07d2f240d4a6c1f150471041e0e0ab1c13f7cd1804a98d3565ed1df29c5124002ced0c403fec98b5464f8ad113cc76ae264d95413c81c4dc129 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 index 9ef97ae66fd0..619755c9c84e 100644 --- a/dev-util/visualvm/metadata.xml +++ b/dev-util/visualvm/metadata.xml @@ -1,9 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="project"> - <email>java@gentoo.org</email> - <name>Java</name> -</maintainer> -<longdescription>The IcedTea project provides a harness to build the source code from VisualVM.</longdescription> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <longdescription>VisualVM is a visual tool integrating commandline JDK tools and lightweight profiling capabilities.</longdescription> + <upstream> + <remote-id type="github">oracle/visualvm</remote-id> + </upstream> </pkgmetadata> diff --git a/dev-util/visualvm/visualvm-1.3.9.ebuild b/dev-util/visualvm/visualvm-1.3.9.ebuild new file mode 100644 index 000000000000..7fe5e09f1733 --- /dev/null +++ b/dev-util/visualvm/visualvm-1.3.9.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +NBV=802 +NBT=02102016 +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/" +SRC_URI="https://github.com/oracle/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/oracle/${PN}/releases/download/${PV}/${NBZ}" +LICENSE="GPL-2-with-linking-exception" +SLOT="7" +KEYWORDS="~amd64" + +RDEPEND=">=virtual/jre-1.7" +DEPEND=">=virtual/jdk-1.7 + app-arch/unzip" + +S=${WORKDIR}/${P}/${PN} +EANT_BUILD_TARGET=build +INSTALL_DIR=/usr/share/${PN} + +src_unpack() { + unpack ${P}.tar.gz + cd "${S}" || die + unpack ${NBZ} +} + +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;" +} |