summaryrefslogtreecommitdiffstats
path: root/packages/dev-util/valgrind/valgrind-scm.exheres-0
blob: 1e7c0d957b1f3fd82e8cfcd64e88702df13fa330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 2008, 2009, 2011 Ingmar Vanhassel <ingmar@exherbo.org>
# Distributed under the terms of the GNU General Public License v2
# Based in part upon 'valgrind-3.3.0.ebuild' from Gentoo, which is:
#     Copyright 1999-2008 Gentoo Foundation.

SCM_REPOSITORY="svn://svn.valgrind.org/valgrind"
SCM_libvex_REPOSITORY="svn://svn.valgrind.org/vex"
SCM_SECONDARY_REPOSITORIES="libvex"
SCM_EXTERNAL_REFS="VEX:libvex"

require scm-svn flag-o-matic autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.11 1.10 ] ]

SUMMARY="An open-source memory debugger for GNU/Linux"
HOMEPAGE="http://www.valgrind.org"

UPSTREAM_RELEASE_NOTES="${HOMEPAGE}/docs/manual/dist.news.html"

LICENCES="GPL-2"
SLOT="0"
PLATFORMS="-* ~amd64 ~x86"
MYOPTIONS="platform: amd64"

DEPENDENCIES="
    build+run:
        sys-libs/glibc[>=2.2&<2.14]
"

src_prepare() {
    edo sed -e 's:^CFLAGS="-Wno-long-long":& $CFLAGS:' -i configure.in
    edo sed -e "s:doc/${PN}:doc/${PNV}:" -i docs/Makefile.am

    autotools_src_prepare
}

src_configure() {
    local myconf=()

    filter-flags -fomit-frame-pointer
    # -ggdb3 causes segfaults at startup
    replace-flags -ggdb3 -ggdb2

    # FIXME multilib: option platform:amd64 && ! has_multilib_profile
    if option platform:amd64 ; then
        myconf=( --enable-only64bit )
    fi

    econf "${myconf[@]}"
}