commit:     c23a094ffc97f7168925bfcc61b4faad1807a290
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Sun Nov 17 21:00:32 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 23 16:11:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c23a094f

media-sound/klick: use boost::bind instead of std::bind2nd

Closes: https://bugs.gentoo.org/929094
Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Closes: https://github.com/gentoo/gentoo/pull/39351
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../klick/files/klick-0.12.2-use-boost-bind.patch  | 34 +++++++++++++
 media-sound/klick/klick-0.12.2-r5.ebuild           | 55 ++++++++++++++++++++++
 2 files changed, 89 insertions(+)

diff --git a/media-sound/klick/files/klick-0.12.2-use-boost-bind.patch 
b/media-sound/klick/files/klick-0.12.2-use-boost-bind.patch
new file mode 100644
index 000000000000..0c3ae94ee176
--- /dev/null
+++ b/media-sound/klick/files/klick-0.12.2-use-boost-bind.patch
@@ -0,0 +1,34 @@
+From c3be3e56aa1bdb6689a5b5642e0119c8602f2263 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Dominic=20Sacr=C3=A9?= <[email protected]>
+Date: Mon, 14 Jan 2013 14:26:06 +0000
+Subject: [PATCH] use boost::bind instead of std::bind2nd
+
+git-svn-id: svn+ssh://kobol/srv/svn/klick/trunk@262 
c380f6eb-e629-0410-afc2-bdd98b771d42
+---
+ src/tempomap.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/tempomap.cc b/src/tempomap.cc
+index ea00ae2..23834f9 100644
+--- a/src/tempomap.cc
++++ b/src/tempomap.cc
+@@ -21,6 +21,7 @@
+ #include <boost/tokenizer.hpp>
+ #include <functional>
+ #include <algorithm>
++#include <boost/bind.hpp>
+ 
+ #include "util/string.hh"
+ #include "util/regex.hh"
+@@ -147,7 +148,7 @@ std::vector<float> TempoMap::parse_tempi(std::string const 
&s, float tempo1, int
+ void TempoMap::check_entry(Entry const & e)
+ {
+     if ((e.tempo <= 0 && e.tempi.empty()) ||
+-        std::find_if(e.tempi.begin(), e.tempi.end(), 
std::bind2nd(std::less_equal<float>(), 0.0f)) != e.tempi.end()) {
++        std::find_if(e.tempi.begin(), e.tempi.end(), 
boost::bind(std::less_equal<float>(), _1, 0.0f)) != e.tempi.end()) {
+         throw ParseError("tempo must be greater than zero");
+     }
+     if (e.bars <= 0 && e.bars != -1) {
+-- 
+2.45.2
+

diff --git a/media-sound/klick/klick-0.12.2-r5.ebuild 
b/media-sound/klick/klick-0.12.2-r5.ebuild
new file mode 100644
index 000000000000..1b91c05ad65a
--- /dev/null
+++ b/media-sound/klick/klick-0.12.2-r5.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit python-any-r1 scons-utils toolchain-funcs
+
+DESCRIPTION="An advanced command-line based metronome for JACK"
+HOMEPAGE="https://das.nasophon.de/klick/";
+SRC_URI="https://das.nasophon.de/download/${P}.tar.gz";
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug osc rubberband"
+
+RDEPEND="media-libs/libsamplerate
+       media-libs/libsndfile
+       virtual/jack
+       osc? ( media-libs/liblo )
+       rubberband? ( media-libs/rubberband )"
+DEPEND="${RDEPEND}
+       dev-libs/boost"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-sconstruct.patch
+       "${FILESDIR}"/${P}-gcc6.patch
+       "${FILESDIR}"/${P}-use-boost-bind.patch
+)
+
+HTML_DOCS=( doc/manual.html )
+
+src_configure() {
+       MYSCONS=(
+               CXX="$(tc-getCXX)"
+               CXXFLAGS="${CXXFLAGS}"
+               LINKFLAGS="${LDFLAGS}"
+               PREFIX="${EPREFIX}/usr"
+               DEBUG=$(usex debug)
+               OSC=$(usex osc)
+               RUBBERBAND=$(usex rubberband)
+       )
+}
+
+src_compile() {
+       escons "${MYSCONS[@]}"
+}
+
+src_install() {
+       escons "${MYSCONS[@]}" DESTDIR="${D}" install
+       einstalldocs
+}

Reply via email to