diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/visualvm |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/visualvm')
-rw-r--r-- | dev-util/visualvm/Manifest | 11 | ||||
-rw-r--r-- | dev-util/visualvm/files/org-netbeans-modules-profiler-kit.xml | 10 | ||||
-rw-r--r-- | dev-util/visualvm/files/org-netbeans-modules-profiler-nbimpl.xml | 10 | ||||
-rw-r--r-- | dev-util/visualvm/files/org-netbeans-modules-profiler-options.xml | 10 | ||||
-rw-r--r-- | dev-util/visualvm/files/org-netbeans-modules-profiler-oql-language.xml | 10 | ||||
-rw-r--r-- | dev-util/visualvm/files/visualvm.conf | 8 | ||||
-rw-r--r-- | dev-util/visualvm/files/visualvm.sh | 16 | ||||
-rw-r--r-- | dev-util/visualvm/metadata.xml | 9 | ||||
-rw-r--r-- | dev-util/visualvm/visualvm-1.3.8-r1.ebuild | 58 |
9 files changed, 142 insertions, 0 deletions
diff --git a/dev-util/visualvm/Manifest b/dev-util/visualvm/Manifest new file mode 100644 index 000000000000..b7e636a6262e --- /dev/null +++ b/dev-util/visualvm/Manifest @@ -0,0 +1,11 @@ +AUX org-netbeans-modules-profiler-kit.xml 480 SHA256 f2b7ef384e71241dd91a49825b62a97875231dc5ac539e1ca1919a0edc02b6ca SHA512 43c979dce3996ef49de4cea4e46d1869bcf707cdabd0af04442ea7ba1ecb7e4f0d35e0355114e0382a1b7e105c02a7aedf0846ccab3e0cdc1f82f0a829dc9e40 WHIRLPOOL 1c7d2b7e3ac98850147dde1c17f6de7bf46cada3837b5933777305271b104e0ce8bb0011680f4ce3b48f0b5517cc0b588832b0a868d1992d1085bae1039e1341 +AUX org-netbeans-modules-profiler-nbimpl.xml 486 SHA256 86d7dd0bb435f9fe97a54ab1dff2d6f5a2cc8413add1ac78c9abed9600e0de5f SHA512 608089dfe84c19542ebabf484b4ba4ac0c0fd9be62d0e86f1a46f5b99cc00e702236618037aa5afa9d2f866af8b360fc4cfe9683998616e96964595068e73f4a WHIRLPOOL e8913740280b7a5f73082789d55f48b4d1a970f24074981771e116404a5028ab679e55faa7636502935442be171e0a231cf78f659d28c6bd3473195e83af9be0 +AUX org-netbeans-modules-profiler-options.xml 488 SHA256 fdef7c3e062df1cfddff844c11b0763190a92f863a9d308de240b67a42ea110a SHA512 00012a71334794b5b454f7de1ddecd2dd5ea90f11c8a4fdade520d0128d4cd27af13f5dc707b00231c68bf302189f06eaf2addc9cdfe403773421497ae4f1dcd WHIRLPOOL 028d335379785361e582016f8279914d2baf00c037f15c7e9e3094e19c1c53a6242669cd990c914437fe0447cbd12773fa67047671d704bebce58abdd3ee518a +AUX org-netbeans-modules-profiler-oql-language.xml 498 SHA256 dec11f45e21b886b98841e058e7dfa2be8d34cec1309e8401d334f7f23471738 SHA512 95962ba87c85c7f0ae9378eab7b29d377e3e4cd5173e65f428f26d0c2e9d35d69f140877d1fbb77dbdca4ca0473d8beeae48674101412c9b41e0be832895f4b2 WHIRLPOOL 445fd2ab096125512f7ab0599cf7b1a3938ddba9bb5570596d1fb9e307e8ad1fbdcd905dea808bf7447c696f0973a5aa239cb6666f73977f62718ac8bd716517 +AUX visualvm.conf 383 SHA256 8ee4e0cb4a69cd0db8f581bef42ae8504ba14323dfe163f7c275e9f821d1a3ae SHA512 a5537c7ff8e3821ea435cb6236eac6d0f8941d16541f14862cf5ad15fc2d3621cd50aa296dd316f54f7137196981163b211fe984d21a38ababfce05d575203ff WHIRLPOOL f53de8d9401fbeb86ffb23825da5d228dee2ff1a6b158a74190a6bc37ec24d36d819d65242d0d7b1e0732baadc98766740b33381bc93eb1a9210051b48a9f849 +AUX visualvm.sh 730 SHA256 3828b835d52d7c3a8d452b4cca0273559318bdd66c8a1e6e3fa27354ec06d6f6 SHA512 5f8ba3cbb1c74c9807c016fff5ce31abeb15275df68c710acfb2d0e5f9ecf7e9c5c6aa85c865350bc8225caa278117cda8d6005e28759cc327baf0d14546b95b WHIRLPOOL 85d6857376ccb4ec84391cc4ae9c259911a60060d23753217f6bb26f8fee53bbdd3324bc014bcd030a558080ebc9949b3c5123b7516cd979c75a73aba2d27e92 +DIST visualvm_138-src.tar.gz 1052176 SHA256 e34cd0425d74055e03394c572735067d3b98095ed5c04268707b52f1dc7c6144 SHA512 f418fcd3316f793c6fc77c6bcdf1e53dc543f7de2ee638f3d500a4de61505246fd07829b25cdf988836f515b72c59c71a2a4fecbb569910e9203e5b490e837a1 WHIRLPOOL c2d83fd92687d07d2f240d4a6c1f150471041e0e0ab1c13f7cd1804a98d3565ed1df29c5124002ced0c403fec98b5464f8ad113cc76ae264d95413c81c4dc129 +EBUILD visualvm-1.3.8-r1.ebuild 1801 SHA256 430d3eb62f58d9aba67fc46fecd0fa95bbb9dd5acc2d8fad13cb36ee2e7dc4d9 SHA512 68b0dd605e34df43883caa8476913cf77f804141e0d90b2cbd68827fe152984296b6895f2520ee14b81a4ad01d35eaa6af4c7eae3b126b3bb12f7dd747778dc3 WHIRLPOOL 56f22c4d1d1e7fe65267ea3c6f5af73776f07aa0ed438af8a96ff3fa840e743e7b63d266acb0115d890a0dbab0a2c5d7c918ee9b7561992e5397350535b0b2cf +MISC ChangeLog 2950 SHA256 9b5c0dd533ce296b0bfa4f1ea2ae5df7bd3f65c71cb4341ef91a6b51d1785ae4 SHA512 bc1cd08ad0b17a63f8727c9d6987aa6c981b9ff631e58614809c4d46635bbac691f058f8ad7acb49fa99087d06e6a852c0cf67e9186cf6c89b01ec9107279573 WHIRLPOOL 1787ce34ab59e9509c7c8afd1f23e06b151e8a0b6b97b43984d06aeb56306121a9eb3b2e759eacc299aeabe81643a9e66ca47c3c4a7641d3a0955cc13dbd4a23 +MISC ChangeLog-2015 2106 SHA256 cd9d0b9eebe63b3dd597a4a000c396c0975d129be3a492740bb7c017e66124aa SHA512 4c7428777f2f257866aa253a160c062d9f368b0831076b9f8804f81ee93e0f6dd98f572fde056ce2093807fdce805132ebda1268d703ce14e188fdf06ff4ad9c WHIRLPOOL 83081cbbfa408fdf21b4dce0a6d92dd4cc08c4e668b529cca3c77d4f33d1c6698bd06bef670e9f6c001d0412e510ee34aadbdfb2e3fc9dfb9b80184cc89d9f67 +MISC metadata.xml 346 SHA256 f90f6f8211893f5ce8dbf54c4ba4d8dae856449e6e61245667202a7148ef643b SHA512 bef5b6d65ed86015b369e396c706b70f885407890e72fb177d170761d9c04a6dfc843d59999a9076ca64f3c281cb25b604213f31c67cec5e7cc47389e99429b9 WHIRLPOOL 0e3020788df31c25ab4303ef911557435cc648a41c946b884146d06a4b039f2be7900d685c0291129d11a93fe83b7020739ff387dca7fcb1d622ea92ae92ccdb 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..9ef97ae66fd0 --- /dev/null +++ b/dev-util/visualvm/metadata.xml @@ -0,0 +1,9 @@ +<?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> +</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..911a74a645a5 --- /dev/null +++ b/dev-util/visualvm/visualvm-1.3.8-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Integrates commandline JDK tools and profiling capabilities" +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;" +} |