summaryrefslogtreecommitdiff
path: root/dev-util/visualvm
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-07 17:37:01 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-07 17:37:01 +0100
commit2fe5661a32d6ec0ba1d6b37cc8ae67e3f81459ec (patch)
treef41d653fa88967e28246f7b63dba9f2fd7be2ab7 /dev-util/visualvm
parent6e88bac8dd26372eea042112ad3769b1fac9ae18 (diff)
gentoo auto-resync : 07:05:2023 - 17:37:01
Diffstat (limited to 'dev-util/visualvm')
-rw-r--r--dev-util/visualvm/Manifest6
-rw-r--r--dev-util/visualvm/visualvm-2.1.5.ebuild129
2 files changed, 135 insertions, 0 deletions
diff --git a/dev-util/visualvm/Manifest b/dev-util/visualvm/Manifest
index ee43db69a83b..c858519f7060 100644
--- a/dev-util/visualvm/Manifest
+++ b/dev-util/visualvm/Manifest
@@ -1,8 +1,14 @@
AUX visualvm-r2.sh 423 BLAKE2B cdc5db4465a339735ccff5f37bed89d76da2f2d514f522b7768fa37aad46804997d267285b09d6346674d43964d0ef0a0cadb24d28e9b90256a593d7420aab4a SHA512 eb7356e10a94db048fb471215b2115b93764931ed4178594bca5a1aac480f2262ef361b2f53fc23dbcdb4d44e1aeab678204c50583abb8016696a7d87288a9bb
DIST common-8.0.1.jar 435506 BLAKE2B e3c0db1691c9f27d39b5d0cad18707cd27e708d74d0db17a13b0ee4ddcc1d96cdd7455a8f5c69d01675434e2789fdb1870d87fffc8eae1776b396cf38c50c723 SHA512 0ee73534f08349c07a0c4c8654526030e634a3aee3175ff3986ad4e37dba0ea3b7d760582c8b612d316cf72f455596c1c50f08e6ddb2d175dc4bb12feba65b22
+DIST common-8.2.1.jar 435008 BLAKE2B 70785320a50b5ec3fa7865187ba8dd483b709a7350d395afd4a5d1df785b678f64b1263ea6523589ab022e5fd08990dcdbc9833ff39faabb94facec1c25897d0 SHA512 c52f4290f1fe93ed7f86b45e0973e7868672a4a4802214ce76ce19089c3e70e1ad076f6c19c4ef0a76b4ff9aad7e327213975752a64438fa73e88ee258192abe
DIST encoder-1.2.2.jar 37529 BLAKE2B 0e61c679db8c559005de726c8fc358cc5f04ab51b357fe53889cb585c8d006a77a3e24cb51043912ea9be11739ffa14de86f22d3dc4663aefee8bc75b9ff6862 SHA512 eed5529b326a9fd493032539dd50c7d60439fed0743cd567d348aa334e837d412ac10b220fd5099edcf9098fc7c684fba98b92916b9ef79831395686fd83b7dc
+DIST encoder-1.2.3.jar 37931 BLAKE2B b416d455424b3fd87c94f7f963c819d3a8d76e763c112947718514e2bc1b67b40c6cd9cc051c5cfae6b2aa1cbc92961d1bcc3565ba3dcf3bf58395d543c5aae9 SHA512 ba7887259007272c533228cec1e2c5caebd639ef05b7b8925be6a0b5a7da5859e82489af4d462153e64bf2ce1234a8d6caa606fc6e42675a41cf7a067cfc5f6b
DIST flightrecorder-8.0.1.jar 500815 BLAKE2B af9f024e7199e7f577e75b3d40f40a3e65f8e98be768415e5832aa6e1ffcfc9ecc391ef4d3fa515411d6d3ed051f35579656bae8cf8e1aea2023d54b072c84a0 SHA512 08c98ed3444b396e6e1ae0f909378c56e2ce04741f7b7ee83e39ae8a0699802709a5419f29c3a7bd44a11caba984071ef4f0554183fd5260ed28741edd191809
+DIST flightrecorder-8.2.1.jar 524427 BLAKE2B ba854d92a8655a1bbae108dd8f2dc0ad41d2be6d57cf96cc1870b28d47a680019e27cc7b53b6e10a441205d341bd03608173949dfe1231f8e6494a91c4a41f05 SHA512 362134638a6911c18c629e72705c662497d1bdfcccd986dc395fb50629526656e83629b9801b2ed137c511883332dc8e7ecf3d1de3a50f545fe89048effc7590
DIST lz4-java-1.7.1.jar 649950 BLAKE2B caed7593dad078fcaf3853a4dffbd540d7e5a3298b13092dee4b82a70359494584b9901da600239d65e9930e7a769adf1a45eac85033f8ca0cfcaef6a3b09544 SHA512 ff48daeca92c5a7657aa9c7fe41c5ae75a5fa0aad05c655bacb64a40acfe93ffd3d40bef16544614ce8a38db3e1df177023101773f6f7c1d32031413270e42d2
+DIST nb140_platform_20220908.zip 25886909 BLAKE2B 28cf8180eddd81fcfee513faf19e4a9ec2f3b7c35ad1ee23fe89bf6b5611432c3f41e9376b733ec5504fce1258e7dd27e0c229d291a5fbed3755df7fe0e99421 SHA512 cc2b320caa8fa0b4dbc5469e44453f1a586b6713af3bca799a654c7d1223741eab3a463fe53c955fb5639ec580f73ed93a7cc0ac26ce5dd84d55c418e024523e
DIST visualvm-2.1.2.tar.gz 36393559 BLAKE2B ba925ddacfb1474f47d0ab393c7f8f14d18e12ef25aef82efd59a273eb8464d8758e0cc82cf41238b0356546dd03fed319b8c04366c4037fa99251d358f5e1c2 SHA512 f324bdec570f050c3df3d047cf9ab9e8565ed95150d1bcb5d86166aa221d0a3c55a2c3cdb345ddbf42b9cef35cb6a21033ed24fd203c0dbb67d2f8dc2b5f2960
+DIST visualvm-2.1.5.tar.gz 11604281 BLAKE2B 0bea756221af59bf2eac44da1aa80a0f4a53691853afa17be23f25b0bd3a8e28c86c03a4b3215e182f1ec1ae9cd9309a6367384562d7d673b4ee34f4f6d22144 SHA512 1acefcd655d2312c01684ca2016f8b476cabb2acd43a89946bf03f185a846a6c90649b2033dc4b5c94ae73c0526972111e9a0fcd2e84921d8b6b70373ec82257
EBUILD visualvm-2.1.2.ebuild 3010 BLAKE2B 2908c91fd3f7e577e009114e102e193a6fd16ff626814f7afe1286d8e0af9d1696fe44c612bfc6300fb9aacef911aa2372221ba776294dd6f0d052671d4d4dc9 SHA512 5acaa9e212caf5066f25aed0b2a15fe5152c6fb440320ecd9bc89d963db59d88b107e6cb37ff6c72a1eb763951c5d06070b62e4749d94b56f98541b656045d81
+EBUILD visualvm-2.1.5.ebuild 4460 BLAKE2B 4a9a98ddbe8bfa8f8d02d4c4e9271725f2924b43aa9ee5ec2be9a6184c4ba5dff64d1fea44dd5e33d08ad94192c80332db456c4cfb51c428c64d8b9e59f41d01 SHA512 d309e8a8ae2ee03b58cb69b4530df89f61950b21987150f39b16d9f3217448d54b43d17bf91cf546a95f109702efdf7c2b47ba1e2e374e03233497a2554a242b
MISC metadata.xml 317 BLAKE2B e5f32379a40e3c2180df4f3ac4e7ea03a7dbfe69b1cb6537c1693262cc06e6334959abfb68f888c588fa933f60e85f137355bb57ff769107dfe805595d1a3ad1 SHA512 605d7206793c3d865547b69f9715305d46d433d18096b886b362d2d86adf4eda894c23af1819b6af95423fbe2a37781d1d100a9df9f15a01942f66c73dc2fa2c
diff --git a/dev-util/visualvm/visualvm-2.1.5.ebuild b/dev-util/visualvm/visualvm-2.1.5.ebuild
new file mode 100644
index 000000000000..bc1c98b7b552
--- /dev/null
+++ b/dev-util/visualvm/visualvm-2.1.5.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+NBV=140
+NBT=20220908
+NBZ=nb${NBV}_platform_${NBT}.zip
+FLIGHT_RECORDER_VERSION="8.2.1"
+FLIGHT_RECORDER_FILE="flightrecorder-${FLIGHT_RECORDER_VERSION}.jar"
+COMMON_VERSION="8.2.1"
+COMMON_FILE="common-${COMMON_VERSION}.jar"
+ENCODER_VERSION="1.2.3"
+ENCODER_FILE="encoder-${ENCODER_VERSION}.jar"
+LZ4_JAVA_VERSION="1.8.0"
+LZ4_JAVA_FILE="lz4-java-${LZ4_JAVA_VERSION}.jar"
+
+inherit java-pkg-2 java-ant-2 desktop
+
+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}
+ https://repo1.maven.org/maven2/org/openjdk/jmc/flightrecorder/${FLIGHT_RECORDER_VERSION}/${FLIGHT_RECORDER_FILE}
+ https://repo1.maven.org/maven2/org/openjdk/jmc/common/${COMMON_VERSION}/${COMMON_FILE}
+ https://repo1.maven.org/maven2/org/owasp/encoder/encoder/${ENCODER_VERSION}/${ENCODER_FILE}"
+
+LICENSE="GPL-2-with-linking-exception"
+SLOT="7"
+KEYWORDS="~amd64"
+
+COMMON_DEPEND="
+ dev-java/lz4-java:0
+"
+
+RDEPEND="
+ ${COMMON_DEPEND}
+ dev-java/asm:9
+ dev-java/hamcrest-core:1.3
+ dev-java/jna:4
+ dev-java/junit:4
+ dev-java/junit:5
+ dev-java/testng:0
+ >=virtual/jre-1.8:*"
+
+# it does not compile with java 11
+DEPEND="
+ ${COMMON_DEPEND}
+ virtual/jdk:1.8"
+
+BDEPEND="app-arch/unzip"
+
+S="${WORKDIR}/${P}/${PN}"
+
+QA_PREBUILT="
+ /usr/share/visualvm/platform/modules/lib/amd64/linux/libjnidispatch-nb.so
+ /usr/share/visualvm/cluster/lib/deployed/jdk1[56]/linux-amd64/libprofilerinterface.so
+"
+
+EANT_BUILD_TARGET=build
+EANT_EXTRA_ARGS="-Dext.binaries.downloaded=true"
+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 libs.profiler/lib.profiler/release/lib/deployed/jdk1? -mindepth 1 \
+ -maxdepth 1 ! -name linux-amd64 -exec rm -rv {} + || die
+
+ # link in downloaded jars
+ for file in ${FLIGHT_RECORDER_FILE} ${COMMON_FILE} ${ENCODER_FILE}; do
+ ln -s "${DISTDIR}/${file}" jfr.generic/external/ || die "Failed to link file ${file}"
+ done
+
+ java-pkg_jar-from --into jfr.generic/external lz4-java lz4-java.jar ${LZ4_JAVA_FILE} || die "Failed to link lz4 java jar"
+}
+
+src_install() {
+ # this is the visualvm cluster
+ insinto ${INSTALL_DIR}
+ doins -r build/cluster netbeans/{harness,platform}
+
+ # configuration file that can be used to tweak visualvm startup parameters
+ insinto /etc/${PN}
+ newins launcher/visualvm.conf ${PN}.conf
+ sed -i "s%visualvm_default_userdir=.*%visualvm_default_userdir=\"\${HOME}/.visualvm\"%g" "${ED}/etc/${PN}/visualvm.conf" || die "Failed to update userdir"
+ sed -i "s%visualvm_default_cachedir=.*%visualvm_default_cachedir=\"\${HOME}/.cache/visualvm\"%g" "${ED}/etc/${PN}/visualvm.conf" || die "Failed to update cachedir"
+ echo -e "\nvisualvm_jdkhome=\"\$(java-config -O)\"" >> "${ED}/etc/${PN}/visualvm.conf" || die "Failed to set jdk detection"
+
+ # replace bundled stuff
+ pushd "${ED}/${INSTALL_DIR}/platform/core" > /dev/null || die
+ for name in asm{,-commons,-tree}; do
+ rm ${name}-9.2.jar && java-pkg_jar-from asm-9 ${name}.jar ${name}-9.2.jar || die
+ done
+ popd > /dev/null
+
+ pushd "${ED}/${INSTALL_DIR}/platform/modules/ext" > /dev/null || die
+ rm hamcrest-core-1.3.jar && java-pkg_jar-from hamcrest-core-1.3 hamcrest-core.jar hamcrest-core-1.3.jar || die
+ rm jcommander-1.78.jar && java-pkg_jar-from jcommander jcommander.jar jcommander-1.78.jar || die
+ for name in jna{,-platform}; do
+ rm ${name}-5.12.1.jar && java-pkg_jar-from jna-4 ${name}.jar ${name}-5.12.1.jar || die
+ done
+ rm junit-4.13.2.jar && java-pkg_jar-from junit-4 junit.jar junit-4.13.2.jar || die
+ for name in junit-jupiter-{api,engine,params}; do
+ rm ${name}-5.6.0.jar && java-pkg_jar-from junit-5 ${name}.jar ${name}-5.6.0.jar || die
+ done
+ rm testng-6.14.3.jar && java-pkg_jar-from testng testng.jar testng-6.14.3.jar || die
+ popd > /dev/null
+
+ pushd "${ED}/${INSTALL_DIR}/cluster/modules/ext" > /dev/null || die
+ rm ${LZ4_JAVA_FILE} && java-pkg_jar-from lz4-java lz4-java.jar ${LZ4_JAVA_FILE} || die
+ popd > /dev/null
+
+ # visualvm runtime script
+ newbin "${FILESDIR}"/${PN}-r2.sh ${PN}
+
+ # makes visualvm entry
+ make_desktop_entry ${PN} VisualVM java "Development;Java;"
+}