public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/cpptoml/, dev-cpp/cpptoml/files/
@ 2022-04-19 18:31 Alessandro Barbieri
  0 siblings, 0 replies; only message in thread
From: Alessandro Barbieri @ 2022-04-19 18:31 UTC (permalink / raw
  To: gentoo-commits

commit:     00a71651c2aade1e6b02d397da442b4f0d2f625b
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Apr 19 11:44:26 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue Apr 19 18:31:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=00a71651

dev-cpp/cpptoml: new package

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-cpp/cpptoml/Manifest                         |  1 +
 dev-cpp/cpptoml/cpptoml-0.1.1.ebuild             | 28 ++++++++++++++++++++++++
 dev-cpp/cpptoml/files/cpptoml-0.1.1-limits.patch | 15 +++++++++++++
 dev-cpp/cpptoml/metadata.xml                     | 22 +++++++++++++++++++
 4 files changed, 66 insertions(+)

diff --git a/dev-cpp/cpptoml/Manifest b/dev-cpp/cpptoml/Manifest
new file mode 100644
index 000000000..138b26fec
--- /dev/null
+++ b/dev-cpp/cpptoml/Manifest
@@ -0,0 +1 @@
+DIST cpptoml-0.1.1.tar.gz 47398 BLAKE2B c0ce036bec4731c4dfe96d01076b9ca18a1c4108180d5dbc839dfc44b37eb0c7af85f685a6356ef92fa684219e2883dd341e64a2012505dacc3df73dfb9e28ca SHA512 14edce576514d53a7e13562d7f8d2b66ea2b95f44038396c0e26232ec81783042ebecec31ee272a99afef96d5c8582a8e81ea5167a787844b98de6ee6f545cc5

diff --git a/dev-cpp/cpptoml/cpptoml-0.1.1.ebuild b/dev-cpp/cpptoml/cpptoml-0.1.1.ebuild
new file mode 100644
index 000000000..4bae4abcb
--- /dev/null
+++ b/dev-cpp/cpptoml/cpptoml-0.1.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Header-only library for parsing TOML"
+HOMEPAGE="https://github.com/skystrife/cpptoml"
+SRC_URI="https://github.com/skystrife/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="libcxx examples"
+
+RDEPEND="libcxx? ( sys-libs/libcxx )"
+DEPEND="${RDEPEND}"
+
+PATCHES="${FILESDIR}/${P}-limits.patch"
+
+src_configure() {
+	local mycmakeargs=(
+	        -DCPPTOML_BUILD_EXAMPLES=$(usex examples)
+		-DENABLE_LIBCXX=$(usex libcxx)
+	)
+	cmake_src_configure
+}

diff --git a/dev-cpp/cpptoml/files/cpptoml-0.1.1-limits.patch b/dev-cpp/cpptoml/files/cpptoml-0.1.1-limits.patch
new file mode 100644
index 000000000..484f98044
--- /dev/null
+++ b/dev-cpp/cpptoml/files/cpptoml-0.1.1-limits.patch
@@ -0,0 +1,15 @@
+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
+
+--- 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>

diff --git a/dev-cpp/cpptoml/metadata.xml b/dev-cpp/cpptoml/metadata.xml
new file mode 100644
index 000000000..71af507d3
--- /dev/null
+++ b/dev-cpp/cpptoml/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<longdescription lang="en">
+A header-only library for parsing TOML configuration files.
+
+Targets: TOML v0.5.0 as of August 2018.
+
+This includes support for the new DateTime format, inline tables, multi-line basic and raw strings, digit separators, hexadecimal integers, octal integers, binary integers, and float special values.
+	</longdescription>
+	<maintainer type="person">
+		<description>co-maintainers welcome</description>
+		<email>lssndrbarbieri@gmail.com</email>
+		<name>Alessandro Barbieri</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">ddemidov/vexcl</remote-id>
+	</upstream>
+	<use>
+		<flag name="libcxx">Use libc++ for the C++ standard library</flag>
+	</use>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-19 18:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-19 18:31 [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/cpptoml/, dev-cpp/cpptoml/files/ Alessandro Barbieri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox