From 0a31dc2cfb95fd8ba41654682c77716f9c7fe043 Mon Sep 17 00:00:00 2001 From: Alexander Tsoy Date: Wed, 15 Jun 2022 16:06:19 +0300 Subject: media-sound/klick: add Python 3.10 support Also fix variable scope issue. Closes: https://bugs.gentoo.org/846074 Closes: https://bugs.gentoo.org/836078 Signed-off-by: Alexander Tsoy Closes: https://github.com/gentoo/gentoo/pull/25909 Signed-off-by: Sam James --- media-sound/klick/klick-0.12.2-r3.ebuild | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 media-sound/klick/klick-0.12.2-r3.ebuild (limited to 'media-sound') diff --git a/media-sound/klick/klick-0.12.2-r3.ebuild b/media-sound/klick/klick-0.12.2-r3.ebuild new file mode 100644 index 000000000000..dc5e78d639f9 --- /dev/null +++ b/media-sound/klick/klick-0.12.2-r3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit python-any-r1 scons-utils toolchain-funcs + +DESCRIPTION="An advanced command-line based metronome for JACK" +HOMEPAGE="http://das.nasophon.de/klick" +SRC_URI="http://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 +) + +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 +} -- cgit v1.2.3-65-gdbad