New port : Cpptoml 0.1.1

This commit is contained in:
Victor Tebar
2022-10-25 11:17:10 +02:00
parent d872045025
commit 07ca7607b1
4 changed files with 55 additions and 0 deletions

2
main/cpptoml/.checksums Normal file
View File

@@ -0,0 +1,2 @@
ea04d2f7906bf60064fad8636a97a611 123.patch
068919b9621e0b99dffa00277aa9f43d cpptoml-0.1.1.tar.gz

10
main/cpptoml/.pkgfiles Normal file
View File

@@ -0,0 +1,10 @@
cpptoml-0.1.1-2
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/cpptoml.h
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/cmake/
drwxr-xr-x root/root usr/lib/cmake/cpptoml/
-rw-r--r-- root/root usr/lib/cmake/cpptoml/cpptomlConfig.cmake
-rw-r--r-- root/root usr/lib/cmake/cpptoml/cpptomlConfigVersion.cmake
-rw-r--r-- root/root usr/lib/cmake/cpptoml/cpptomlTargets.cmake

21
main/cpptoml/123.patch Normal file
View File

@@ -0,0 +1,21 @@
From c55a516e90133d89d67285429c6474241346d27a Mon Sep 17 00:00:00 2001
From: Dirk Eddelbuettel <edd@debian.org>
Date: Mon, 30 Nov 2020 09:41:49 -0600
Subject: [PATCH] g++-11 requires limits header
---
include/cpptoml.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/cpptoml.h b/include/cpptoml.h
index 5a00da3..1dc9fd1 100644
--- a/include/cpptoml.h
+++ b/include/cpptoml.h
@@ -14,6 +14,7 @@
#include <cstring>
#include <fstream>
#include <iomanip>
+#include <limits>
#include <map>
#include <memory>
#include <sstream>

22
main/cpptoml/spkgbuild Normal file
View File

@@ -0,0 +1,22 @@
# description : cpptoml is a header-only library for parsing TOML
# homepage : https://github.com/skystrife/cpptoml
# depends : cmake ninja
name=cpptoml
version=0.1.1
release=2
source="https://github.com/skystrife/cpptoml/archive/v$version/$name-$version.tar.gz
123.patch"
build() {
patch -Np1 -d $name-$version -i $SRC/123.patch
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}