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

Contents of /dev-util/valgrind/valgrind-3.0.1.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, 3 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.ebuild,v 1.1 2005/08/30 20:01:54 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 # make sure our CFLAGS are respected
24 einfo "Changing configure to respect CFLAGS"
25 sed -i -e 's:CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure
26
27 # Correct hard coded doc location
28 sed -i -e "s:doc/valgrind/:doc/${P}/:" docs/Makefile.in
29 }
30
31 src_compile() {
32 local myconf
33
34 # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
35 # while compiling insn_sse.c in none/tests/x86
36 # -fpie valgrind seemingly hangs when built with pie on
37 # amd64 (bug #102157)
38 # -fstack-protector ???
39 # -ggdb3 segmentation fault on startup
40 filter-flags -fomit-frame-pointer
41 filter-flags -fpie
42 #filter-flags -fstack-protector
43 replace-flags -ggdb3 -ggdb2
44
45 # Optionally build in X suppression files
46 use X && myconf="--with-x" || myconf="--with-x=no"
47
48 econf ${myconf} || die "Configure failed!"
49 emake || die "Make failed!"
50 }
51
52 src_install() {
53 make DESTDIR="${D}" install || die "Install failed!"
54 dodoc ACKNOWLEDGEMENTS AUTHORS FAQ.txt NEWS README*
55 }

  ViewVC Help
Powered by ViewVC 1.1.20