summaryrefslogtreecommitdiff
blob: 961efc067dd0a4156921103e120fea49e619ac1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jmp/jmp-0.51.ebuild,v 1.5 2007/04/12 14:31:11 welp Exp $

inherit java-pkg-2

DESCRIPTION="Java Memory Profiler"
HOMEPAGE="http://www.khelekore.org/jmp/"

# From the upstream maintainer:
# Yes, old OpenBSD server that does not like the window scaling
# that modern linuxes uses.
# Try something like this:
# $ sudo bash
# $ echo 0 > /proc/sys/net/ipv4/tcp_window_scaling
#
#SRC_URI="http://www.khelekore.org/${PN}/${P}.tar.gz"
SRC_URI="mirror://gentoo/${P}.tar.gz"

IUSE="gtk"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ppc x86"

# Fails to detect >sun-jdk-1.5 as a valid jdk
RDEPEND="|| ( =virtual/jre-1.4* =virtual/jre-1.5* )
	gtk? ( >=x11-libs/gtk+-2.0 )"
DEPEND="|| ( =virtual/jdk-1.4* =virtual/jdk-1.5* )
	${RDEPEND}"

src_compile() {
	econf $(use_enable !gtk noui) || die "econf ${myconf} failed"
	emake || die "emake failed"
}

src_install() {
	einstall || die "install failed"
	dodoc ChangeLog README TODO || die
}

pkg_postinst() {
	elog "Please not that jmp is not compatible with VMs newer"
	elog "than 1.5 so make sure your vm is set to either 1.4 or"
	elog "1.5 when using jmp with the vm."
}