| 1 |
# Copyright 1999-2005 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/valgrind-2.1.2.ebuild,v 1.4 2005/02/13 15:55:25 griffon26 Exp $
|
| 4 |
|
| 5 |
inherit flag-o-matic eutils
|
| 6 |
|
| 7 |
DESCRIPTION="An open-source memory debugger for x86-GNU/Linux"
|
| 8 |
HOMEPAGE="http://valgrind.kde.org"
|
| 9 |
SRC_URI="http://developer.kde.org/~sewardj/${P}.tar.bz2"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="~x86 -sparc -ppc -alpha"
|
| 14 |
IUSE="X"
|
| 15 |
RESTRICT="nostrip"
|
| 16 |
|
| 17 |
RDEPEND="virtual/libc
|
| 18 |
X? ( virtual/x11 )"
|
| 19 |
DEPEND="${RDEPEND}
|
| 20 |
sys-devel/autoconf"
|
| 21 |
|
| 22 |
src_unpack() {
|
| 23 |
unpack ${A}
|
| 24 |
#ugly but working workaround
|
| 25 |
if has_version '>=sys-kernel/linux26-headers-2.6.7' ; then
|
| 26 |
epatch "${FILESDIR}/${P}-kernel-headers.patch"
|
| 27 |
fi
|
| 28 |
}
|
| 29 |
src_compile() {
|
| 30 |
local myconf
|
| 31 |
|
| 32 |
filter-flags -fPIC
|
| 33 |
|
| 34 |
use X && myconf="--with-x" || myconf="--with-x=no"
|
| 35 |
# note: it does not appear safe to play with CFLAGS
|
| 36 |
econf ${myconf} || die
|
| 37 |
emake || die "emake failed"
|
| 38 |
}
|
| 39 |
|
| 40 |
src_install() {
|
| 41 |
einstall docdir="${D}/usr/share/doc/${PF}/html" || die
|
| 42 |
dodoc ACKNOWLEDGEMENTS AUTHORS FAQ.txt NEWS README* TODO
|
| 43 |
}
|