summaryrefslogtreecommitdiff
path: root/dev-cpp/tree
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-05-07 22:19:11 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-05-07 22:19:11 +0000
commitd21eeb58a0286abcb26ce8bd453854950f6c51eb (patch)
treecdcf0719d134e6047340a4a749c98322c2c2c081 /dev-cpp/tree
parent7675ccca73f5c413e3505b0308c6f010d62d5302 (diff)
downloadbaldeagleos-repo-d21eeb58a0286abcb26ce8bd453854950f6c51eb.tar.gz
baldeagleos-repo-d21eeb58a0286abcb26ce8bd453854950f6c51eb.tar.xz
baldeagleos-repo-d21eeb58a0286abcb26ce8bd453854950f6c51eb.zip
Adding metadata
Diffstat (limited to 'dev-cpp/tree')
-rw-r--r--dev-cpp/tree/files/tree-2.81-gcc11.patch33
-rw-r--r--dev-cpp/tree/tree-2.81.ebuild8
2 files changed, 38 insertions, 3 deletions
diff --git a/dev-cpp/tree/files/tree-2.81-gcc11.patch b/dev-cpp/tree/files/tree-2.81-gcc11.patch
new file mode 100644
index 000000000000..2af534dac988
--- /dev/null
+++ b/dev-cpp/tree/files/tree-2.81-gcc11.patch
@@ -0,0 +1,33 @@
+--- "ORIG/simple tree.hpp"
++++ "MOD/simple tree.hpp"
+@@ -323,7 +323,7 @@
+ public:
+ compare_nodes(StrictWeakOrdering comp) : comp_(comp) {};
+
+- bool operator()(const tree_node *a, const tree_node *b)
++ bool operator()(const tree_node *a, const tree_node *b) const
+ {
+ return comp_(a->data, b->data);
+ }
+--- a/tree.hh
++++ b/tree.hh
+@@ -422,7 +422,7 @@
+ public:
+ compare_nodes(StrictWeakOrdering comp) : comp_(comp) {};
+
+- bool operator()(const tree_node *a, const tree_node *b)
++ bool operator()(const tree_node *a, const tree_node *b) const
+ {
+ return comp_(a->data, b->data);
+ }
+--- a/xinlin.hh
++++ b/xinlin.hh
+@@ -332,7 +332,7 @@
+ public:
+ compare_nodes(StrictWeakOrdering comp) : comp_(comp) {};
+
+- bool operator()(const tree_node *a, const tree_node *b)
++ bool operator()(const tree_node *a, const tree_node *b) const
+ {
+ return comp_(a->data, b->data);
+ }
diff --git a/dev-cpp/tree/tree-2.81.ebuild b/dev-cpp/tree/tree-2.81.ebuild
index 02e717ec1e73..6f5d2aecaf66 100644
--- a/dev-cpp/tree/tree-2.81.ebuild
+++ b/dev-cpp/tree/tree-2.81.ebuild
@@ -8,15 +8,17 @@ inherit toolchain-funcs
DESCRIPTION="An STL-like tree class"
HOMEPAGE="https://www.aei.mpg.de/~peekas/tree/"
SRC_URI="http://www.aei.mpg.de/~peekas/tree/${P}.tar.gz"
+S="${WORKDIR}/${P}/src"
LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="0"
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="doc"
-S="${WORKDIR}/${P}/src"
-
-PATCHES=( "${FILESDIR}"/${P}-test.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-test.patch
+ "${FILESDIR}"/${P}-gcc11.patch
+)
src_configure() {
tc-export CXX