commit: 0a31dc2cfb95fd8ba41654682c77716f9c7fe043 Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me> AuthorDate: Wed Jun 15 13:06:19 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Jun 16 16:32:01 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a31dc2c
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 <alexander <AT> tsoy.me> Closes: https://github.com/gentoo/gentoo/pull/25909 Signed-off-by: Sam James <sam <AT> gentoo.org> media-sound/klick/klick-0.12.2-r3.ebuild | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) 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 +}
