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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jun 9 20:01:54 2006 UTC (8 years, 1 month ago) by griffon26
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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.0.ebuild,v 1.3 2005/08/04 22:31:25 herbs 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 # Disables PIE for tests that fail to build with it
31 epatch "${FILESDIR}/${P}-pie-fix.patch"
32 }
33
34 src_compile() {
35 local myconf
36
37 # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
38 # while compiling insn_sse.c in none/tests/x86
39 # -fstack-protector ???
40 # -ggdb3 segmentation fault on startup
41 filter-flags -fomit-frame-pointer
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 # Enable this, otherwise when built with PIE it exits at startup
49 # with: "executable range is outside acceptable range"
50 myconf="${myconf} --enable-pie"
51
52 econf ${myconf} || die "Configure failed!"
53 emake || die "Make failed!"
54 }
55
56 src_install() {
57 make DESTDIR="${D}" install || die "Install failed!"
58 dodoc ACKNOWLEDGEMENTS AUTHORS FAQ.txt NEWS README*
59 }

  ViewVC Help
Powered by ViewVC 1.1.20