diff options
author | 2018-05-08 13:00:04 +0200 | |
---|---|---|
committer | 2018-05-29 22:26:09 +0200 | |
commit | a61991f7ba6b1af9bb69f0c82a4e6510774345b6 (patch) | |
tree | 308fe95e38861e708d01c522cd6aea8c63eaa1b1 /dev-util/visualvm/visualvm-1.4.1.ebuild | |
parent | app-text/recode: update HOMEPAGE. (diff) | |
download | gentoo-a61991f7ba6b1af9bb69f0c82a4e6510774345b6.tar.gz gentoo-a61991f7ba6b1af9bb69f0c82a4e6510774345b6.tar.bz2 gentoo-a61991f7ba6b1af9bb69f0c82a4e6510774345b6.zip |
dev-util/visualvm: version bump.
Derived from visualvm-1.3.9.ebuild.
This time, the Netbeans platform archive is included in the main archive
upstream.
Closes: https://github.com/gentoo/gentoo/pull/8316
Diffstat (limited to 'dev-util/visualvm/visualvm-1.4.1.ebuild')
-rw-r--r-- | dev-util/visualvm/visualvm-1.4.1.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/dev-util/visualvm/visualvm-1.4.1.ebuild b/dev-util/visualvm/visualvm-1.4.1.ebuild new file mode 100644 index 000000000000..b29eb860b654 --- /dev/null +++ b/dev-util/visualvm/visualvm-1.4.1.ebuild @@ -0,0 +1,65 @@ +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +NBV=90 +NBT=24042018 +NBZ=nb${NBV}_${PN}_${NBT}.zip + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Integrates commandline JDK tools and profiling capabilities" +HOMEPAGE="https://visualvm.github.io" + +# Netbeans plattform is already included in the main archive this time +# SRC_URI="https://github.com/oracle/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz +# https://github.com/oracle/${PN}/releases/download/${PV}/${NBZ}" +SRC_URI="https://github.com/oracle/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2-with-linking-exception" +SLOT="7" +KEYWORDS="~amd64" + +RDEPEND=" + >=virtual/jre-1.7" + +DEPEND=" + >=virtual/jdk-1.7" + +S="${WORKDIR}/${P}/${PN}" + +EANT_BUILD_TARGET=build +INSTALL_DIR=/usr/share/${PN} + +src_unpack() { + unpack ${P}.tar.gz + cd "${S}" || die + # unpack ${NBZ} + unpack ${S}/${NBZ} # archive is included in the main archive +} + +src_prepare() { + default + + # Remove unneeded binaries + rm -rv netbeans/platform/lib/*.{dll,exe} \ + netbeans/platform/modules/lib/{amd64/*.dll,i386,x86} || die + find netbeans/profiler/lib/deployed/jdk1? -mindepth 1 \ + -maxdepth 1 ! -name linux-amd64 -exec rm -rv {} + || die +} + +src_install() { + # this is the visualvm cluster + insinto ${INSTALL_DIR} + doins -r build/cluster netbeans/{platform,profiler} + + # configuration file that can be used to tweak visualvm startup parameters + insinto /etc/${PN} + newins "${FILESDIR}"/${PN}-r1.conf ${PN}.conf + + # visualvm runtime script + newbin "${FILESDIR}"/${PN}-r1.sh ${PN} + + # makes visualvm entry + make_desktop_entry ${PN} VisualVM java "Development;Java;" +} |