[arch-commits] Commit in cppcheck/repos/community-x86_64 (4 files)

2020-12-13 Thread Jelle van der Waa via arch-commits
Date: Sunday, December 13, 2020 @ 15:57:22
  Author: jelle
Revision: 774496

archrelease: copy trunk to community-x86_64

Added:
  cppcheck/repos/community-x86_64/PKGBUILD
(from rev 774495, cppcheck/trunk/PKGBUILD)
  cppcheck/repos/community-x86_64/translations-location.patch
(from rev 774495, cppcheck/trunk/translations-location.patch)
Deleted:
  cppcheck/repos/community-x86_64/PKGBUILD
  cppcheck/repos/community-x86_64/translations-location.patch

-+
 PKGBUILD|  135 --
 translations-location.patch |   40 ++--
 2 files changed, 87 insertions(+), 88 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2020-12-13 15:57:13 UTC (rev 774495)
+++ PKGBUILD2020-12-13 15:57:22 UTC (rev 774496)
@@ -1,68 +0,0 @@
-# Maintainer: Jelle van der Waa 
-# Contributor: Stéphane Gaudreault 
-
-pkgname=cppcheck
-pkgver=2.3
-pkgrel=1
-pkgdesc="A tool for static C/C++ code analysis"
-arch=('x86_64')
-url="http://cppcheck.sourceforge.net/;
-license=('GPL')
-depends=('python-pygments' 'tinyxml2')
-makedepends=('docbook-xsl' 'qt5-tools' 'qt5-base' 'python' 'pandoc' 'cmake' 
'clang')
-optdepends=('qt5-base: run cppcheck-gui'
-'python-pygments: cppcheck-htmlreport'
-'clang: for cppcheck-gui integration')
-source=($pkgname-$pkgver.tar.gz::https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz
-translations-location.patch cppcheck-2.2-tinyxml.patch)
-sha1sums=('3c6ed1897bd671a58d372be325bbd42cb237ab49'
-  '03b0888438cf92ccdcbf307dbc3c35e65c91b844'
-  'd83e1202770b7389c14a91885d7d838c097d7680')
-
-prepare() {
-   cd "${pkgname}-${pkgver}"
-   patch -Np1 -i $srcdir/translations-location.patch
-
-   mkdir build
-}
-
-build() {
-   cd "${pkgname}-${pkgver}"
-   export CXXFLAGS+=" -DNDEBUG"
-
-   # Manuals
-   xsversion=$(pacman -Qi docbook-xsl | grep ^Version | sed -e 's/.*: //' -e 
's/-[0-9]$//')
-   make 
DB2MAN=/usr/share/xml/docbook/xsl-stylesheets-${xsversion}-nons/manpages/docbook.xsl
 man
-   pandoc man/manual.md -o man/manual.html -s --number-sections --toc
-   pandoc man/reference-cfg-format.md -o man/reference-cfg-format.html -s 
--number-sections --toc
-
-   cd build
-   cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
- -DUSE_MATCHCOMPILER=yes -DHAVE_RULES=yes \
- -DBUILD_GUI=yes -DBUILD_SHARED_LIBS:BOOL=OFF \
- -DBUILD_TESTS=yes -DFILESDIR=/usr/share/cppcheck \
- -DUSE_BUNDLED_TINYXML2=OFF  \
- ..
-
-   make
-}
-
-
-check() {
-   cd "${pkgname}-${pkgver}/build/bin"
-   ./testrunner -g -q
-}
-
-package() {
-   cd "${pkgname}-${pkgver}/build"
-   make DESTDIR="${pkgdir}" install
-
-   cd ..
-
-   install -D -p -m 644 cppcheck.1 "${pkgdir}"/usr/share/man/man1/cppcheck.1
-   install -D -p -m 755 htmlreport/cppcheck-htmlreport 
"${pkgdir}"/usr/bin/cppcheck-htmlreport
-
-   # Fix location of language files
-   install -d "${pkgdir}"/usr/share/cppcheck/cfg/lang
-   mv "${pkgdir}"/usr/bin/cppcheck_*.qm 
"${pkgdir}"/usr/share/cppcheck/cfg/lang/
-}

