cppcheck: update to 1.75 (#1769)

* cppcheck: update to 1.75

* cppcheck: add a patch to fix the list of 'cfg' path
This commit is contained in:
Yusuke Sasaki
2016-09-30 18:23:19 +09:00
committed by Алексей
parent f58ab00e7d
commit d7074d5485
2 changed files with 19 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
--- a/lib/library.cpp 2016-08-07 01:49:40.000000000 +0900
+++ b/lib/library.cpp 2016-09-30 04:16:08.760802800 +0900
@@ -80,7 +80,7 @@
#endif
if (exename) {
const std::string exepath(Path::fromNativeSeparators(Path::getPathFromFilename(exename)));
- cfgfolders.push_back(exepath + "cfg");
+ cfgfolders.push_back(exepath + "../share/cppcheck/cfg");
cfgfolders.push_back(exepath);
}

View File

@@ -1,9 +1,9 @@
# Maintainer: Yusuke Sasaki <y_sasaki@nuem.nagoya-u.ac.jp>
# Maintainer: Yusuke Sasaki <yusuke.sasaki.nuem@gmail.com>
_realname=cppcheck
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.74
pkgver=1.75
pkgrel=1
pkgdesc="static analysis of C/C++ code (mingw-w64)"
arch=('any')
@@ -15,13 +15,16 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-docbook-xsl"
optdepends=("${MINGW_PACKAGE_PREFIX}-qt5: cppcheck-gui"
"${MINGW_PACKAGE_PREFIX}-python2-pygments: cppcheck-htmlreport")
source=(${_realname}-${pkgver}.tar.gz::"https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz"
'0010-change-language-files-path.patch')
sha256sums=('a7f9657bf458190ea1c994b95333d31d09420198ad8cd010c05d2194cc547fa0'
'a15a73396a2fa346d29df52c3143b46618454d0bc0f12f0ad891d5a4a856cb56')
'0010-change-language-files-path.patch'
'0020-change-cfg-path.patch')
sha256sums=('d3732dba3fb4dee075009e2422cd9b48bbd095249994ec60550aee43026030e5'
'a15a73396a2fa346d29df52c3143b46618454d0bc0f12f0ad891d5a4a856cb56'
'3d54eb5abb99f88846e0d2a1e21793904efbe7179464631ca05985d03642d134')
prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
patch -p1 -i "${srcdir}/0010-change-language-files-path.patch"
patch -p1 -i "${srcdir}/0020-change-cfg-path.patch"
}
build() {