cmocka:first pisi release

This commit is contained in:
blue-devil
2020-02-25 03:25:50 +03:00
parent 7165c183e7
commit 7dd037202f
3 changed files with 105 additions and 0 deletions
+38
View File
@@ -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*")
+53
View File
@@ -0,0 +1,53 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>cmocka</Name>
<Homepage>https://cmocka.org/</Homepage>
<Packager>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Packager>
<PartOf>programming.tool</PartOf>
<License>Apache</License>
<IsA>library</IsA>
<Summary>Full unit testing framework for C with support for mock objects.</Summary>
<Description>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.</Description>
<Archive sha1sum="80ffe8dc4e060342d971a617484f869dc3cd396e" type="targz">https://gitlab.com/cmocka/cmocka/-/archive/cmocka-1.1.5/cmocka-cmocka-1.1.5.tar.gz</Archive>
<BuildDependencies>
<Dependency>doxygen</Dependency>
<Dependency>cmake</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>cmocka</Name>
<Summary>Full unit testing framework for C with support for mock objects.</Summary>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>cmocka-devel</Name>
<Summary>Development files for cmocka</Summary>
<RuntimeDependencies>
<Dependency release="current">cmocka</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-02-24</Date>
<Version>1.1.5</Version>
<Comment>First release</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
</History>
</PISI>
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>cmocka</Name>
<Summary xml:lang="tr">Sahte nesneler ile deskteklenmiş C için tam birim test çatısı</Summary>
<Description xml:lang="tr">cmocka sahte nesneler ile deskteklenmiş C için tam birim test çatısı sunar.</Description>
</Source>
<Package>
<Name>cmocka-devel</Name>
<Summary xml:lang="tr">cmocka için geliştirme dosyaları</Summary>
<Description xml:lang="tr">libssh-cmocka, cmocka için geliştirme dosyalarını içerir.</Description>
</Package>
</PISI>