diff options
author | Ralph Sennhauser <sera@gentoo.org> | 2012-05-01 09:01:07 +0000 |
---|---|---|
committer | Ralph Sennhauser <sera@gentoo.org> | 2012-05-01 09:01:07 +0000 |
commit | 1909ac17c5887773054978e41fdecb0aa1febbbf (patch) | |
tree | eae71b7ecab8032278f129a4462b8d5ca42d249e /dev-util/visualvm | |
parent | Fix building docs with python3 wrt #410873 by Ian Abbott <ian@abbott.org>. Th... (diff) | |
download | gentoo-2-1909ac17c5887773054978e41fdecb0aa1febbbf.tar.gz gentoo-2-1909ac17c5887773054978e41fdecb0aa1febbbf.tar.bz2 gentoo-2-1909ac17c5887773054978e41fdecb0aa1febbbf.zip |
Add missing eutils to inherit.
Bump netbeans deps to :7.1 and only depend on required subset. #397843
Fix bogous DESTDIR for prefix.
Don't call die in subshells.
(Portage version: 2.1.10.57/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/visualvm')
-rw-r--r-- | dev-util/visualvm/ChangeLog | 12 | ||||
-rw-r--r-- | dev-util/visualvm/visualvm-1.3.3-r2.ebuild | 83 | ||||
-rw-r--r-- | dev-util/visualvm/visualvm-1.3.3-r9.ebuild | 83 |
3 files changed, 177 insertions, 1 deletions
diff --git a/dev-util/visualvm/ChangeLog b/dev-util/visualvm/ChangeLog index 950e12af0389..c904d74fbbad 100644 --- a/dev-util/visualvm/ChangeLog +++ b/dev-util/visualvm/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for dev-util/visualvm # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/visualvm/ChangeLog,v 1.2 2012/01/08 21:02:46 fordfrog Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/visualvm/ChangeLog,v 1.3 2012/05/01 09:01:07 sera Exp $ + +*visualvm-1.3.3-r9 (01 May 2012) +*visualvm-1.3.3-r2 (01 May 2012) + + 01 May 2012; Ralph Sennhauser <sera@gentoo.org> +visualvm-1.3.3-r2.ebuild, + +visualvm-1.3.3-r9.ebuild: + Add missing eutils to inherit. + Bump netbeans deps to :7.1 and only depend on required subset. #397843 + Fix bogous DESTDIR for prefix. + Don't call die in subshells. 08 Jan 2012; Miroslav Šulc <fordfrog@gentoo.org> +files/netbeans-platform-version.patch: diff --git a/dev-util/visualvm/visualvm-1.3.3-r2.ebuild b/dev-util/visualvm/visualvm-1.3.3-r2.ebuild new file mode 100644 index 000000000000..5b3542c3c696 --- /dev/null +++ b/dev-util/visualvm/visualvm-1.3.3-r2.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/visualvm/visualvm-1.3.3-r2.ebuild,v 1.1 2012/05/01 09:01:07 sera Exp $ + +EAPI="4" + +inherit eutils autotools + +VISUALVM_PKG="visualvm_harness-1.3" +VISUALVM_TARBALL="visualvm_133-src.tar.gz" +NETBEANS_PROFILER_TARBALL="netbeans-profiler-visualvm_release701.tar.gz" + +DESCRIPTION="Integrates commandline JDK tools and profiling capabilites." +HOMEPAGE="http://icedtea.classpath.org" +SRC_URI=" + http://icedtea.classpath.org/download/visualvm/${VISUALVM_PKG}.tar.gz + http://icedtea.classpath.org/download/visualvm/${VISUALVM_TARBALL} + http://icedtea.classpath.org/download/visualvm/${NETBEANS_PROFILER_TARBALL}" + +LICENSE="GPL-2-with-linking-exception" +SLOT="6" +KEYWORDS="~amd64" +IUSE="" + +COMMON_DEP=" + dev-java/icedtea:${SLOT} + dev-java/netbeans-harness:7.1 + dev-java/netbeans-platform:7.1" +RDEPEND="${COMMON_DEP}" +DEPEND="${COMMON_DEP} + dev-java/ant-core + dev-java/ant-nodeps" + +S="${WORKDIR}/${VISUALVM_PKG}" + +src_unpack() { + unpack ${VISUALVM_PKG}.tar.gz +} + +src_prepare() { + epatch "${FILESDIR}"/netbeans-platform-version.patch + eautoreconf + + unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS + + export ANT_RESPECT_JAVA_HOME=TRUE + export ANT_TASKS=ant-nodeps +} + +src_configure() { + local vmhome + vmhome=$(get_vmhome) || die + + econf NB_PLATFORM=platform \ + --bindir="${vmhome}"/bin \ + --libdir="${vmhome}"/lib \ + --sysconfdir="${vmhome}"/lib/visualvm/etc \ + --with-netbeans-profiler-zip="${DISTDIR}"/${NETBEANS_PROFILER_TARBALL} \ + --with-visualvm-zip="${DISTDIR}"/${VISUALVM_TARBALL} \ + --with-visualvm-version=${PV} \ + --with-netbeans-home="${EPREFIX}"/usr/share/netbeans-nb-7.1 \ + --with-jdk-home="${vmhome}" +} + +src_install() { + emake DESTDIR="${D}" install + + # Don't install default .desktop, file collision. + local vmhome + vmhome=$(get_vmhome) || die + rm -r "${ED}"/usr/share || die + make_desktop_entry "${vmhome}/bin/jvisualvm" "OpenJDK ${SLOT} VisualVM" "java" "Development;Java;" +} + +get_vmhome() { + local vmhandle=icedtea-${SLOT} + has_version "<=dev-java/icedtea-6.1.10.4:6" && vmhandle=icedtea6 + + local vmhome + vmhome="$(GENTOO_VM=${vmhandle} java-config -O)" || return 1 + + echo "${vmhome}" +} diff --git a/dev-util/visualvm/visualvm-1.3.3-r9.ebuild b/dev-util/visualvm/visualvm-1.3.3-r9.ebuild new file mode 100644 index 000000000000..0e71dbd5444f --- /dev/null +++ b/dev-util/visualvm/visualvm-1.3.3-r9.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/visualvm/visualvm-1.3.3-r9.ebuild,v 1.1 2012/05/01 09:01:07 sera Exp $ + +EAPI="4" + +inherit eutils autotools + +VISUALVM_PKG="visualvm_harness-1.3" +VISUALVM_TARBALL="visualvm_133-src.tar.gz" +NETBEANS_PROFILER_TARBALL="netbeans-profiler-visualvm_release701.tar.gz" + +DESCRIPTION="Integrates commandline JDK tools and profiling capabilites." +HOMEPAGE="http://icedtea.classpath.org" +SRC_URI=" + http://icedtea.classpath.org/download/visualvm/${VISUALVM_PKG}.tar.gz + http://icedtea.classpath.org/download/visualvm/${VISUALVM_TARBALL} + http://icedtea.classpath.org/download/visualvm/${NETBEANS_PROFILER_TARBALL}" + +LICENSE="GPL-2-with-linking-exception" +SLOT="7" +KEYWORDS="~amd64" +IUSE="" + +COMMON_DEP=" + dev-java/icedtea:${SLOT} + dev-java/netbeans-harness:7.1 + dev-java/netbeans-platform:7.1" +RDEPEND="${COMMON_DEP}" +DEPEND="${COMMON_DEP} + dev-java/ant-core + dev-java/ant-nodeps" + +S="${WORKDIR}/${VISUALVM_PKG}" + +src_unpack() { + unpack ${VISUALVM_PKG}.tar.gz +} + +src_prepare() { + epatch "${FILESDIR}"/netbeans-platform-version.patch + eautoreconf + + unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS + + export ANT_RESPECT_JAVA_HOME=TRUE + export ANT_TASKS=ant-nodeps +} + +src_configure() { + local vmhome + vmhome=$(get_vmhome) || die + + econf NB_PLATFORM=platform \ + --bindir="${vmhome}"/bin \ + --libdir="${vmhome}"/lib \ + --sysconfdir="${vmhome}"/lib/visualvm/etc \ + --with-netbeans-profiler-zip="${DISTDIR}"/${NETBEANS_PROFILER_TARBALL} \ + --with-visualvm-zip="${DISTDIR}"/${VISUALVM_TARBALL} \ + --with-visualvm-version=${PV} \ + --with-netbeans-home="${EPREFIX}"/usr/share/netbeans-nb-7.1 \ + --with-jdk-home="${vmhome}" +} + +src_install() { + emake DESTDIR="${D}" install + + # Don't install default .desktop, file collision. + local vmhome + vmhome=$(get_vmhome) || die + rm -r "${ED}"/usr/share || die + make_desktop_entry "${vmhome}/bin/jvisualvm" "OpenJDK ${SLOT} VisualVM" "java" "Development;Java;" +} + +get_vmhome() { + local vmhandle=icedtea-${SLOT} + has_version "<=dev-java/icedtea-6.1.10.4:6" && vmhandle=icedtea6 + + local vmhome + vmhome="$(GENTOO_VM=${vmhandle} java-config -O)" || return 1 + + echo "${vmhome}" +} |