1 |
commit: 696120f42096fda5c7567a4425a2cb6a35e5e95e |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 4 03:53:41 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 4 03:53:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=696120f4 |
7 |
|
8 |
dev-util/visualvm: bump to 2.0.7 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
dev-util/visualvm/Manifest | 1 + |
14 |
dev-util/visualvm/visualvm-2.0.7.ebuild | 72 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 73 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/visualvm/Manifest b/dev-util/visualvm/Manifest |
18 |
index a788c8273c0..2c04d2fa6b8 100644 |
19 |
--- a/dev-util/visualvm/Manifest |
20 |
+++ b/dev-util/visualvm/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST visualvm-2.0.6.tar.gz 39086223 BLAKE2B f5657d4ccc0063281226b4d70c35820c78333db5574bae5acadc321938cfe42a3e0e4c1752badcc3e01b5694f6081213f5da898f5a13587d44e36d18fbd5c2c7 SHA512 03ad628f753e31f26217366d8f5f184f4657ba55badd55f1466dbf00cda61e9c320cc8ddb82b228863b9c6416aec3e94a01c5429e2b2f4664c9daaccd02f5d7b |
23 |
+DIST visualvm-2.0.7.tar.gz 39155599 BLAKE2B 8a460cb161357114d829d41a7e4b2306e9e0023a6995aceed89cc12fc0b54d5e05402bc1b8c72d4cb3caba5a4844bfbebb4734d7f7c5663343dfb3bd4470945a SHA512 d75217fb1b2a8c4d1c44b600dc42d488be8447fc569f78c10c59954c7c64f8e1ccdeef2e6a7936e7708b9392bbd7634d7149c6d6cc797df1f0036c6c473398ff |
24 |
|
25 |
diff --git a/dev-util/visualvm/visualvm-2.0.7.ebuild b/dev-util/visualvm/visualvm-2.0.7.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..e132e704c5c |
28 |
--- /dev/null |
29 |
+++ b/dev-util/visualvm/visualvm-2.0.7.ebuild |
30 |
@@ -0,0 +1,72 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+NBV=113 |
37 |
+NBT=27102020 |
38 |
+NBZ=nb${NBV}_platform_${NBT}.zip |
39 |
+ |
40 |
+inherit java-pkg-2 java-ant-2 desktop |
41 |
+ |
42 |
+DESCRIPTION="Integrates commandline JDK tools and profiling capabilities" |
43 |
+HOMEPAGE="https://visualvm.github.io" |
44 |
+ |
45 |
+# Netbeans plattform is already included in the main archive this time |
46 |
+# SRC_URI="https://github.com/oracle/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz |
47 |
+# https://github.com/oracle/${PN}/releases/download/${PV}/${NBZ}" |
48 |
+SRC_URI="https://github.com/oracle/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="GPL-2-with-linking-exception" |
51 |
+SLOT="7" |
52 |
+KEYWORDS="~amd64" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ >=virtual/jre-1.8" |
56 |
+ |
57 |
+# it does not compile with java 11 |
58 |
+DEPEND=" |
59 |
+ virtual/jdk:1.8" |
60 |
+ |
61 |
+S="${WORKDIR}/${P}/${PN}" |
62 |
+ |
63 |
+QA_PREBUILT=" |
64 |
+ /usr/share/visualvm/platform/modules/lib/amd64/linux/libjnidispatch-nb.so |
65 |
+ /usr/share/visualvm/cluster/lib/deployed/jdk1[56]/linux-amd64/libprofilerinterface.so |
66 |
+" |
67 |
+ |
68 |
+EANT_BUILD_TARGET=build |
69 |
+INSTALL_DIR=/usr/share/${PN} |
70 |
+ |
71 |
+src_unpack() { |
72 |
+ unpack ${P}.tar.gz |
73 |
+ cd "${S}" || die |
74 |
+ # unpack ${NBZ} |
75 |
+ unpack "${S}"/"${NBZ}" # archive is included in the main archive |
76 |
+} |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ default |
80 |
+ |
81 |
+ # Remove unneeded binaries |
82 |
+ rm -rv netbeans/platform/lib/*.{dll,exe} \ |
83 |
+ netbeans/platform/modules/lib/{amd64/*.dll,i386,x86} || die |
84 |
+ find libs.profiler/lib.profiler/release/lib/deployed/jdk1? -mindepth 1 \ |
85 |
+ -maxdepth 1 ! -name linux-amd64 -exec rm -rv {} + || die |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ # this is the visualvm cluster |
90 |
+ insinto ${INSTALL_DIR} |
91 |
+ doins -r build/cluster netbeans/{harness,platform} |
92 |
+ |
93 |
+ # configuration file that can be used to tweak visualvm startup parameters |
94 |
+ insinto /etc/${PN} |
95 |
+ newins "${FILESDIR}"/${PN}-r2.conf ${PN}.conf |
96 |
+ |
97 |
+ # visualvm runtime script |
98 |
+ newbin "${FILESDIR}"/${PN}-r2.sh ${PN} |
99 |
+ |
100 |
+ # makes visualvm entry |
101 |
+ make_desktop_entry ${PN} VisualVM java "Development;Java;" |
102 |
+} |