From 31ec0266e31910c16b0f69e16a2a693aae20abdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Fri, 5 Jan 2024 13:42:00 +0100 Subject: [PATCH] math/sound-of-sorting: fix build on -CURRENT --- math/sound-of-sorting/Makefile | 2 +- .../files/patch-src_SortAlgo.h | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 math/sound-of-sorting/files/patch-src_SortAlgo.h diff --git a/math/sound-of-sorting/Makefile b/math/sound-of-sorting/Makefile index 9d400e75d5725..782354a8691d1 100644 --- a/math/sound-of-sorting/Makefile +++ b/math/sound-of-sorting/Makefile @@ -1,7 +1,7 @@ PORTNAME= sound-of-sorting PORTVERSION= 0.6.5 DISTVERSIONPREFIX= ${PORTNAME}- -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= math MAINTAINER= se@FreeBSD.org diff --git a/math/sound-of-sorting/files/patch-src_SortAlgo.h b/math/sound-of-sorting/files/patch-src_SortAlgo.h new file mode 100644 index 0000000000000..8bdbf006f020e --- /dev/null +++ b/math/sound-of-sorting/files/patch-src_SortAlgo.h @@ -0,0 +1,31 @@ +--- src/SortAlgo.h.orig 2017-12-23 08:39:32 UTC ++++ src/SortAlgo.h +@@ -164,22 +164,22 @@ class MyIterator : public std::iteratorget_mutable(m_pos + n); } + +- bool operator==(const MyIterator& r) ++ bool operator==(const MyIterator& r) const + { return (m_array == r.m_array) && (m_pos == r.m_pos); } + +- bool operator!=(const MyIterator& r) ++ bool operator!=(const MyIterator& r) const + { return (m_array != r.m_array) || (m_pos != r.m_pos); } + +- bool operator<(const MyIterator& r) ++ bool operator<(const MyIterator& r) const + { return (m_array == r.m_array ? (m_pos < r.m_pos) : (m_array < r.m_array)); } + +- bool operator>(const MyIterator& r) ++ bool operator>(const MyIterator& r) const + { return (m_array == r.m_array ? (m_pos > r.m_pos) : (m_array > r.m_array)); } + +- bool operator<=(const MyIterator& r) ++ bool operator<=(const MyIterator& r) const + { return (m_array == r.m_array ? (m_pos <= r.m_pos) : (m_array <= r.m_array)); } + +- bool operator>=(const MyIterator& r) ++ bool operator>=(const MyIterator& r) const + { return (m_array == r.m_array ? (m_pos >= r.m_pos) : (m_array >= r.m_array)); } + + difference_type operator+(const MyIterator& r2) const