From 7be78dc59d92d41ca53064ea39a4fd9b71d4a659 Mon Sep 17 00:00:00 2001 From: uglyside Date: Thu, 6 Feb 2025 23:34:49 +0300 Subject: [PATCH] cmocka-1.1.7 --- programming/tool/cmocka/actions.py | 38 +++++++++++++----------------- programming/tool/cmocka/pspec.xml | 19 +++++++++++---- 2 files changed, 30 insertions(+), 27 deletions(-) diff --git a/programming/tool/cmocka/actions.py b/programming/tool/cmocka/actions.py index c574a10511..163d5945fe 100644 --- a/programming/tool/cmocka/actions.py +++ b/programming/tool/cmocka/actions.py @@ -2,37 +2,31 @@ # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. -# See the file http://www.gnu.org/copyleft/gpl.txt +# See the file https://www.gnu.org/licenses/gpl-3.0.txt -from pisi.actionsapi import cmaketools -from pisi.actionsapi import shelltools -from pisi.actionsapi import autotools -from pisi.actionsapi import pisitools -from pisi.actionsapi import get +from pisi.actionsapi import cmaketools, mesontools, shelltools, pisitools +i = ''.join([ + ' -DCMAKE_BUILD_TYPE=Release', + ' -DCMAKE_INSTALL_PREFIX=/usr', + ' -DUNIT_TESTING=ON', + ' -Bbuild -G Ninja -L ' + ]) def setup(): - shelltools.makedirs("build") - shelltools.cd("build") - cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib \ - -DCMAKE_BUILD_TYPE=Release \ - -DUNIT_TESTING=ON", sourceDir="..") + cmaketools.configure(i) def build(): - shelltools.cd("build") - cmaketools.make() - shelltools.cd("../doc") + mesontools.build() + + shelltools.cd("doc") shelltools.system("doxygen mainpage.dox") def check(): - shelltools.cd("build") - autotools.make("test") + mesontools.build("-C build test") def install(): - shelltools.cd("build") - cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) + mesontools.install() - pisitools.dohtml("../doc/html/*") - - shelltools.cd("..") - pisitools.dodoc("COPYING", "README*") \ No newline at end of file + pisitools.dohtml("doc/html/*") + pisitools.dodoc("AUTHORS", "COPYING") diff --git a/programming/tool/cmocka/pspec.xml b/programming/tool/cmocka/pspec.xml index 1f7c1888cd..4c082c2539 100644 --- a/programming/tool/cmocka/pspec.xml +++ b/programming/tool/cmocka/pspec.xml @@ -1,5 +1,5 @@ - + cmocka @@ -13,10 +13,11 @@ library Full unit testing framework for C with support for mock objects. cmocka is an elegant unit testing framework for C with support for mock objects. It only requires the standard C library, works on a range of computing platforms (including embedded) and with different compilers. - https://gitlab.com/cmocka/cmocka/-/archive/cmocka-1.1.5/cmocka-cmocka-1.1.5.tar.gz + https://gitlab.com/cmocka/cmocka/-/archive/cmocka-1.1.7/cmocka-cmocka-1.1.7.tar.bz2 - doxygen cmake + ninja + doxygen @@ -37,11 +38,19 @@ /usr/include - /usr/lib/pkgconfig + /usr/lib/cmake + /usr/lib/pkgconfig + + 2025-02-07 + 1.1.7 + Version bump. + Blue Devil + bluedevil@sctzine.com + 2020-02-24 1.1.5 @@ -50,4 +59,4 @@ bluedevil@sctzine.com - \ No newline at end of file +