| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/valgrind-3.7.0-r4.ebuild,v 1.1 2012/05/01 13:03:29 blueness Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/valgrind-3.7.0-r4.ebuild,v 1.2 2012/05/10 09:21:33 grobian Exp $ |
| 4 | |
4 | |
| 5 | EAPI="4" |
5 | EAPI="4" |
| 6 | inherit autotools eutils flag-o-matic toolchain-funcs multilib pax-utils |
6 | inherit autotools eutils flag-o-matic toolchain-funcs multilib pax-utils |
| 7 | |
7 | |
| 8 | DESCRIPTION="An open-source memory debugger for GNU/Linux" |
8 | DESCRIPTION="An open-source memory debugger for GNU/Linux" |
| … | |
… | |
| 33 | # Yet more local labels, this time for ppc32 & ppc64 |
33 | # Yet more local labels, this time for ppc32 & ppc64 |
| 34 | epatch "${FILESDIR}"/${PN}-3.6.0-local-labels.patch |
34 | epatch "${FILESDIR}"/${PN}-3.6.0-local-labels.patch |
| 35 | |
35 | |
| 36 | # Don't build in empty assembly files for other platforms or we'll get a QA |
36 | # Don't build in empty assembly files for other platforms or we'll get a QA |
| 37 | # warning about executable stacks. |
37 | # warning about executable stacks. |
| 38 | epatch "${FILESDIR}"/${PN}-3.7.0-non-exec-stack.patch |
38 | epatch "${FILESDIR}"/${PN}-3.7.0-non-exec-stack-v2.patch |
| 39 | |
39 | |
| 40 | # Fix the regex to get gcc's version |
40 | # Fix the regex to get gcc's version |
| 41 | epatch "${FILESDIR}"/${PN}-3.7.0-fix-gcc-regex.patch |
41 | epatch "${FILESDIR}"/${PN}-3.7.0-fix-gcc-regex.patch |
| 42 | |
42 | |
| 43 | # Fix stricter use of dir variables, bug #397429 |
43 | # Fix stricter use of dir variables, bug #397429 |
| … | |
… | |
| 82 | |
82 | |
| 83 | econf ${myconf} |
83 | econf ${myconf} |
| 84 | } |
84 | } |
| 85 | |
85 | |
| 86 | src_install() { |
86 | src_install() { |
| 87 | emake DESTDIR="${ED}" install |
87 | emake DESTDIR="${D}" install |
| 88 | dodoc AUTHORS FAQ.txt NEWS README* |
88 | dodoc AUTHORS FAQ.txt NEWS README* |
| 89 | |
89 | |
| 90 | pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux |
90 | pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux |
| 91 | |
91 | |
| 92 | if [[ ${CHOST} == *-darwin* ]] ; then |
92 | if [[ ${CHOST} == *-darwin* ]] ; then |