cppcheck.
This commit is contained in:
@@ -4,10 +4,7 @@
|
|||||||
# Licensed under the GNU General Public License, version 3.
|
# Licensed under the GNU General Public License, version 3.
|
||||||
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
||||||
|
|
||||||
from pisi.actionsapi import shelltools
|
from pisi.actionsapi import cmaketools, mesontools, pisitools
|
||||||
from pisi.actionsapi import cmaketools
|
|
||||||
from pisi.actionsapi import pisitools
|
|
||||||
from pisi.actionsapi import get
|
|
||||||
|
|
||||||
j = ''.join([
|
j = ''.join([
|
||||||
' -DUSE_Z3=ON',
|
' -DUSE_Z3=ON',
|
||||||
@@ -19,25 +16,24 @@ j = ''.join([
|
|||||||
' -DBUILD_SHARED_LIBS=ON',
|
' -DBUILD_SHARED_LIBS=ON',
|
||||||
' -DBUILD_TESTS=OFF',
|
' -DBUILD_TESTS=OFF',
|
||||||
' -DCMAKE_BUILD_TYPE=Release',
|
' -DCMAKE_BUILD_TYPE=Release',
|
||||||
' -DCMAKE_CONFIGURATION_TYPES=RelWithDebInfo',
|
' -DCMAKE_CONFIGURATION_TYPES=Release',
|
||||||
' -DUSE_BUNDLED_TINYXML2=OFF',
|
' -DUSE_BUNDLED_TINYXML2=OFF',
|
||||||
' -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON',
|
' -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON',
|
||||||
' -DENABLE_CHECK_INTERNAL=ON',
|
' -DENABLE_CHECK_INTERNAL=ON',
|
||||||
' -DWITH_QCHART=ON -L '
|
' -DWITH_QCHART=ON',
|
||||||
|
' -B_build -G Ninja -L '
|
||||||
])
|
])
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
cmaketools.configure("-Bbuild %s" % j)
|
cmaketools.configure(j)
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
shelltools.cd("build")
|
mesontools.build("-C _build")
|
||||||
cmaketools.make()
|
|
||||||
|
|
||||||
def check():
|
def check():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
shelltools.cd("build")
|
mesontools.install("-C _build")
|
||||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
|
||||||
|
|
||||||
pisitools.dodoc("../AUTHORS")
|
pisitools.dodoc("AUTHORS")
|
||||||
|
|||||||
@@ -16,11 +16,12 @@
|
|||||||
<Description>
|
<Description>
|
||||||
Cppcheck is a static analysis tool for C/C++ code. It provides unique code analysis to detect bugs and focuses on detecting undefined behaviour and dangerous coding constructs. The goal is to detect only real errors in the code (i.e. have very few false positives).
|
Cppcheck is a static analysis tool for C/C++ code. It provides unique code analysis to detect bugs and focuses on detecting undefined behaviour and dangerous coding constructs. The goal is to detect only real errors in the code (i.e. have very few false positives).
|
||||||
</Description>
|
</Description>
|
||||||
<Archive sha1sum="3830a79c3ccc595dfb1e9f0250d38a5cbae5be2e" type="tarbz2">
|
<Archive sha1sum="2f002870b803a6c87e8991a7fd28438883155f4a" type="tarbz2">
|
||||||
mirrors://sourceforge/cppcheck/cppcheck-2.9.tar.bz2
|
mirrors://sourceforge/cppcheck/cppcheck-2.10.tar.bz2
|
||||||
</Archive>
|
</Archive>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
<Dependency>cmake</Dependency>
|
<Dependency>cmake</Dependency>
|
||||||
|
<Dependency>ninja</Dependency>
|
||||||
<Dependency>z3-devel</Dependency>
|
<Dependency>z3-devel</Dependency>
|
||||||
<Dependency>zlib-devel</Dependency>
|
<Dependency>zlib-devel</Dependency>
|
||||||
<Dependency>boost-devel</Dependency>
|
<Dependency>boost-devel</Dependency>
|
||||||
@@ -40,9 +41,9 @@
|
|||||||
<Dependency>qt5-assistant-devel</Dependency>
|
<Dependency>qt5-assistant-devel</Dependency>
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
<Patches>
|
<Patches>
|
||||||
<Patch level="1">htmlreport_py3.patch</Patch>
|
<!-- <Patch level="1">htmlreport_py3.patch</Patch> -->
|
||||||
<Patch level="1">qm_install_path.patch</Patch>
|
<Patch level="1">qm_install_path.patch</Patch>
|
||||||
<Patch level="1">Buffer_is_accessed_out_of_bounds.patch</Patch>
|
<!-- <Patch level="1">Buffer_is_accessed_out_of_bounds.patch</Patch> -->
|
||||||
</Patches>
|
</Patches>
|
||||||
</Source>
|
</Source>
|
||||||
|
|
||||||
@@ -70,6 +71,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="12">
|
||||||
|
<Date>2023-01-28</Date>
|
||||||
|
<Version>2.10</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>fury</Name>
|
||||||
|
<Email>uglyside@yandex.ru</Email>
|
||||||
|
</Update>
|
||||||
<Update release="11">
|
<Update release="11">
|
||||||
<Date>2022-09-05</Date>
|
<Date>2022-09-05</Date>
|
||||||
<Version>2.9</Version>
|
<Version>2.9</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user