cmocka-1.1.7
This commit is contained in:
@@ -2,37 +2,31 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# Licensed under the GNU General Public License, version 3.
|
# 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 cmaketools, mesontools, shelltools, pisitools
|
||||||
from pisi.actionsapi import shelltools
|
|
||||||
from pisi.actionsapi import autotools
|
|
||||||
from pisi.actionsapi import pisitools
|
|
||||||
from pisi.actionsapi import get
|
|
||||||
|
|
||||||
|
i = ''.join([
|
||||||
|
' -DCMAKE_BUILD_TYPE=Release',
|
||||||
|
' -DCMAKE_INSTALL_PREFIX=/usr',
|
||||||
|
' -DUNIT_TESTING=ON',
|
||||||
|
' -Bbuild -G Ninja -L '
|
||||||
|
])
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
shelltools.makedirs("build")
|
cmaketools.configure(i)
|
||||||
shelltools.cd("build")
|
|
||||||
cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DUNIT_TESTING=ON", sourceDir="..")
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
shelltools.cd("build")
|
mesontools.build()
|
||||||
cmaketools.make()
|
|
||||||
shelltools.cd("../doc")
|
shelltools.cd("doc")
|
||||||
shelltools.system("doxygen mainpage.dox")
|
shelltools.system("doxygen mainpage.dox")
|
||||||
|
|
||||||
def check():
|
def check():
|
||||||
shelltools.cd("build")
|
mesontools.build("-C build test")
|
||||||
autotools.make("test")
|
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
shelltools.cd("build")
|
mesontools.install()
|
||||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
|
||||||
|
|
||||||
pisitools.dohtml("../doc/html/*")
|
pisitools.dohtml("doc/html/*")
|
||||||
|
pisitools.dodoc("AUTHORS", "COPYING")
|
||||||
shelltools.cd("..")
|
|
||||||
pisitools.dodoc("COPYING", "README*")
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" ?>
|
<?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>
|
<PISI>
|
||||||
<Source>
|
<Source>
|
||||||
<Name>cmocka</Name>
|
<Name>cmocka</Name>
|
||||||
@@ -13,10 +13,11 @@
|
|||||||
<IsA>library</IsA>
|
<IsA>library</IsA>
|
||||||
<Summary>Full unit testing framework for C with support for mock objects.</Summary>
|
<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>
|
<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>
|
<BuildDependencies>
|
||||||
<Dependency>doxygen</Dependency>
|
|
||||||
<Dependency>cmake</Dependency>
|
<Dependency>cmake</Dependency>
|
||||||
|
<Dependency>ninja</Dependency>
|
||||||
|
<Dependency>doxygen</Dependency>
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
</Source>
|
</Source>
|
||||||
|
|
||||||
@@ -37,11 +38,19 @@
|
|||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="header">/usr/include</Path>
|
<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>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<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">
|
<Update release="1">
|
||||||
<Date>2020-02-24</Date>
|
<Date>2020-02-24</Date>
|
||||||
<Version>1.1.5</Version>
|
<Version>1.1.5</Version>
|
||||||
@@ -50,4 +59,4 @@
|
|||||||
<Email>bluedevil@sctzine.com</Email>
|
<Email>bluedevil@sctzine.com</Email>
|
||||||
</Update>
|
</Update>
|
||||||
</History>
|
</History>
|
||||||
</PISI>
|
</PISI>
|
||||||
|
|||||||
Reference in New Issue
Block a user