expected.

This commit is contained in:
uglyside
2024-08-18 17:03:16 +03:00
parent 0caab90de4
commit cfef915ddc
2 changed files with 25 additions and 20 deletions
+14 -15
View File
@@ -1,29 +1,28 @@
#!/usr/bin/env python
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# 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 cmaketools, shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import cmaketools, mesontools, pisitools
l = ''.join([
' -DCMAKE_BUILD_TYPE=Release',
' -DCATCH_ENABLE_WERROR=ON',
' -DEXPECTED_BUILD_PACKAGE_DEB=OFF '
' -Bbuild -G Ninja -L '
])
def setup():
cmaketools.configure('-B build')
cmaketools.configure(l)
def build():
shelltools.cd('build')
cmaketools.make()
mesontools.build()
def check():
shelltools.cd('build')
shelltools.system('./tests')
mesontools.build("test")
def install():
shelltools.cd('build')
cmaketools.install()
mesontools.install()
pisitools.dodoc('../COPYING')
pisitools.dodoc("COPYING")
+11 -5
View File
@@ -1,5 +1,5 @@
<?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>
<Source>
<Name>expected</Name>
@@ -12,10 +12,10 @@
<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>
<Archive sha1sum="ae311c9ad746d944d18e8cf873d0b1f04bff4acb" type="targz">https://github.com/TartanLlama/expected/archive/refs/tags/v1.1.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>cmake</Dependency>
<Dependency>git</Dependency>
<Dependency>ninja</Dependency>
<Dependency>catch2</Dependency>
</BuildDependencies>
</Source>
@@ -24,12 +24,18 @@
<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>
<Path fileType="data">/usr/share</Path>
</Files>
</Package>
<History>
<Update release="2">
<Date>2024-08-18</Date>
<Version>1.1.0</Version>
<Comment>Version bump.</Comment>
<Name>Safa Arıman</Name>
<Email>safa@ariman.gen.tr</Email>
</Update>
<Update release="1">
<Date>2020-03-17</Date>
<Version>1.0.0</Version>