From 7dd037202fa1e0877a60df0647991dc9fdfc78f8 Mon Sep 17 00:00:00 2001 From: blue-devil Date: Tue, 25 Feb 2020 03:25:50 +0300 Subject: [PATCH] cmocka:first pisi release --- programming/tool/cmocka/actions.py | 38 +++++++++++++++++ programming/tool/cmocka/pspec.xml | 53 ++++++++++++++++++++++++ programming/tool/cmocka/translations.xml | 14 +++++++ 3 files changed, 105 insertions(+) create mode 100644 programming/tool/cmocka/actions.py create mode 100644 programming/tool/cmocka/pspec.xml create mode 100644 programming/tool/cmocka/translations.xml diff --git a/programming/tool/cmocka/actions.py b/programming/tool/cmocka/actions.py new file mode 100644 index 0000000000..c574a10511 --- /dev/null +++ b/programming/tool/cmocka/actions.py @@ -0,0 +1,38 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/copyleft/gpl.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 + + +def setup(): + shelltools.makedirs("build") + shelltools.cd("build") + cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=Release \ + -DUNIT_TESTING=ON", sourceDir="..") + +def build(): + shelltools.cd("build") + cmaketools.make() + shelltools.cd("../doc") + shelltools.system("doxygen mainpage.dox") + +def check(): + shelltools.cd("build") + autotools.make("test") + +def install(): + shelltools.cd("build") + cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dohtml("../doc/html/*") + + shelltools.cd("..") + pisitools.dodoc("COPYING", "README*") \ No newline at end of file diff --git a/programming/tool/cmocka/pspec.xml b/programming/tool/cmocka/pspec.xml new file mode 100644 index 0000000000..1f7c1888cd --- /dev/null +++ b/programming/tool/cmocka/pspec.xml @@ -0,0 +1,53 @@ + + + + + cmocka + https://cmocka.org/ + + Blue Devil + bluedevil@sctzine.com + + programming.tool + Apache + 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 + + doxygen + cmake + + + + + cmocka + Full unit testing framework for C with support for mock objects. + + /usr/lib + /usr/share/doc + + + + + cmocka-devel + Development files for cmocka + + cmocka + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2020-02-24 + 1.1.5 + First release + Blue Devil + bluedevil@sctzine.com + + + \ No newline at end of file diff --git a/programming/tool/cmocka/translations.xml b/programming/tool/cmocka/translations.xml new file mode 100644 index 0000000000..c528350023 --- /dev/null +++ b/programming/tool/cmocka/translations.xml @@ -0,0 +1,14 @@ + + + + cmocka + Sahte nesneler ile deskteklenmiş C için tam birim test çatısı + cmocka sahte nesneler ile deskteklenmiş C için tam birim test çatısı sunar. + + + + cmocka-devel + cmocka için geliştirme dosyaları + libssh-cmocka, cmocka için geliştirme dosyalarını içerir. + + \ No newline at end of file