blob: 0a683f7576b944e8a723f909499bf7e664b9fa59 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/valgrind-1.0.4-r1.ebuild,v 1.1 2003/01/02 14:07:45 danarmak Exp $
IUSE="X"
S=${WORKDIR}/${P}
DESCRIPTION="An open-source memory debugger for x86-GNU/Linux"
HOMEPAGE="http://developer.kde.org/~sewardj"
SRC_URI="http://developer.kde.org/~sewardj/${P}.tar.bz2
kcachegrind.sourceforge.net/patch-0.2b-valgrind-1.0.4.gz"
DEPEND="virtual/glibc
X? ( virtual/x11 )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 -sparc -ppc -alpha"
src_unpack() {
unpack ${P}.tar.bz2
cd $S
gzip -cd ${DISTDIR}/patch-0.2b-valgrind-1.0.4.gz | patch -p1
}
src_compile()
{
local myconf
use X && myconf="--with-x" || myconf="--with-x=no"
# note: it does not appear safe to play with CFLAGS
econf ${myconf} || die
emake || die
}
src_install()
{
einstall docdir="${D}/usr/share/doc/${PF}" || die
dodoc README* COPYING ChangeLog TODO ACKNOWLEDGEMENTS AUTHORS NEWS
}
|