cmocka-1.1.7

This commit is contained in:
uglyside
2025-02-06 23:34:49 +03:00
parent 6a5a1d9138
commit 7be78dc59d
2 changed files with 30 additions and 27 deletions
+16 -22
View File
@@ -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*")
pisitools.dohtml("doc/html/*")
pisitools.dodoc("AUTHORS", "COPYING")
+14 -5
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>cmocka</Name>
@@ -13,10 +13,11 @@
<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>
<Archive sha1sum="87be0cb3ff02ffd924f2de07a69731120a2e8c83" type="tarbz2">https://gitlab.com/cmocka/cmocka/-/archive/cmocka-1.1.7/cmocka-cmocka-1.1.7.tar.bz2</Archive>
<BuildDependencies>
<Dependency>doxygen</Dependency>
<Dependency>cmake</Dependency>
<Dependency>ninja</Dependency>
<Dependency>doxygen</Dependency>
</BuildDependencies>
</Source>
@@ -37,11 +38,19 @@
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/lib/cmake</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="2">
<Date>2025-02-07</Date>
<Version>1.1.7</Version>
<Comment>Version bump.</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
<Update release="1">
<Date>2020-02-24</Date>
<Version>1.1.5</Version>
@@ -50,4 +59,4 @@
<Email>bluedevil@sctzine.com</Email>
</Update>
</History>
</PISI>
</PISI>