summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2023-06-10 09:33:54 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2023-06-10 09:34:02 +0200
commit7d696b1cb4912e18848e42982b8fd2e1e4eaf1db (patch)
treeb34f36a66f8fe4bbb45b8d043f62963900dd3b32 /dev-util/visualvm
parentdev-util/visualvm: dropped obsolete 2.1.2 (diff)
downloadgentoo-7d696b1cb4912e18848e42982b8fd2e1e4eaf1db.tar.gz
gentoo-7d696b1cb4912e18848e42982b8fd2e1e4eaf1db.tar.bz2
gentoo-7d696b1cb4912e18848e42982b8fd2e1e4eaf1db.zip
dev-util/visualvm: fixed some pkgcheck warnings
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-util/visualvm')
-rw-r--r--dev-util/visualvm/visualvm-2.1.6.ebuild14
1 files changed, 9 insertions, 5 deletions
diff --git a/dev-util/visualvm/visualvm-2.1.6.ebuild b/dev-util/visualvm/visualvm-2.1.6.ebuild
index 2724f40cf8be..084537d66f3d 100644
--- a/dev-util/visualvm/visualvm-2.1.6.ebuild
+++ b/dev-util/visualvm/visualvm-2.1.6.ebuild
@@ -21,7 +21,7 @@ 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/2.1.5/${NBZ}
+ https://github.com/oracle/${PN}/releases/download/$(ver_cut 1-2).5/${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}"
@@ -85,7 +85,8 @@ src_prepare() {
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"
+ 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() {
@@ -96,9 +97,12 @@ src_install() {
# 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"
+ 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