summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-util/visualvm
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-util/visualvm')
-rw-r--r--dev-util/visualvm/Manifest1
-rw-r--r--dev-util/visualvm/files/netbeans-platform-version.patch13
-rw-r--r--dev-util/visualvm/files/org-netbeans-modules-profiler-kit.xml10
-rw-r--r--dev-util/visualvm/files/org-netbeans-modules-profiler-nbimpl.xml10
-rw-r--r--dev-util/visualvm/files/org-netbeans-modules-profiler-options.xml10
-rw-r--r--dev-util/visualvm/files/org-netbeans-modules-profiler-oql-language.xml10
-rw-r--r--dev-util/visualvm/files/visualvm.conf8
-rw-r--r--dev-util/visualvm/files/visualvm.sh16
-rw-r--r--dev-util/visualvm/metadata.xml6
-rw-r--r--dev-util/visualvm/visualvm-1.3.8-r1.ebuild59
10 files changed, 143 insertions, 0 deletions
diff --git a/dev-util/visualvm/Manifest b/dev-util/visualvm/Manifest
new file mode 100644
index 000000000000..534f47c89f32
--- /dev/null
+++ b/dev-util/visualvm/Manifest
@@ -0,0 +1 @@
+DIST visualvm_138-src.tar.gz 1052176 SHA256 e34cd0425d74055e03394c572735067d3b98095ed5c04268707b52f1dc7c6144 SHA512 f418fcd3316f793c6fc77c6bcdf1e53dc543f7de2ee638f3d500a4de61505246fd07829b25cdf988836f515b72c59c71a2a4fecbb569910e9203e5b490e837a1 WHIRLPOOL c2d83fd92687d07d2f240d4a6c1f150471041e0e0ab1c13f7cd1804a98d3565ed1df29c5124002ced0c403fec98b5464f8ad113cc76ae264d95413c81c4dc129
diff --git a/dev-util/visualvm/files/netbeans-platform-version.patch b/dev-util/visualvm/files/netbeans-platform-version.patch
new file mode 100644
index 000000000000..bf78fbc4cd73
--- /dev/null
+++ b/dev-util/visualvm/files/netbeans-platform-version.patch
@@ -0,0 +1,13 @@
+--- acinclude.m4.orig 2011-12-18 17:04:39.247567465 +0100
++++ acinclude.m4 2011-12-18 17:06:45.785726437 +0100
+@@ -152,7 +152,9 @@
+ ])
+ AC_MSG_RESULT([${SYSTEM_NETBEANS_DIR}])
+ AC_SUBST(SYSTEM_NETBEANS_DIR)
+-if test "$VVVERSION" = "1.3.3"; then
++if test -n "$NB_PLATFORM"; then
++ :
++elif test "$VVVERSION" = "1.3.3"; then
+ NB_PLATFORM=platform13;
+ else if test "$VVVERSION" = "1.3.2"; then
+ NB_PLATFORM=platform12;
diff --git a/dev-util/visualvm/files/org-netbeans-modules-profiler-kit.xml b/dev-util/visualvm/files/org-netbeans-modules-profiler-kit.xml
new file mode 100644
index 000000000000..94021f8ef293
--- /dev/null
+++ b/dev-util/visualvm/files/org-netbeans-modules-profiler-kit.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//NetBeans//DTD Module Status 1.0//EN"
+ "http://www.netbeans.org/dtds/module-status-1_0.dtd">
+<module name="org.netbeans.modules.profiler.kit">
+ <param name="autoload">false</param>
+ <param name="eager">false</param>
+ <param name="enabled">false</param>
+ <param name="jar">modules/org-netbeans-modules-profiler-kit.jar</param>
+ <param name="reloadable">false</param>
+</module>
diff --git a/dev-util/visualvm/files/org-netbeans-modules-profiler-nbimpl.xml b/dev-util/visualvm/files/org-netbeans-modules-profiler-nbimpl.xml
new file mode 100644
index 000000000000..d33e48d5b7f5
--- /dev/null
+++ b/dev-util/visualvm/files/org-netbeans-modules-profiler-nbimpl.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//NetBeans//DTD Module Status 1.0//EN"
+ "http://www.netbeans.org/dtds/module-status-1_0.dtd">
+<module name="org.netbeans.modules.profiler.nbimpl">
+ <param name="autoload">false</param>
+ <param name="eager">false</param>
+ <param name="enabled">false</param>
+ <param name="jar">modules/org-netbeans-modules-profiler-nbimpl.jar</param>
+ <param name="reloadable">false</param>
+</module>
diff --git a/dev-util/visualvm/files/org-netbeans-modules-profiler-options.xml b/dev-util/visualvm/files/org-netbeans-modules-profiler-options.xml
new file mode 100644
index 000000000000..d56b0c8fe32a
--- /dev/null
+++ b/dev-util/visualvm/files/org-netbeans-modules-profiler-options.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//NetBeans//DTD Module Status 1.0//EN"
+ "http://www.netbeans.org/dtds/module-status-1_0.dtd">
+<module name="org.netbeans.modules.profiler.options">
+ <param name="autoload">false</param>
+ <param name="eager">false</param>
+ <param name="enabled">false</param>
+ <param name="jar">modules/org-netbeans-modules-profiler-options.jar</param>
+ <param name="reloadable">false</param>
+</module>
diff --git a/dev-util/visualvm/files/org-netbeans-modules-profiler-oql-language.xml b/dev-util/visualvm/files/org-netbeans-modules-profiler-oql-language.xml
new file mode 100644
index 000000000000..0ba0c5aa0660
--- /dev/null
+++ b/dev-util/visualvm/files/org-netbeans-modules-profiler-oql-language.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//NetBeans//DTD Module Status 1.0//EN"
+ "http://www.netbeans.org/dtds/module-status-1_0.dtd">
+<module name="org.netbeans.modules.profiler.oql.language">
+ <param name="autoload">false</param>
+ <param name="eager">false</param>
+ <param name="enabled">false</param>
+ <param name="jar">modules/org-netbeans-modules-profiler-oql-language.jar</param>
+ <param name="reloadable">false</param>
+</module>
diff --git a/dev-util/visualvm/files/visualvm.conf b/dev-util/visualvm/files/visualvm.conf
new file mode 100644
index 000000000000..117e25436e8d
--- /dev/null
+++ b/dev-util/visualvm/files/visualvm.conf
@@ -0,0 +1,8 @@
+# Default user directory
+visualvm_default_userdir="${HOME}/.visualvm"
+
+# Default runtime options
+visualvm_default_options="-J-Dnetbeans.logger.console=true -J-ea -J-client -J-Xms24m -J-Xmx256m -J-Dnetbeans.accept_license_class=com.sun.tools.visualvm.modules.startup.AcceptLicense -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.d3d=false"
+
+# JDK home
+visualvm_jdkhome="$(java-config -O)"
diff --git a/dev-util/visualvm/files/visualvm.sh b/dev-util/visualvm/files/visualvm.sh
new file mode 100644
index 000000000000..d26306a9ac37
--- /dev/null
+++ b/dev-util/visualvm/files/visualvm.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# source the configuration file
+source /etc/visualvm/visualvm.conf
+
+# if visualvm userdir does not exist, create it and put in the default module configuration
+# so that user does not face warning that some (unneeded) modules were not found
+if [ ! -e "${visualvm_default_userdir}" ] ; then
+ mkdir -p "${visualvm_default_userdir}/config/Modules"
+ cp /usr/share/visualvm/config/* "${visualvm_default_userdir}/config/Modules/"
+fi
+
+# launch visualvm
+/usr/share/netbeans-platform-8.0/lib/nbexec --jdkhome ${visualvm_jdkhome} --userdir ${visualvm_default_userdir} \
+ --branding visualvm --clusters /usr/share/visualvm/cluster:/usr/share/netbeans-platform-8.0:/usr/share/netbeans-profiler-8.0 \
+ ${visualvm_default_options}
diff --git a/dev-util/visualvm/metadata.xml b/dev-util/visualvm/metadata.xml
new file mode 100644
index 000000000000..2c5fccdf3d93
--- /dev/null
+++ b/dev-util/visualvm/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+<longdescription>The IcedTea project provides a harness to build the source code from VisualVM. </longdescription>
+</pkgmetadata>
diff --git a/dev-util/visualvm/visualvm-1.3.8-r1.ebuild b/dev-util/visualvm/visualvm-1.3.8-r1.ebuild
new file mode 100644
index 000000000000..c3175a3a6e98
--- /dev/null
+++ b/dev-util/visualvm/visualvm-1.3.8-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Integrates commandline JDK tools and profiling capabilites"
+HOMEPAGE="http://visualvm.java.net/"
+SRC_URI="https://java.net/downloads/visualvm/release138/visualvm_138-src.tar.gz"
+
+LICENSE="GPL-2-with-linking-exception"
+SLOT="7"
+KEYWORDS="~amd64"
+IUSE=""
+
+COMMON_DEP="
+ || ( virtual/jdk:1.7 virtual/jdk:1.8 )
+ dev-java/netbeans-platform:8.0
+ dev-java/netbeans-profiler:8.0"
+RDEPEND="${COMMON_DEP}"
+DEPEND="${COMMON_DEP}
+ dev-java/netbeans-harness:8.0"
+
+S="${WORKDIR}/visualvm"
+INSTALL_DIR=/usr/share/${PN}
+
+EANT_BUILD_TARGET="build"
+
+src_prepare() {
+ mkdir "${S}/netbeans" || die "Failed to create netbeans directory"
+ ln -s /usr/share/netbeans-harness-8.0 "${S}/netbeans/harness" || die "Failed to symlink harness"
+ ln -s /usr/share/netbeans-platform-8.0 "${S}/netbeans/platform" || die "Failed to symlink platform"
+ ln -s /usr/share/netbeans-profiler-8.0 "${S}/netbeans/profiler" || die "Failed to symlink profiler"
+}
+
+src_install() {
+ # this is the visualvm cluster
+ insinto ${INSTALL_DIR}
+ doins -r "${S}/build/cluster"
+
+ # these are netbeans platform configuration files that prevent display of missing modules during startup
+ insinto ${INSTALL_DIR}/config
+ doins "${FILESDIR}"/org-netbeans-modules-profiler-*.xml
+
+ # configuration file that can be used to tweak visualvm startup parameters
+ insinto /etc/visualvm
+ doins "${FILESDIR}/visualvm.conf"
+
+ # visualvm runtime script
+ into ${INSTALL_DIR}
+ dobin "${FILESDIR}/visualvm.sh"
+ fperms 755 ${INSTALL_DIR}/bin/visualvm.sh
+ dosym ${INSTALL_DIR}/bin/visualvm.sh /usr/bin/visualvm
+
+ # makes visualvm entry
+ make_desktop_entry "/usr/bin/visualvm" "VisualVM" "java" "Development;Java;"
+}