summaryrefslogtreecommitdiff
path: root/dev-cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/cpp-httplib/Manifest2
-rw-r--r--dev-cpp/cpp-httplib/cpp-httplib-0.43.1.ebuild (renamed from dev-cpp/cpp-httplib/cpp-httplib-0.41.0.ebuild)0
-rw-r--r--dev-cpp/htmlcxx/files/htmlcxx-0.87-c++20.patch78
-rw-r--r--dev-cpp/htmlcxx/htmlcxx-0.87-r1.ebuild (renamed from dev-cpp/htmlcxx/htmlcxx-0.87.ebuild)5
4 files changed, 82 insertions, 3 deletions
diff --git a/dev-cpp/cpp-httplib/Manifest b/dev-cpp/cpp-httplib/Manifest
index 0ca1968e12ac..781ce0343234 100644
--- a/dev-cpp/cpp-httplib/Manifest
+++ b/dev-cpp/cpp-httplib/Manifest
@@ -1,2 +1,2 @@
-DIST cpp-httplib-0.41.0.tar.gz 1778865 BLAKE2B 1cccc4125325a2a0d0db435b660f0cc558f1e8abe8b7f538adf7b0c6f8aa3560c7e7a6fa4edea61dd639151423141c3cad67658b7cf1e3832e78be87d75ad3d5 SHA512 cd3591a5bd6accab7a8cfafd19c5b84a2cc4c67e18aa6c075580110b860639584db01d7ee7d5d77eddb848ab2ae17871a7f46405e3a16a8042146bf422356a63
DIST cpp-httplib-0.42.0.tar.gz 1855795 BLAKE2B c995d5a22e0f6a32fe196e8cd2060d12cb4288d0073b4ae813cf8774cae9e79c09afd999c4fa5d783e16cfb5290d875025322bc1b82722a754b0e163aeb3138d SHA512 74a384ce014951c22d5f1799c845df7b4717c2cd2fb05c07cdc4182cf0c8bcca5c7d79b59955746a120afb61d31a94e816e91417271a1ab9544064d81a7917b6
+DIST cpp-httplib-0.43.1.tar.gz 1856040 BLAKE2B 987cdaec30e45a484580eaeba39e0c97877aeb596b951cb3c82e833691495d03c35a5f7b1effbec1d0fae3ccf1fffa617789f679b065c6afc6ba44451a16c264 SHA512 65b770da7dd22f672ddae849f42c9fdb545e000004f825c3776fe29512ca12a47f78c72f9934c4562f4168ce37081ec40f5fb25de797e7fb99e70cb5946e12d4
diff --git a/dev-cpp/cpp-httplib/cpp-httplib-0.41.0.ebuild b/dev-cpp/cpp-httplib/cpp-httplib-0.43.1.ebuild
index d6714d0db42f..d6714d0db42f 100644
--- a/dev-cpp/cpp-httplib/cpp-httplib-0.41.0.ebuild
+++ b/dev-cpp/cpp-httplib/cpp-httplib-0.43.1.ebuild
diff --git a/dev-cpp/htmlcxx/files/htmlcxx-0.87-c++20.patch b/dev-cpp/htmlcxx/files/htmlcxx-0.87-c++20.patch
new file mode 100644
index 000000000000..4e8a7aff0c98
--- /dev/null
+++ b/dev-cpp/htmlcxx/files/htmlcxx-0.87-c++20.patch
@@ -0,0 +1,78 @@
+https://sourceforge.net/p/htmlcxx/patches/9/
+
+Author: Frantisek Boranek <fboranek@gmail.com>
+Date: Thu, 6 Oct 2022 22:39:21 +0200
+Subject: [PATCH] fix compiling with c++20
+
+The second parameter in function allocate() was removed in C++20 standard.
+These changes are backward compatible. Prior standard will use these:
+* < C++17: pointer allocate( size_type n, const void * hint = 0 ); // (until C++17)
+* < C++20: T* allocate( std::size_t n ); // (since C++17)
+* = C++20: [[nodiscard]] constexpr T* allocate( std::size_t n );
+--- a/html/tree.h
++++ b/html/tree.h
+@@ -416,8 +416,8 @@ tree<T, tree_node_allocator>::~tree()
+ template <class T, class tree_node_allocator>
+ void tree<T, tree_node_allocator>::head_initialise_()
+ {
+- head = alloc_.allocate(1,0); // MSVC does not have default second argument
+- feet = alloc_.allocate(1,0);
++ head = alloc_.allocate(1);
++ feet = alloc_.allocate(1);
+
+ head->parent=0;
+ head->first_child=0;
+@@ -672,7 +672,7 @@ iter tree<T, tree_node_allocator>::append_child(iter position)
+ {
+ assert(position.node!=head);
+
+- tree_node* tmp = alloc_.allocate(1,0);
++ tree_node* tmp = alloc_.allocate(1);
+ kp::constructor(&tmp->data);
+ tmp->first_child=0;
+ tmp->last_child=0;
+@@ -700,7 +700,7 @@ iter tree<T, tree_node_allocator>::append_child(iter position, const T& x)
+ // the API change.
+ assert(position.node!=head);
+
+- tree_node* tmp = alloc_.allocate(1,0);
++ tree_node* tmp = alloc_.allocate(1);
+ kp::constructor(&tmp->data, x);
+ tmp->first_child=0;
+ tmp->last_child=0;
+@@ -756,7 +756,7 @@ iter tree<T, tree_node_allocator>::insert(iter position, const T& x)
+ position.node=feet; // Backward compatibility: when calling insert on a null node,
+ // insert before the feet.
+ }
+- tree_node* tmp = alloc_.allocate(1,0);
++ tree_node* tmp = alloc_.allocate(1);
+ kp::constructor(&tmp->data, x);
+ tmp->first_child=0;
+ tmp->last_child=0;
+@@ -776,7 +776,7 @@ iter tree<T, tree_node_allocator>::insert(iter position, const T& x)
+ template <class T, class tree_node_allocator>
+ typename tree<T, tree_node_allocator>::sibling_iterator tree<T, tree_node_allocator>::insert(sibling_iterator position, const T& x)
+ {
+- tree_node* tmp = alloc_.allocate(1,0);
++ tree_node* tmp = alloc_.allocate(1);
+ kp::constructor(&tmp->data, x);
+ tmp->first_child=0;
+ tmp->last_child=0;
+@@ -804,7 +804,7 @@ template <class T, class tree_node_allocator>
+ template <class iter>
+ iter tree<T, tree_node_allocator>::insert_after(iter position, const T& x)
+ {
+- tree_node* tmp = alloc_.allocate(1,0);
++ tree_node* tmp = alloc_.allocate(1);
+ kp::constructor(&tmp->data, x);
+ tmp->first_child=0;
+ tmp->last_child=0;
+@@ -864,7 +864,7 @@ iter tree<T, tree_node_allocator>::replace(iter position, const iterator_base& f
+
+ // replace the node at position with head of the replacement tree at from
+ erase_children(position);
+- tree_node* tmp = alloc_.allocate(1,0);
++ tree_node* tmp = alloc_.allocate(1);
+ kp::constructor(&tmp->data, (*from));
+ tmp->first_child=0;
+ tmp->last_child=0;
diff --git a/dev-cpp/htmlcxx/htmlcxx-0.87.ebuild b/dev-cpp/htmlcxx/htmlcxx-0.87-r1.ebuild
index a1ac35ac47fe..00352fd75bc3 100644
--- a/dev-cpp/htmlcxx/htmlcxx-0.87.ebuild
+++ b/dev-cpp/htmlcxx/htmlcxx-0.87-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit multilib-minimal
@@ -15,6 +15,7 @@ IUSE="static-libs"
PATCHES=(
"${FILESDIR}"/${P}-c++17.patch
+ "${FILESDIR}"/${P}-c++20.patch
)
ECONF_SOURCE="${S}"