Add expected package

This commit is contained in:
Safa Arıman
2020-03-21 00:34:04 +03:00
parent c4144fb2cb
commit e91d489a44
7 changed files with 122 additions and 2 deletions
+30
View File
@@ -0,0 +1,30 @@
#!/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 cmaketools, shelltools
from pisi.actionsapi import pisitools
def setup():
cmaketools.configure('-B build')
def build():
shelltools.cd('build')
cmaketools.make()
def check():
shelltools.cd('build')
shelltools.system('./tests')
def install():
shelltools.cd('build')
cmaketools.install()
pisitools.dodoc('../COPYING')
pisitools.insinto('/usr/bin', 'sl')
+41
View File
@@ -0,0 +1,41 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>expected</Name>
<Homepage>https://github.com/TartanLlama/expected</Homepage>
<Packager>
<Name>Safa Arıman</Name>
<Email>safa@ariman.gen.tr</Email>
</Packager>
<License>CC0</License>
<IsA>library</IsA>
<Summary>Single header implementation of std::expected with functional-style extensions.</Summary>
<Description>std::expected is proposed as the preferred way to represent object which will either have an expected value, or an unexpected value giving information about why something failed. Unfortunately, chaining together many computations which may fail can be verbose, as error-checking code will be mixed in with the actual programming logic. This implementation provides a number of utilities to make coding with expected cleaner.</Description>
<Archive sha1sum="2ce5120ef6b4238b092a73214a48516462f809ce" type="targz">https://github.com/TartanLlama/expected/archive/v1.0.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>cmake</Dependency>
<Dependency>git</Dependency>
<Dependency>catch2</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>expected-devel</Name>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share/cmake</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-03-17</Date>
<Version>1.0.0</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>expected</Name>
<Summary xml:lang="tr">Single header implementation of std::expected with functional-style extensions.</Summary>
<Description xml:lang="tr">std::expected is proposed as the preferred way to represent object which will either have an expected value, or an unexpected value giving information about why something failed. Unfortunately, chaining together many computations which may fail can be verbose, as error-checking code will be mixed in with the actual programming logic. This implementation provides a number of utilities to make coding with expected cleaner.</Description>
</Source>
</PISI>