. "$GRIMOIRE/FUNCTIONS"
           SPELL=valgrind
if [[ $VALGRIND_BRANCH == scm ]]
then
         VERSION=$(get_scm_version)
          SOURCE=$SPELL-svn.tar.bz2
   SOURCE_URL[0]=svn://svn.valgrind.org/valgrind/trunk:$SPELL-svn
  FORCE_DOWNLOAD=on
   SOURCE_IGNORE=volatile
SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-svn"
else
         VERSION=3.16.1
# Upstream offers an MD5 hash. Could use that for UPSTREAM_HASH.
# But MD5 is so broken that I'd rather not use it.
     SOURCE_HASH=sha512:2a4173efe1b6facdd2f5c5ee8ed006704168eba1813736fccc8191d60363afd96197512cf42037e65f18d4ddd49adc74a54c47210df216fba3c46bf68ef0f950
          SOURCE=$SPELL-$VERSION.tar.bz2
   SOURCE_URL[0]=https://sourceware.org/pub/valgrind/$SOURCE
SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
fi
      LICENSE[0]=GPL
        WEB_SITE=http://valgrind.org
         ENTERED=20020731
        KEYWORDS="debugger devel"
           SHORT="Suite of tools for debugging and profiling Linux programs."
cat << EOF
Valgrind is an award-winning suite of tools for debugging and profiling
Linux programs. With the tools that come with Valgrind, you can
automatically detect many memory management and threading bugs, avoiding
hours of frustrating bug-hunting, making your programs more stable. You
can also perform detailed profiling, to speed up and reduce memory use of
your programs.
The Valgrind distribution currently includes four tools: a memory error
detector, a cache (time) profiler, a call-graph profiler, and a heap
(space) profiler. It runs on the following platforms: X86/Linux,
AMD64/Linux, PPC32/Linux, PPC64/Linux.
EOF