Copied: cppcheck/repos/community-x86_64/PKGBUILD (from rev 774495, 
cppcheck/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2020-12-13 15:57:22 UTC (rev 774496)
@@ -0,0 +1,67 @@
+# Maintainer: Jelle van der Waa 
+# Contributor: Stéphane Gaudreault 
+
+pkgname=cppcheck
+pkgver=2.3
+pkgrel=2
+pkgdesc="A tool for static C/C++ code analysis"
+arch=('x86_64')
+url="http://cppcheck.sourceforge.net/;
+license=('GPL')
+depends=('python-pygments' 'tinyxml2')
+makedepends=('docbook-xsl' 'qt5-tools' 'qt5-base' 'python' 'pandoc' 'cmake' 
'clang')
+optdepends=('qt5-base: run cppcheck-gui'
+'python-pygments: cppcheck-htmlreport'
+'clang: for cppcheck-gui integration')
+source=($pkgname-$pkgver.tar.gz::https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz
+translations-location.patch)
+sha1sums=('3c6ed1897bd671a58d372be325bbd42cb237ab49'
+  '03b0888438cf92ccdcbf307dbc3c35e65c91b844')
+
+prepare() {
+   cd "${pkgname}-${pkgver}"
+   patch -Np1 -i $srcdir/translations-location.patch
+
+   mkdir build
+}
+
+build() {
+   cd "${pkgname}-${pkgver}"
+   export CXXFLAGS+=" -DNDEBUG"
+
+   # Manuals
+   xsversion=$(pacman -Qi docbook-xsl | grep ^Version | sed -e 's/.*: //' -e 
's/-[0-9]$//')
+   make 
DB2MAN=/usr/share/xml/docbook/xsl-stylesheets-${xsversion}-nons/manpages/docbook.xsl
 man
+   pandoc man/manual.md -o man/manual.html -s --number-sections --toc
+   pandoc man/reference-cfg-format.md -o man/reference-cfg-format.html -s 
--number-sections --toc
+
+   cd build
+   cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
+ -DUSE_MATCHCOMPILER=yes -DHAVE_RULES=yes \
+ -DBUILD_GUI=yes -DBUILD_SHARED_LIBS:BOOL=OFF \
+ -DBUILD_TESTS=yes 

[arch-commits] Commit in cppcheck/repos/community-x86_64 (4 files)

2019-12-25 Thread Felix Yan via arch-commits
Date: Wednesday, December 25, 2019 @ 23:46:44
  Author: felixonmars
Revision: 541505

archrelease: copy trunk to community-x86_64

Added:
  cppcheck/repos/community-x86_64/PKGBUILD
(from rev 541504, cppcheck/trunk/PKGBUILD)
  cppcheck/repos/community-x86_64/translations-location.patch
(from rev 541504, cppcheck/trunk/translations-location.patch)
Deleted:
  cppcheck/repos/community-x86_64/PKGBUILD
  cppcheck/repos/community-x86_64/translations-location.patch

-+
 PKGBUILD|  126 +-
 translations-location.patch |   40 ++---
 2 files changed, 83 insertions(+), 83 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2019-12-25 23:46:31 UTC (rev 541504)
+++ PKGBUILD2019-12-25 23:46:44 UTC (rev 541505)
@@ -1,63 +0,0 @@
-# Maintainer: Jelle van der Waa 
-# Maintainer: Stéphane Gaudreault 
-
-pkgname=cppcheck
-pkgver=1.89
-pkgrel=1
-pkgdesc="A tool for static C/C++ code analysis"
-arch=('x86_64')
-url="http://cppcheck.sourceforge.net/;
-license=('GPL')
-depends=('python-pygments')
-makedepends=('docbook-xsl' 'qt5-tools' 'qt5-base' 'python')
-optdepends=('qt5-base: run cppcheck-gui')
-source=($pkgname-$pkgver.tar.gz::https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz
-translations-location.patch)
-sha1sums=('9114a99e629ac820f417e5a4e7c7af47cb90050f'
-  '03b0888438cf92ccdcbf307dbc3c35e65c91b844')
-
-prepare() {
-   cd "${pkgname}-${pkgver}"
-   patch -Np1 -i $srcdir/translations-location.patch
-}
-
-build() {
-   cd "${pkgname}-${pkgver}"
-   export CXXFLAGS+=" -DNDEBUG"
-   # Unicode fix
-   LANG='en_US.UTF-8' make SRCDIR=build CFGDIR=/usr/share/cppcheck/cfg 
HAVE_RULES=yes USE_MATCHCOMPILER=yes
-
-   make 
DB2MAN=/usr/share/xml/docbook/xsl-stylesheets-1.79.2/manpages/docbook.xsl 
CFGDIR=/usr/share/cppcheck/cfg man
-
-   cd gui
-   lrelease gui.pro
-   qmake HAVE_RULES=yes
-   make CFGDIR=/usr/share/cppcheck/cfg USE_MATCHCOMPILER=yes HAVE_RULES=yes 
SRCDIR=build
-}
-
-check() {
-   cd "${pkgname}-${pkgver}"
-
-   #LANG='en_US.UTF-8' make SRCDIR=build CFGDIR=/usr/share/cppcheck/cfg 
HAVE_RULES=yes test
-}
-
-package() {
-   cd "${pkgname}-${pkgver}"
-  LANG='en_US.UTF-8' make DESTDIR="${pkgdir}" \
-  FILESDIR=/usr/share/cppcheck \
-  CFGDIR=/usr/share/cppcheck/cfg \
-  USE_MATCHCOMPILER=yes HAVE_RULES=yes install
-
-   install -D -p -m 644 cppcheck.1 "${pkgdir}"/usr/share/man/man1/cppcheck.1
-
-   # GUI
-   install -m755 gui/cppcheck-gui "${pkgdir}"/usr/bin
-   install -d "${pkgdir}/usr/share/applications/"
-   install -m644 gui/cppcheck-gui.desktop "${pkgdir}/usr/share/applications/"
-
-   install -d "${pkgdir}"/usr/share/cppcheck/cfg
-   install -D ./cfg/* -t "${pkgdir}"/usr/share/cppcheck/cfg
-
-   install -d "${pkgdir}"/usr/share/cppcheck/cfg/lang
-   install -D gui/*.qm -t "${pkgdir}"/usr/share/cppcheck/cfg/lang/
-}

Copied: cppcheck/repos/community-x86_64/PKGBUILD (from rev 541504, 
cppcheck/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2019-12-25 23:46:44 UTC (rev 541505)
@@ -0,0 +1,63 @@
+# Maintainer: Jelle van der Waa 
+# Maintainer: Stéphane Gaudreault 
+
+pkgname=cppcheck
+pkgver=1.90
+pkgrel=1
+pkgdesc="A tool for static C/C++ code analysis"
+arch=('x86_64')
+url="http://cppcheck.sourceforge.net/;
+license=('GPL')
+depends=('python-pygments')
+makedepends=('docbook-xsl' 'qt5-tools' 'qt5-base' 'python')
+optdepends=('qt5-base: run cppcheck-gui')
+source=($pkgname-$pkgver.tar.gz::https://github.com/danmar/cppcheck/archive/${pkgver}.tar.gz
+translations-location.patch)
+sha1sums=('852d69a60b6caf023a3420943ebdc29e99fd0349'
+  '03b0888438cf92ccdcbf307dbc3c35e65c91b844')
+
+prepare() {
+   cd "${pkgname}-${pkgver}"
+   patch -Np1 -i $srcdir/translations-location.patch
+}
+
+build() {
+   cd "${pkgname}-${pkgver}"
+   export CXXFLAGS+=" -DNDEBUG"
+   # Unicode fix
+   LANG='en_US.UTF-8' make SRCDIR=build CFGDIR=/usr/share/cppcheck/cfg 
HAVE_RULES=yes USE_MATCHCOMPILER=yes
+
+   make 
DB2MAN=/usr/share/xml/docbook/xsl-stylesheets-1.79.2/manpages/docbook.xsl 
CFGDIR=/usr/share/cppcheck/cfg man
+
+   cd gui
+   lrelease gui.pro
+   qmake HAVE_RULES=yes
+   make CFGDIR=/usr/share/cppcheck/cfg USE_MATCHCOMPILER=yes HAVE_RULES=yes 
SRCDIR=build
+}
+
+check() {
+   cd "${pkgname}-${pkgver}"
+
+   #LANG='en_US.UTF-8' make SRCDIR=build CFGDIR=/usr/share/cppcheck/cfg 
HAVE_RULES=yes test
+}
+
+package() {
+   cd "${pkgname}-${pkgver}"
+  LANG='en_US.UTF-8' make DESTDIR="${pkgdir}" \
+  FILESDIR=/usr/share/cppcheck \
+  CFGDIR=/usr/share/cppcheck/cfg \
+  USE_MATCHCOMPILER=yes HAVE_RULES=yes install
+
+   install -D -p -m 644 cppcheck.1