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

Contents of /dev-util/valgrind/valgrind-2.2.0-r2.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-2.2.0-r2.ebuild,v 1.3 2005/03/24 20:32:32 griffon26 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://developer.kde.org/~sewardj/${P}.tar.bz2 )
10 ppc? ( http://ozlabs.org/~paulus/${P}-ppc.tar.bz2 )"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="-* x86 ~ppc"
15 IUSE="X"
16 RESTRICT="nostrip"
17
18 RDEPEND="virtual/libc
19 X? ( virtual/x11 )"
20 DEPEND="${RDEPEND}
21 sys-devel/autoconf"
22
23 src_unpack() {
24 unpack ${A}
25 use ppc && cd "${WORKDIR}/${P}-ppc" || cd ${S}
26
27 #ugly but working workaround
28 if has_version '>=virtual/os-headers-2.6.7' ; then
29 einfo "Removing net/if.h from the includes in vg_unsafe.h"
30 sed -i -e "s:#include <net/if.h>::" \
31 coregrind/vg_unsafe.h ||die
32 fi
33
34 epatch "${FILESDIR}/${P}-no-exec-stack.patch"
35
36 # To prevent clash with current macro in /usr/include/asm/current.h
37 epatch "${FILESDIR}/${P}-current-macro-clash.patch"
38
39 # make sure our CFLAGS are respected
40 einfo "Changing configure to respect CFLAGS"
41 sed -i -e 's:CFLAGS="":#CFLAGS="":' configure
42 }
43
44 src_compile() {
45 use ppc && cd "${WORKDIR}/${P}-ppc"
46
47 local myconf
48
49 filter-flags -fPIC -fstack-protector -fomit-frame-pointer
50
51 use X && myconf="--with-x" || myconf="--with-x=no"
52 # note: it does not appear safe to play with CFLAGS
53 econf ${myconf} || die
54 emake || die "emake failed"
55 }
56
57 src_install() {
58 use ppc && cd "${WORKDIR}/${P}-ppc"
59 einstall docdir="${D}/usr/share/doc/${PF}/html" || die
60 dodoc ACKNOWLEDGEMENTS AUTHORS FAQ.txt NEWS README* TODO
61 }

  ViewVC Help
Powered by ViewVC 1.1.20