/[gentoo-x86]/dev-util/valgrind/valgrind-2.4.0.ebuild
Gentoo

Contents of /dev-util/valgrind/valgrind-2.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Jun 9 20:01:54 2006 UTC (8 years, 3 months ago) by griffon26
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Removed old valgrind ebuilds and fixed bug #131987
(Portage version: 2.1_rc4)
 (Signed Manifest commit)

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.4.0.ebuild,v 1.7 2005/07/26 22:34:02 vapier Exp $
4
5 inherit flag-o-matic eutils
6
7 DESCRIPTION="An open-source memory debugger for x86-GNU/Linux and ppc-GNU/Linux"
8 HOMEPAGE="http://valgrind.kde.org"
9 SRC_URI="x86? ( http://www.valgrind.org/downloads/${P}.tar.bz2 )
10 ppc? ( http://www.valgrind.org/downloads/pmk/${P}-ppc.tar.bz2 )"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="-* ~ppc x86"
15 IUSE="X"
16 RESTRICT="strip"
17
18 RDEPEND="X? ( virtual/x11 )"
19 DEPEND="${RDEPEND}
20 sys-devel/autoconf"
21
22 use ppc && \
23 S=${WORKDIR}/${P}-ppc
24
25 src_unpack() {
26 unpack ${A}
27 cd "${S}"
28
29 # make sure our CFLAGS are respected
30 einfo "Changing configure to respect CFLAGS"
31 sed -i -e 's:CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure
32
33 # Enables valgrind to build with PIE and disables PIE for
34 # tests that fail to build with it
35 epatch "${FILESDIR}"/${P}-pie-fix.patch
36 }
37
38 src_compile() {
39 local myconf
40
41 filter-flags -fstack-protector -fomit-frame-pointer
42
43 use X && myconf="--with-x" || myconf="--with-x=no"
44
45 # note: it does not appear safe to play with CFLAGS
46 econf ${myconf} || die
47 emake || die "emake failed"
48 }
49
50 src_install() {
51 einstall docdir="${D}/usr/share/doc/${PF}/html" || die
52 dodoc ACKNOWLEDGEMENTS AUTHORS FAQ.txt NEWS README* TODO
53 }

  ViewVC Help
Powered by ViewVC 1.1.20