diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-cpp/htmlcxx | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'dev-cpp/htmlcxx')
| -rw-r--r-- | dev-cpp/htmlcxx/Manifest | 1 | ||||
| -rw-r--r-- | dev-cpp/htmlcxx/files/htmlcxx-0.87-c++17.patch | 26 | ||||
| -rw-r--r-- | dev-cpp/htmlcxx/files/htmlcxx-0.87-c++20.patch | 78 | ||||
| -rw-r--r-- | dev-cpp/htmlcxx/htmlcxx-0.87-r1.ebuild | 34 | ||||
| -rw-r--r-- | dev-cpp/htmlcxx/metadata.xml | 11 |
5 files changed, 150 insertions, 0 deletions
diff --git a/dev-cpp/htmlcxx/Manifest b/dev-cpp/htmlcxx/Manifest new file mode 100644 index 000000000000..6a7558d8de92 --- /dev/null +++ b/dev-cpp/htmlcxx/Manifest @@ -0,0 +1 @@ +DIST htmlcxx-0.87.tar.gz 477083 BLAKE2B 94977e758b4f2643f39a464094e315c11b78bc957a3eb054e6a7608828345704a82c3ca36c5ac2855054e7570daebb80d8a63639f3a7197344d25f2d16830702 SHA512 391b94c7ea2d17a04d46ac80f8146e6c2b14b289379c40f3d432ed9c0f36222ced6384d725cdecfc352e28c30f11976249b6a3f7133bbee3161a7883d197fca7 diff --git a/dev-cpp/htmlcxx/files/htmlcxx-0.87-c++17.patch b/dev-cpp/htmlcxx/files/htmlcxx-0.87-c++17.patch new file mode 100644 index 000000000000..9f8f060de456 --- /dev/null +++ b/dev-cpp/htmlcxx/files/htmlcxx-0.87-c++17.patch @@ -0,0 +1,26 @@ +https://sourceforge.net/p/htmlcxx/patches/8/ + +diff --color -Naur a/html/CharsetConverter.cc b/html/CharsetConverter.cc +--- a/html/CharsetConverter.cc 2018-12-29 03:13:56.000000000 +0000 ++++ b/html/CharsetConverter.cc 2021-05-31 23:03:10.705334580 +0100 +@@ -7,7 +7,7 @@ + using namespace std; + using namespace htmlcxx; + +-CharsetConverter::CharsetConverter(const string &from, const string &to) throw (Exception) ++CharsetConverter::CharsetConverter(const string &from, const string &to) + { + mIconvDescriptor = iconv_open(to.c_str(), from.c_str()); + if (mIconvDescriptor == (iconv_t)(-1)) +diff --color -Naur a/html/CharsetConverter.h b/html/CharsetConverter.h +--- a/html/CharsetConverter.h 2018-12-29 03:13:56.000000000 +0000 ++++ b/html/CharsetConverter.h 2021-05-31 23:03:19.042574598 +0100 +@@ -17,7 +17,7 @@ + : std::runtime_error(arg) {} + }; + +- CharsetConverter(const std::string &from, const std::string &to) throw (Exception); ++ CharsetConverter(const std::string &from, const std::string &to); + ~CharsetConverter(); + + std::string convert(const std::string &input); 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-r1.ebuild b/dev-cpp/htmlcxx/htmlcxx-0.87-r1.ebuild new file mode 100644 index 000000000000..00352fd75bc3 --- /dev/null +++ b/dev-cpp/htmlcxx/htmlcxx-0.87-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib-minimal + +DESCRIPTION="A simple non-validating CSS 1 and HTML parser for C++" +HOMEPAGE="http://htmlcxx.sourceforge.net/" +SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz" +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~loong ~x86" +IUSE="static-libs" + +PATCHES=( + "${FILESDIR}"/${P}-c++17.patch + "${FILESDIR}"/${P}-c++20.patch +) + +ECONF_SOURCE="${S}" + +multilib_src_configure() { + econf \ + --enable-shared \ + $(use_enable static-libs static) +} + +multilib_src_install_all() { + # libtool archives covered by pkg-config. + find "${D}" -name "*.la" -delete || die + + einstalldocs +} diff --git a/dev-cpp/htmlcxx/metadata.xml b/dev-cpp/htmlcxx/metadata.xml new file mode 100644 index 000000000000..a895868c760f --- /dev/null +++ b/dev-cpp/htmlcxx/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>chewi@gentoo.org</email> + <name>James Le Cuirot</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">htmlcxx</remote-id> + </upstream> +</pkgmetadata> |
