diff --git a/srcpkgs/cppcheck/patches/Makefile-db2man.patch b/srcpkgs/cppcheck/patches/Makefile-db2man.patch new file mode 100644 index 00000000000..213b6abc418 --- /dev/null +++ b/srcpkgs/cppcheck/patches/Makefile-db2man.patch @@ -0,0 +1,23 @@ +--- Makefile.orig 2011-02-06 12:14:09.000000000 +0100 ++++ Makefile 2011-02-08 09:44:42.673787912 +0100 +@@ -15,7 +15,7 @@ endif + BIN=$(DESTDIR)$(PREFIX)/bin + + # For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml on Linux +-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 + +@@ -131,8 +131,9 @@ tags: + + install: cppcheck + install -d ${BIN} +- install cppcheck ${BIN} +- ++ install -m755 cppcheck ${BIN} ++ install -d $(DESTDIR)$(PREFIX)/share/man/man1 ++ install -m644 cppcheck.1 $(DESTDIR)$(PREFIX)/share/man/man1 + + ###### Build + diff --git a/srcpkgs/cppcheck/patches/Makefile_fix.diff b/srcpkgs/cppcheck/patches/Makefile_fix.diff deleted file mode 100644 index fd08ee0d159..00000000000 --- a/srcpkgs/cppcheck/patches/Makefile_fix.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- Makefile.orig 2010-05-02 14:30:00.962750572 +0200 -+++ Makefile 2010-05-02 14:31:50.935750160 +0200 -@@ -3,10 +3,10 @@ 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 - -@@ -77,13 +77,14 @@ test: all - clean: - rm -f lib/*.o cli/*.o test/*.o testrunner cppcheck - --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 index d23fd5ed5a1..a02826de23e 100644 --- a/srcpkgs/cppcheck/template +++ b/srcpkgs/cppcheck/template @@ -1,12 +1,12 @@ # Template file for 'cppcheck' pkgname=cppcheck -version=1.42 +version=1.47 distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz" build_style=gnu_makefile -make_build_target="cppcheck cppcheck.1" +make_build_target="all man" short_desc="Static analysis of C/C++ code" maintainer="Juan RP " -checksum=a3349315e6e30ae9ea189225750e6f08e4a647b459080d4846e3c4cf6751adf0 +checksum=de78df4952e0206dc4373d06497aeb41624cf6da3e979c193a9d7c4920f143ef 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, @@ -16,8 +16,10 @@ long_desc=" various compiler extensions, inline assembly code, etc. The goal is no false positives." -Add_dependency run glibc Add_dependency run libgcc +Add_dependency run glibc Add_dependency run libstdc++ +Add_dependency run libpcre Add_dependency build libxslt Add_dependency build docbook-xsl +Add_dependency build pcre-devel