development/cppcheck: Updated for version 1.46.

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Sean Donner 2010-12-29 11:22:53 -02:00 committed by Robby Workman
parent b1eb764684
commit 1cb6cf94d1
4 changed files with 24 additions and 26 deletions

View File

@ -1,13 +1,13 @@
Cppcheck is an analysis tool for C/C++ code. Unlike C/C++ compilers and many Cppcheck is a static analysis tool for C/C++ code. Unlike C/C++ compilers
other analysis tools, we don't detect syntax errors. Cppcheck only detects and many other analysis tools, it doesn't detect syntax errors. Cppcheck
the types of bugs that the compilers normally fail to detect. The goal is to only detects the types of bugs that the compilers normally fail to detect.
have no false positives. The goal is to have no false positives.
To supplement Cppcheck, it is recommended that you enable as many compiler To supplement Cppcheck, it is recommended that you enable as many
warnings as possible. For the GCC compiler, take a look at compiler warnings as possible. For the GCC compiler, take a look
http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html for a comprehensive at http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html for a
list of warning options that GCC supports. At a minimum, it is recommended comprehensive list of warning options that GCC supports. At a minimum,
that you enable -Wall, -Wextra, and -pedantic it is recommended that you enable -Wall, -Wextra, and -pedantic
If you do not want to install the manual pages, you can run the build script If you do not want to install the manual pages, you can run the build
like this: MAKEMAN=no ./cppcheck.SlackBuild script like this: MAKEMAN=no ./cppcheck.SlackBuild

View File

@ -23,18 +23,16 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cppcheck PRGNAM=cppcheck
VERSION=${VERSION:-1.40} VERSION=${VERSION:-1.46}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
MAKEMAN=${MAKEMAN:-yes} MAKEMAN=${MAKEMAN:-yes}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i486 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
fi fi
@ -54,8 +52,8 @@ elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
rm -rf $PKG rm -rf $PKG
@ -67,8 +65,8 @@ cd $PRGNAM-$VERSION
chown root:root . -R chown root:root . -R
make \ make \
CFLAGS="$SLKCFLAGS -Wall -Wextra -pedantic -DNDEBUG" \ CFLAGS="$SLKCFLAGS -Wall -Wextra -pedantic -Wno-long-long -DNDEBUG" \
CXXFLAGS="$SLKCFLAGS -Wall -Wextra -pedantic -DNDEBUG" CXXFLAGS="$SLKCFLAGS -Wall -Wextra -pedantic -Wno-long-long -DNDEBUG"
make install DESTDIR=$PKG make install DESTDIR=$PKG
if [ x"$MAKEMAN" == "xyes" ]; then if [ x"$MAKEMAN" == "xyes" ]; then

View File

@ -1,10 +1,10 @@
PRGNAM="cppcheck" PRGNAM="cppcheck"
VERSION="1.40" VERSION="1.46"
HOMEPAGE="http://cppcheck.wiki.sourceforge.net" HOMEPAGE="http://cppcheck.wiki.sourceforge.net"
DOWNLOAD="http://downloads.sourceforge.net/project/cppcheck/cppcheck/1.40/cppcheck-1.40.tar.gz" DOWNLOAD="http://downloads.sourceforge.net/cppcheck/cppcheck-1.46.tar.gz"
MD5SUM="1ef320edb92213b5f24df8f0e21ceeac" MD5SUM="61be721298d975f589e2b82bc038141c"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="Sean Donner" MAINTAINER="Sean Donner"
EMAIL="sean.donner@gmail.com" EMAIL="sean.donner@gmail.com"
APPROVED="Erik Hanson" APPROVED="Niels Horn"

View File

@ -8,10 +8,10 @@
|-----handy-ruler------------------------------------------------------| |-----handy-ruler------------------------------------------------------|
cppcheck: Cppcheck (A tool for static C/C++ code analysis) cppcheck: Cppcheck (A tool for static C/C++ code analysis)
cppcheck: cppcheck:
cppcheck: Cppcheck is an analysis tool for C/C++ code. Unlike C/C++ compilers cppcheck: Cppcheck is a static analysis tool for C/C++ code. Unlike C/C++
cppcheck: and many other analysis tools, we don't detect syntax errors. Cppcheck cppcheck: compilers and many other analysis tools, it doesn't detect syntax
cppcheck: only detects the types of bugs that the compilers normally fail to cppcheck: errors. Cppcheck only detects the types of bugs that the compilers
cppcheck: detect. The goal is no false positives. cppcheck: normally fail to detect. The goal is no false positives.
cppcheck: cppcheck:
cppcheck: cppcheck:
cppcheck: cppcheck: