summaryrefslogtreecommitdiffstats
path: root/packages/dev-util/valgrind/valgrind-scm.exheres-0
diff options
context:
space:
mode:
Diffstat (limited to 'packages/dev-util/valgrind/valgrind-scm.exheres-0')
-rw-r--r--packages/dev-util/valgrind/valgrind-scm.exheres-049
1 files changed, 49 insertions, 0 deletions
diff --git a/packages/dev-util/valgrind/valgrind-scm.exheres-0 b/packages/dev-util/valgrind/valgrind-scm.exheres-0
new file mode 100644
index 0000000..1e7c0d9
--- /dev/null
+++ b/packages/dev-util/valgrind/valgrind-scm.exheres-0
@@ -0,0 +1,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[@]}"
+}
+