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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Jun 28 20:34:57 2005 UTC (9 years ago) by griffon26
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Marked valgrind 2.4.0 stable and removed old ebuilds.
(Portage version: 2.0.51.22-r1)

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-r1.ebuild,v 1.3 2005/02/13 15:55:25 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 #ugly but working workaround
27 if has_version '>=sys-kernel/linux26-headers-2.6.7' ; then
28 einfo "Removing net/if.h from the includes in vg_unsafe.h"
29 sed -i -e "s:#include <net/if.h>::" \
30 coregrind/vg_unsafe.h ||die
31 fi
32 epatch "${FILESDIR}/${P}-no-exec-stack.patch"
33 }
34 src_compile() {
35 use ppc && cd "${WORKDIR}/${P}-ppc"
36
37 local myconf
38
39 filter-flags -fPIC
40
41 use X && myconf="--with-x" || myconf="--with-x=no"
42 # note: it does not appear safe to play with CFLAGS
43 econf ${myconf} || die
44 emake || die "emake failed"
45 }
46
47 src_install() {
48 use ppc && cd "${WORKDIR}/${P}-ppc"
49 einstall docdir="${D}/usr/share/doc/${PF}/html" || die
50 dodoc ACKNOWLEDGEMENTS AUTHORS FAQ.txt NEWS README* TODO
51 }

  ViewVC Help
Powered by ViewVC 1.1.20