diff --git a/math/sound-of-sorting/Makefile b/math/sound-of-sorting/Makefile index 9d400e75d572..782354a8691d 100644 --- a/math/sound-of-sorting/Makefile +++ b/math/sound-of-sorting/Makefile @@ -1,34 +1,34 @@ PORTNAME= sound-of-sorting PORTVERSION= 0.6.5 DISTVERSIONPREFIX= ${PORTNAME}- -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= math MAINTAINER= se@FreeBSD.org COMMENT= Visualization and "Audibilization" of Sorting Algorithms WWW= https://panthema.net/2013/sound-of-sorting/ LICENSE= GPLv3 USES= compiler:c++11-lang sdl GNU_CONFIGURE= yes USE_SDL= sdl USE_WX= 3.0+ WX_CONF_ARGS= relative OPTIONS_DEFINE= DOCS USE_GITHUB= yes GH_ACCOUNT= bingmann GH_TAGNAME= 5884a35 PLIST_FILES= bin/sound-of-sorting PORTDOCS= README do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/sound-of-sorting ${STAGEDIR}${PREFIX}/bin/ ${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/sound-of-sorting ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${PREFIX}/share/doc/sound-of-sorting/README .include 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 000000000000..8bdbf006f020 --- /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