summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2024-01-10 16:41:53 +0100
committerSam James <sam@gentoo.org>2024-07-13 18:34:36 +0100
commit19616e25a37530f49d95727e8d93fc5f6565efb5 (patch)
tree8c55c4abbc198e2c45cbddd1e5e86c4149f35542 /dev-libs/immer
parentkde-plasma/plasma-desktop: drop 6.1.2 (diff)
downloadgentoo-19616e25a37530f49d95727e8d93fc5f6565efb5.tar.gz
gentoo-19616e25a37530f49d95727e8d93fc5f6565efb5.tar.bz2
gentoo-19616e25a37530f49d95727e8d93fc5f6565efb5.zip
dev-libs/immer: new package, add 0.8.1
Signed-off-by: Sebastian Parborg <darkdefende@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/immer')
-rw-r--r--dev-libs/immer/Manifest1
-rw-r--r--dev-libs/immer/files/immer-0.8.1-fix-dvector-test.patch16
-rw-r--r--dev-libs/immer/immer-0.8.1.ebuild45
-rw-r--r--dev-libs/immer/metadata.xml15
4 files changed, 77 insertions, 0 deletions
diff --git a/dev-libs/immer/Manifest b/dev-libs/immer/Manifest
new file mode 100644
index 000000000000..bb03209ec97f
--- /dev/null
+++ b/dev-libs/immer/Manifest
@@ -0,0 +1 @@
+DIST immer-0.8.1.tar.gz 654638 BLAKE2B 23c8fc8d8e341ae271ea2881f3cba8bd446844dc48a79d959623ec9c7e1254feba22ae916d9e8d962d8afd8801671ac3dfc8a136e4ce40d2a1a019449c34554f SHA512 3a9aafeb5daad1881d00fb999b78f86b1c8f0e8ef2d6befe9025d8eea10392557ce7186f14878b36cbce0f2f5d38c8ffb39c9115a9496803acfc0ef2289f5cbf
diff --git a/dev-libs/immer/files/immer-0.8.1-fix-dvector-test.patch b/dev-libs/immer/files/immer-0.8.1-fix-dvector-test.patch
new file mode 100644
index 000000000000..a00728a95490
--- /dev/null
+++ b/dev-libs/immer/files/immer-0.8.1-fix-dvector-test.patch
@@ -0,0 +1,16 @@
+Without this array include, compilation of the dvektor test will fail.
+This has been fixed upstream in:
+https://github.com/arximboldi/immer/commit/f381e4988c1562f0f64533146c9b9cb7c0823b3e
+
+diff --git a/immer/experimental/detail/dvektor_impl.hpp b/immer/experimental/detail/dvektor_impl.hpp
+index 4f69733..7a21f1f 100644
+--- a/immer/experimental/detail/dvektor_impl.hpp
++++ b/immer/experimental/detail/dvektor_impl.hpp
+@@ -16,6 +16,7 @@
+ #include <boost/iterator/iterator_facade.hpp>
+ #include <boost/smart_ptr/intrusive_ref_counter.hpp>
+
++#include <array>
+ #include <cassert>
+ #include <cstddef>
+ #include <limits>
diff --git a/dev-libs/immer/immer-0.8.1.ebuild b/dev-libs/immer/immer-0.8.1.ebuild
new file mode 100644
index 000000000000..303211675474
--- /dev/null
+++ b/dev-libs/immer/immer-0.8.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="A library of persistent and immutable data structures written in C++"
+HOMEPAGE="https://sinusoid.es/immer/"
+SRC_URI="https://github.com/arximboldi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-libs/boost:=
+ dev-libs/boehm-gc
+ test? ( <dev-cpp/catch-3:0 )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fix-dvector-test.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -Dimmer_BUILD_DOCS=OFF # Recheck if documentation is in a better state when bumping
+ -Dimmer_BUILD_EXAMPLES=OFF
+ -Dimmer_BUILD_EXTRAS=OFF
+ -Dimmer_BUILD_TESTS=$(usex test)
+ -DDISABLE_WERROR=ON
+ )
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+ if use test; then
+ cmake_build tests
+ fi
+}
diff --git a/dev-libs/immer/metadata.xml b/dev-libs/immer/metadata.xml
new file mode 100644
index 000000000000..67bede469e56
--- /dev/null
+++ b/dev-libs/immer/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>darkdefende@gmail.com</email>
+ <name>Sebastian Parborg</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">arximboldi/immer</remote-id>
+ </upstream>
+</pkgmetadata>