Add catch2 package
This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# Licensed under the GNU General Public License, version 3.
|
||||||
|
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||||
|
|
||||||
|
from pisi.actionsapi import autotools, cmaketools, shelltools
|
||||||
|
from pisi.actionsapi import pisitools
|
||||||
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
|
|
||||||
|
def setup():
|
||||||
|
parameters = ' '.join([
|
||||||
|
'-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():
|
||||||
|
shelltools.cd('build')
|
||||||
|
autotools.make()
|
||||||
|
|
||||||
|
|
||||||
|
def check():
|
||||||
|
shelltools.cd('build')
|
||||||
|
autotools.make('test')
|
||||||
|
|
||||||
|
|
||||||
|
def install():
|
||||||
|
shelltools.cd('build')
|
||||||
|
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>catch2</Name>
|
||||||
|
<Homepage>https://github.com/catchorg/catch2</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>Safa Arıman</Name>
|
||||||
|
<Email>safa@ariman.gen.tr</Email>
|
||||||
|
</Packager>
|
||||||
|
<License>BSLv1</License>
|
||||||
|
<IsA>library</IsA>
|
||||||
|
<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>
|
||||||
|
<Archive sha1sum="dbf1bee2391a58936e353f67c6935ecdfbae336b" type="targz">https://github.com/catchorg/Catch2/archive/v2.11.1.tar.gz</Archive>
|
||||||
|
<BuildDependencies>
|
||||||
|
<Dependency>cmake</Dependency>
|
||||||
|
<Dependency>python3</Dependency>
|
||||||
|
</BuildDependencies>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>catch2</Name>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="header">/usr/include</Path>
|
||||||
|
<Path fileType="library">/usr/lib</Path>
|
||||||
|
<Path fileType="doc">/usr/share/doc</Path>
|
||||||
|
<Path fileType="data">/usr/share</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<History>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2020-03-17</Date>
|
||||||
|
<Version>2.11.1</Version>
|
||||||
|
<Comment>First release</Comment>
|
||||||
|
<Name>Safa Arıman</Name>
|
||||||
|
<Email>safa@ariman.gen.tr</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>catch2</Name>
|
||||||
|
<Summary xml:lang="tr">C++ Automated Test Cases in Headers</Summary>
|
||||||
|
<Description xml:lang="tr">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>
|
||||||
|
</Source>
|
||||||
|
</PISI>
|
||||||
Reference in New Issue
Block a user