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

Contents of /dev-util/valgrind/valgrind-3.0.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jun 9 20:01:54 2006 UTC (8 years, 5 months ago) by griffon26
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +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-3.0.1-r1.ebuild,v 1.1 2005/11/06 14:55:28 griffon26 Exp $
4
5 inherit eutils flag-o-matic
6
7 DESCRIPTION="An open-source memory debugger for GNU/Linux"
8 HOMEPAGE="http://www.valgrind.org"
9 SRC_URI="http://www.valgrind.org/downloads/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="-* ~amd64 ~ppc ~x86"
14 IUSE="X"
15
16 # bug #49147 (bogus stacktrace in gdb with --db-attach=yes) does not seem to be applicable anymore
17 #RESTRICT="strip"
18
19 src_unpack() {
20 unpack ${A}
21 cd "${S}"
22
23 # Gets rid of text relocations (bug #111233)
24 epatch "${FILESDIR}/${P}-pic-fix.patch"
25 aclocal
26 automake
27
28 # make sure our CFLAGS are respected
29 einfo "Changing configure to respect CFLAGS"
30 sed -i -e 's:CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure
31
32 # Correct hard coded doc location
33 sed -i -e "s:doc/valgrind/:doc/${P}/:" docs/Makefile.in
34
35 # http://bugs.kde.org/show_bug.cgi?id=112167
36 epatch "${FILESDIR}/${P}-mfence.patch"
37 }
38
39 src_compile() {
40 local myconf
41
42 # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
43 # while compiling insn_sse.c in none/tests/x86
44 # -fpie valgrind seemingly hangs when built with pie on
45 # amd64 (bug #102157)
46 # -fstack-protector ???
47 # -ggdb3 segmentation fault on startup
48 filter-flags -fomit-frame-pointer
49 filter-flags -fpie
50 #filter-flags -fstack-protector
51 replace-flags -ggdb3 -ggdb2
52
53 # Optionally build in X suppression files
54 use X && myconf="--with-x" || myconf="--with-x=no"
55
56 econf ${myconf} || die "Configure failed!"
57 emake || die "Make failed!"
58 }
59
60 src_install() {
61 make DESTDIR="${D}" install || die "Install failed!"
62 dodoc ACKNOWLEDGEMENTS AUTHORS FAQ.txt NEWS README*
63 }

  ViewVC Help
Powered by ViewVC 1.1.20