Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/visualvm/
Date: Tue, 29 May 2018 20:26:23
Message-Id: 1527625569.a61991f7ba6b1af9bb69f0c82a4e6510774345b6.monsieurp@gentoo
1 commit: a61991f7ba6b1af9bb69f0c82a4e6510774345b6
2 Author: Guido Jäkel <g.jaekel <AT> dnb <DOT> de>
3 AuthorDate: Tue May 8 11:00:04 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue May 29 20:26:09 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a61991f7
7
8 dev-util/visualvm: version bump.
9
10 Derived from visualvm-1.3.9.ebuild.
11
12 This time, the Netbeans platform archive is included in the main archive
13 upstream.
14
15 Closes: https://github.com/gentoo/gentoo/pull/8316
16
17 dev-util/visualvm/Manifest | 1 +
18 dev-util/visualvm/visualvm-1.4.1.ebuild | 65 +++++++++++++++++++++++++++++++++
19 2 files changed, 66 insertions(+)
20
21 diff --git a/dev-util/visualvm/Manifest b/dev-util/visualvm/Manifest
22 index 04645c28c48..17e25d96eae 100644
23 --- a/dev-util/visualvm/Manifest
24 +++ b/dev-util/visualvm/Manifest
25 @@ -1,2 +1,3 @@
26 DIST nb802_visualvm_02102016.zip 23257637 BLAKE2B b18570b69a646c975c4b93028438cb7827f82e4e8d7d02bd11a76faf2a40164b9171626a1bd3b0664a216a30e27ff8b14d68941c8eff92e426fb92a45fb95687 SHA512 e33dba0cdfb509e9351fac343a4fbec07d3a893b6f484d0aeab972aefe41b061422dba8695003c6ca33db52d5be2f4ce218ea4fc7129f67dbd48c991c35349b5
27 DIST visualvm-1.3.9.tar.gz 3623394 BLAKE2B 8132447427b4abd206a825b4ce45ac54055cbb761a03624438baed7f58decb370d36bd13bb233638daad55086e04e01502b971fd0c95a31648a5b0795d8eb30f SHA512 580e2f3dd7cab1f71c8ae3004101c1067d04a7b4c164e6a59bbe95ca927dd275b8b4389e724cb7d8b38586986762126f261abc1779fb229a778c1c8db0f20387
28 +DIST visualvm-1.4.1.tar.gz 56752632 BLAKE2B cd171a48a0a9af440c27f2968ce27c5f89af3769046258629ba384ebbfc1c2ecb9847678af9d69bea5847fe1098e9039f35d350fb6f5d112e9236a6510c52bc7 SHA512 de8cf37e619e15c3a30c5116d49becddc09b54062aa22709e412892cf78e3048777116a8388dc6f63609d11bfb6fe37176fe48f5e3263a4dbce8439df676ef15
29
30 diff --git a/dev-util/visualvm/visualvm-1.4.1.ebuild b/dev-util/visualvm/visualvm-1.4.1.ebuild
31 new file mode 100644
32 index 00000000000..b29eb860b65
33 --- /dev/null
34 +++ b/dev-util/visualvm/visualvm-1.4.1.ebuild
35 @@ -0,0 +1,65 @@
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +NBV=90
41 +NBT=24042018
42 +NBZ=nb${NBV}_${PN}_${NBT}.zip
43 +
44 +inherit java-pkg-2 java-ant-2
45 +
46 +DESCRIPTION="Integrates commandline JDK tools and profiling capabilities"
47 +HOMEPAGE="https://visualvm.github.io"
48 +
49 +# Netbeans plattform is already included in the main archive this time
50 +# SRC_URI="https://github.com/oracle/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
51 +# https://github.com/oracle/${PN}/releases/download/${PV}/${NBZ}"
52 +SRC_URI="https://github.com/oracle/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
53 +
54 +LICENSE="GPL-2-with-linking-exception"
55 +SLOT="7"
56 +KEYWORDS="~amd64"
57 +
58 +RDEPEND="
59 + >=virtual/jre-1.7"
60 +
61 +DEPEND="
62 + >=virtual/jdk-1.7"
63 +
64 +S="${WORKDIR}/${P}/${PN}"
65 +
66 +EANT_BUILD_TARGET=build
67 +INSTALL_DIR=/usr/share/${PN}
68 +
69 +src_unpack() {
70 + unpack ${P}.tar.gz
71 + cd "${S}" || die
72 + # unpack ${NBZ}
73 + unpack ${S}/${NBZ} # archive is included in the main archive
74 +}
75 +
76 +src_prepare() {
77 + default
78 +
79 + # Remove unneeded binaries
80 + rm -rv netbeans/platform/lib/*.{dll,exe} \
81 + netbeans/platform/modules/lib/{amd64/*.dll,i386,x86} || die
82 + find netbeans/profiler/lib/deployed/jdk1? -mindepth 1 \
83 + -maxdepth 1 ! -name linux-amd64 -exec rm -rv {} + || die
84 +}
85 +
86 +src_install() {
87 + # this is the visualvm cluster
88 + insinto ${INSTALL_DIR}
89 + doins -r build/cluster netbeans/{platform,profiler}
90 +
91 + # configuration file that can be used to tweak visualvm startup parameters
92 + insinto /etc/${PN}
93 + newins "${FILESDIR}"/${PN}-r1.conf ${PN}.conf
94 +
95 + # visualvm runtime script
96 + newbin "${FILESDIR}"/${PN}-r1.sh ${PN}
97 +
98 + # makes visualvm entry
99 + make_desktop_entry ${PN} VisualVM java "Development;Java;"
100 +}