| 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.1.ebuild,v 1.5 2005/02/13 15:55:25 griffon26 Exp $ |
| 4 |
|
| 5 |
inherit flag-o-matic eutils |
| 6 |
RESTRICT="nostrip" |
| 7 |
|
| 8 |
DESCRIPTION="An open-source memory debugger for x86-GNU/Linux" |
| 9 |
HOMEPAGE="http://valgrind.kde.org" |
| 10 |
SRC_URI="http://developer.kde.org/~sewardj/${P}.tar.bz2" |
| 11 |
|
| 12 |
LICENSE="GPL-2" |
| 13 |
SLOT="0" |
| 14 |
KEYWORDS="~x86 -sparc -ppc -alpha" |
| 15 |
IUSE="X" |
| 16 |
|
| 17 |
DEPEND="virtual/libc |
| 18 |
sys-devel/autoconf |
| 19 |
X? ( virtual/x11 )" |
| 20 |
|
| 21 |
src_compile() { |
| 22 |
local myconf |
| 23 |
|
| 24 |
filter-flags -fPIC |
| 25 |
|
| 26 |
use X && myconf="--with-x" || myconf="--with-x=no" |
| 27 |
# note: it does not appear safe to play with CFLAGS |
| 28 |
econf ${myconf} || die |
| 29 |
emake || die |
| 30 |
} |
| 31 |
|
| 32 |
src_install() { |
| 33 |
einstall docdir="${D}/usr/share/doc/${PF}" || die |
| 34 |
dodoc ACKNOWLEDGEMENTS AUTHORS INSTALL NEWS \ |
| 35 |
PATCHES_APPLIED README* TODO ChangeLog FAQ.txt |
| 36 |
} |