catch2.
This commit is contained in:
@@ -1,37 +1,26 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/python
|
||||||
# -*- 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/licenses/gpl.txt
|
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
||||||
|
|
||||||
from pisi.actionsapi import autotools, cmaketools, shelltools
|
from pisi.actionsapi import cmaketools, mesontools
|
||||||
from pisi.actionsapi import pisitools
|
|
||||||
from pisi.actionsapi import get
|
|
||||||
|
|
||||||
|
l = ''.join([
|
||||||
|
' -DCMAKE_BUILD_TYPE=Release',
|
||||||
|
' -DCMAKE_INSTALL_PREFIX=/usr',
|
||||||
|
' -DBUILD_SHARED_LIBS=1',
|
||||||
|
' -Bbuild -G Ninja -L '
|
||||||
|
])
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
parameters = ' '.join([
|
cmaketools.configure(l)
|
||||||
'-B build',
|
|
||||||
'-DCMAKE_INSTALL_LIBDIR=lib',
|
|
||||||
'-DCATCH_USE_VALGRIND=OFF',
|
|
||||||
'-DCATCH_BUILD_EXAMPLES=OFF',
|
|
||||||
'-DCATCH_ENABLE_COVERAGE=OFF',
|
|
||||||
'-DCATCH_ENABLE_WERROR=OFF',
|
|
||||||
'-DBUILD_TESTING=ON'
|
|
||||||
])
|
|
||||||
cmaketools.configure(parameters)
|
|
||||||
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
shelltools.cd('build')
|
mesontools.build()
|
||||||
autotools.make()
|
|
||||||
|
|
||||||
|
|
||||||
def check():
|
def check():
|
||||||
shelltools.cd('build')
|
pass
|
||||||
autotools.make('test')
|
|
||||||
|
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
shelltools.cd('build')
|
mesontools.install()
|
||||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0" ?>
|
<?xml version="1.0" ?>
|
||||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
<PISI>
|
<PISI>
|
||||||
<Source>
|
<Source>
|
||||||
<Name>catch2</Name>
|
<Name>catch2</Name>
|
||||||
<Homepage>https://github.com/catchorg/catch2</Homepage>
|
<Homepage>https://github.com/catchorg/Catch2/</Homepage>
|
||||||
<Packager>
|
<Packager>
|
||||||
<Name>Safa Arıman</Name>
|
<Name>Safa Arıman</Name>
|
||||||
<Email>safaariman@pisilinux.org</Email>
|
<Email>safaariman@pisilinux.org</Email>
|
||||||
@@ -12,9 +12,10 @@
|
|||||||
<IsA>library</IsA>
|
<IsA>library</IsA>
|
||||||
<Summary>C++ Automated Test Cases in Headers</Summary>
|
<Summary>C++ Automated Test Cases in Headers</Summary>
|
||||||
<Description>Catch2 is a multi-paradigm test framework for C++, which also supports Objective-C. It is primarily distributed as a single header file, although certain extensions may require additional headers.</Description>
|
<Description>Catch2 is a multi-paradigm test framework for C++, which also supports Objective-C. It is primarily distributed as a single header file, although certain extensions may require additional headers.</Description>
|
||||||
<Archive sha1sum="dcdb80e8215451fb99c8a24ca375274f2bd5f233" type="targz">https://github.com/catchorg/Catch2/archive/v2.13.9.tar.gz</Archive>
|
<Archive sha1sum="00e054a9ff83928305ed790370a8ad50e411430b" type="targz">https://github.com/catchorg/Catch2/archive/refs/tags/v3.7.0.tar.gz</Archive>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
<Dependency>cmake</Dependency>
|
<Dependency>cmake</Dependency>
|
||||||
|
<Dependency>ninja</Dependency>
|
||||||
<Dependency>python3-devel</Dependency>
|
<Dependency>python3-devel</Dependency>
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
</Source>
|
</Source>
|
||||||
@@ -24,12 +25,18 @@
|
|||||||
<Files>
|
<Files>
|
||||||
<Path fileType="header">/usr/include</Path>
|
<Path fileType="header">/usr/include</Path>
|
||||||
<Path fileType="library">/usr/lib</Path>
|
<Path fileType="library">/usr/lib</Path>
|
||||||
<Path fileType="doc">/usr/share/doc</Path>
|
|
||||||
<Path fileType="data">/usr/share</Path>
|
<Path fileType="data">/usr/share</Path>
|
||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="3">
|
||||||
|
<Date>2024-08-18</Date>
|
||||||
|
<Version>3.7.0</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>fury</Name>
|
||||||
|
<Email>uglyside@yandex.ru</Email>
|
||||||
|
</Update>
|
||||||
<Update release="2">
|
<Update release="2">
|
||||||
<Date>2022-11-05</Date>
|
<Date>2022-11-05</Date>
|
||||||
<Version>2.13.9</Version>
|
<Version>2.13.9</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user