From 61a2cc4a0b604cdf3c907e9a0d9e34bd6fba78e1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 18 Jan 2010 16:17:43 +0100 Subject: [PATCH] Added cppcheck-1.40 build template. --HG-- extra : convert_revision : ec55083013e42562d83d20fa95ba704df0e0a6d6 --- srcpkgs/cppcheck/patches/Makefile_fix.diff | 36 ++++++++++++++++++++++ srcpkgs/cppcheck/template | 23 ++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 srcpkgs/cppcheck/patches/Makefile_fix.diff create mode 100644 srcpkgs/cppcheck/template diff --git a/srcpkgs/cppcheck/patches/Makefile_fix.diff b/srcpkgs/cppcheck/patches/Makefile_fix.diff new file mode 100644 index 00000000000..a297ad4ef73 --- /dev/null +++ b/srcpkgs/cppcheck/patches/Makefile_fix.diff @@ -0,0 +1,36 @@ +--- Makefile.orig 2010-01-18 16:06:14.309966144 +0100 ++++ Makefile 2010-01-18 16:13:22.777964886 +0100 +@@ -1,12 +1,12 @@ +-CXXFLAGS=-Wall -Wextra -pedantic -g ++CXXFLAGS=-Wall -Wextra -pedantic + CXX=g++ + BIN=${DESTDIR}/usr/bin + + # For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml +-DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl ++DB2MAN=/usr/share/xsl/docbook/manpages/docbook.xsl + XP=xsltproc -''-nonet -''-param man.charmap.use.subset "0" + MAN_SOURCE=man/cppcheck.1.xml +- ++MANDIR=$(DESTDIR)/usr/share/man + + ###### Object Files + +@@ -82,12 +82,14 @@ tools/dmake: tools/dmake.cpp lib/filelis + clean: + rm -f lib/*.o cli/*.o test/*.o testrunner cppcheck tools/dmake + +-man: $(MAN_SOURCE) +- $(XP) $(DB2MAN) $(MAN_SOURCE) ++cppcheck.1: $(MAN_SOURCE) ++ $(XP) $(DB2MAN) $< + + install: cppcheck + install -d ${BIN} +- install cppcheck ${BIN} ++ install -m755 cppcheck ${BIN} ++ install -d $(MANDIR)/man1 ++ install -m644 cppcheck.1 $(MANDIR)/man1 + + + ###### Build diff --git a/srcpkgs/cppcheck/template b/srcpkgs/cppcheck/template new file mode 100644 index 00000000000..ee56191195c --- /dev/null +++ b/srcpkgs/cppcheck/template @@ -0,0 +1,23 @@ +# Template file for 'cppcheck' +pkgname=cppcheck +version=1.40 +distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz" +build_style=gnu_makefile +make_build_target="cppcheck cppcheck.1" +short_desc="Static analysis of C/C++ code" +maintainer="Juan RP " +checksum=77dc5dd758abc7497367f5f20a6af8e9ae3e460ac99c7813fec4e8aef089d439 +long_desc=" + Cppcheck is a tool for static C/C++ code analysis, and it tries to + detect bugs that your compiler do not see. Checks for: memory leaks, + mismatching allocation-deallocation, buffer overrun, and many more. + + Cppcheck is versatile. You can check non-standard code that includes + various compiler extensions, inline assembly code, etc. The goal is no + false positives." + +Add_dependency run glibc +Add_dependency run libgcc +Add_dependency run libstdc++ +Add_dependency build libxslt +Add_dependency build docbook-xsl