diff options
Diffstat (limited to 'media-sound/klick')
-rw-r--r-- | media-sound/klick/Manifest | 6 | ||||
-rw-r--r-- | media-sound/klick/files/klick-0.12.2-gcc6.patch | 44 | ||||
-rw-r--r-- | media-sound/klick/files/klick-0.12.2-sconstruct.patch | 57 | ||||
-rw-r--r-- | media-sound/klick/klick-0.12.2-r1.ebuild | 53 | ||||
-rw-r--r-- | media-sound/klick/metadata.xml | 15 |
5 files changed, 175 insertions, 0 deletions
diff --git a/media-sound/klick/Manifest b/media-sound/klick/Manifest new file mode 100644 index 000000000000..1999da16e71c --- /dev/null +++ b/media-sound/klick/Manifest @@ -0,0 +1,6 @@ +AUX klick-0.12.2-gcc6.patch 1513 SHA256 e72eb623e6d1a1952522c62ed97c1e686a78877b487047970a2533eb6847b6ba SHA512 15d5fadd81f5dcb837ac4f91d62b99834fd192a508d5df9647df994b65807fc3de25eaceccad9b39535dc56abb83feb2f48109cf46d95d1ddb68a8212d096ad3 WHIRLPOOL 3e4244e398cbfbc819f609d0088b64328ac09c33926a5d2288cc483e184979065efb0385d0c2b37f94f4eb38b3db08174762842fb9a44f0faad9d60ec75b9223 +AUX klick-0.12.2-sconstruct.patch 1836 SHA256 fe5c2101c5170c7df24916909cc987bbe6fc136e8ca4fe342cabd2bcd4a265ad SHA512 0db89995a39962e91085c761cf9eb07470ab20a16dd90ae77e1e34bf912ede28aca15a8c7f7708fdfbafe3c84f3b92059aa01f160b936e20a32cd69fbc6d03c1 WHIRLPOOL 7e89aabd3b33422e9ecd0ef471d38b7902162a695ac3d95ff368cab906a22fa02015e2f86bc7d8d8c6e1fe6be9c7de4d33a55ae7f13b5f04c408d1db6408c381 +DIST klick-0.12.2.tar.gz 111801 SHA256 1289533c0849b1b66463bf27f7ce5f71736b655cfb7672ef884c7e6eb957ac42 SHA512 e0da321b4f5573e8a0b7ef53a554bf33b6d999b7125c62648d5ad64278107b429effa573187327d7c6fe5ae07bf9c7f81b96f069358315b2ee9166480f6dae7f WHIRLPOOL 4baf1e8fad212c26568a2190af42b1d23058c780407bdd3523b03339337f1f3408f612718c29f026997d36b3aceb3cacd5cfc5ff4d4e69c9cd4edb9a72696590 +EBUILD klick-0.12.2-r1.ebuild 1028 SHA256 ac9aec5f435cf65418785f593c3a4ceb0c6bde2d6c2fdf26d8cde24e1ac5a617 SHA512 3be24a91e6279d2381d505a16642143b0f340a3269d53e2ea4b03eb85883442bf9094e778eed7cdbf1c2690749aeeb713160c1ecc42b57c8b518c46473583e7f WHIRLPOOL 166755bb0e12a3ed19ad797358dace136070f6628ec18476cfe6a9b2cb4e6bee58fee5bdad675082d044801e2eac64e3c53989771aab3b60bb06035a2f429b4f +MISC ChangeLog 464 SHA256 8ef3c7b1c38dd989cee9b5aeaeda49e00eefa133364d9846db726571bcb0b4c3 SHA512 777fc6b4c2a28100f9cf001886d223afb508ee336b79765ee0e1358f6c904d0280c13b165922cdb87b60b9f70a6610a4d630c3d5364fd3545b51cee80003c610 WHIRLPOOL 15da3c16fbb8f48dec4c3200b4187c928dfab2905ef2be31cd8944187e858ec28d89e5b14f37c7ba20a7a8beffdf5e9144f377b5b837646d9faeb7aaed6bc9b8 +MISC metadata.xml 440 SHA256 b52ef7b4c7b7a7588bc691c62bfa2f38db478d87ea02898a3557a4189ccdff6e SHA512 fb4c25c97a06ab72f02df5554f430d058cf1178d210d793658e0665617183843bdec2711f0c0a39cd08cb6bf45677a1218927cc9a793997699da7a90b5e88d47 WHIRLPOOL 64514847511d0f1907718cfe39062404192fab2d642cecb50e5d22f03ed1605ce105b76977195a7e14d8f0d4fe3b446b02dbd8d08dd88fb2b8b297705df41874 diff --git a/media-sound/klick/files/klick-0.12.2-gcc6.patch b/media-sound/klick/files/klick-0.12.2-gcc6.patch new file mode 100644 index 000000000000..c8c07121e497 --- /dev/null +++ b/media-sound/klick/files/klick-0.12.2-gcc6.patch @@ -0,0 +1,44 @@ +--- klick-0.12.2/src/metronome_map.hh.old 2016-09-21 22:17:41.364102201 -0400 ++++ klick-0.12.2/src/metronome_map.hh 2016-09-21 22:28:50.611858765 -0400 +@@ -48,7 +48,7 @@ + virtual void timebase_callback(position_t *); + + private: +- static double const TICKS_PER_BEAT = 1920.0; ++ static double const TICKS_PER_BEAT; + + // transport position + nframes_t _current; +--- klick-0.12.2/src/metronome_map.cc.old 2016-09-21 22:27:01.551067088 -0400 ++++ klick-0.12.2/src/metronome_map.cc 2016-09-21 22:28:49.027158380 -0400 +@@ -195,3 +195,5 @@ + p->beats_per_minute = _pos.map_entry().tempi[n]; + } + } ++ ++double const MetronomeMap::TICKS_PER_BEAT = 1920.0; +--- klick-0.12.2/src/metronome_simple.hh.old 2016-09-21 22:18:57.674628602 -0400 ++++ klick-0.12.2/src/metronome_simple.hh 2016-09-21 22:29:04.307859355 -0400 +@@ -58,9 +58,9 @@ + + private: + +- static int const MAX_TAPS = 5; +- static float const MAX_TAP_AGE = 3.0; +- static float const TAP_DIFF = 0.2; ++ static int const MAX_TAPS; ++ static float const MAX_TAP_AGE; ++ static float const TAP_DIFF; + + float _tempo; + float _tempo_increment, _tempo_start, _tempo_limit; +--- klick-0.12.2/src/metronome_simple.cc.old 2016-09-21 22:27:24.883846428 -0400 ++++ klick-0.12.2/src/metronome_simple.cc 2016-09-21 22:28:46.015859632 -0400 +@@ -217,3 +217,7 @@ + + _frame += nframes; + } ++ ++int const MetronomeSimple::MAX_TAPS = 5; ++float const MetronomeSimple::MAX_TAP_AGE = 3.0; ++float const MetronomeSimple::TAP_DIFF = 0.2; diff --git a/media-sound/klick/files/klick-0.12.2-sconstruct.patch b/media-sound/klick/files/klick-0.12.2-sconstruct.patch new file mode 100644 index 000000000000..c142993b1e61 --- /dev/null +++ b/media-sound/klick/files/klick-0.12.2-sconstruct.patch @@ -0,0 +1,57 @@ +This patch +* replaces deprecated calls, +* makes the build system respect toolchain, +* avoids underlinking. + +--- klick-0.12.2.orig/SConstruct ++++ klick-0.12.2/SConstruct +@@ -11,24 +11,24 @@ + ENV = os.environ, + ) + +-# build options +-opts = Options('scache.conf') +-opts.AddOptions( +- PathOption('PREFIX', 'install prefix', '/usr/local'), +- PathOption('DESTDIR', 'intermediate install prefix', '', PathOption.PathAccept), +- BoolOption('DEBUG', 'debug mode', False), +- BoolOption('OSC', 'OSC support', True), +- BoolOption('TERMINAL', 'terminal control support', True), +- BoolOption('RUBBERBAND', 'use Rubber Band for pitch shifting', False), ++# build variables ++vars = Variables('scache.conf') ++vars.AddVariables( ++ ('CXX', 'C++ compiler'), ++ ('CXXFLAGS', 'C++ compiler flags'), ++ ('LINKFLAGS', 'linker flags'), ++ PathVariable('PREFIX', 'install prefix', '/usr/local'), ++ PathVariable('DESTDIR', 'intermediate install prefix', '', PathVariable.PathAccept), ++ BoolVariable('DEBUG', 'debug mode', False), ++ BoolVariable('OSC', 'OSC support', True), ++ BoolVariable('TERMINAL', 'terminal control support', True), ++ BoolVariable('RUBBERBAND', 'use Rubber Band for pitch shifting', False), + ) +-opts.Update(env) +-opts.Save('scache.conf', env) +-Help(opts.GenerateHelpText(env)) +- +-if env['DEBUG']: +- env.Append(CCFLAGS = ['-g', '-W', '-Wall']) +-else: +- env.Append(CCFLAGS = ['-O2', '-W', '-Wall']) ++vars.Update(env) ++vars.Save('scache.conf', env) ++Help(vars.GenerateHelpText(env)) ++ ++if not env['DEBUG']: + env.Prepend(CPPDEFINES = 'NDEBUG') + + # install paths +@@ -38,6 +38,7 @@ + env.Append(CPPDEFINES = ('DATA_DIR', '\\"%s\\"' % prefix_share)) + + # required libraries ++env.PrependUnique(LIBS = ['stdc++', 'm']) + env.ParseConfig( + 'pkg-config --cflags --libs jack samplerate sndfile' + ) diff --git a/media-sound/klick/klick-0.12.2-r1.ebuild b/media-sound/klick/klick-0.12.2-r1.ebuild new file mode 100644 index 000000000000..06734a9fa584 --- /dev/null +++ b/media-sound/klick/klick-0.12.2-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit 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="dev-libs/boost + media-libs/libsamplerate + media-libs/libsndfile + virtual/jack + osc? ( media-libs/liblo ) + rubberband? ( media-libs/rubberband )" +DEPEND="${RDEPEND} + 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" + DESTDIR="${D}" + DEBUG=$(usex debug) + OSC=$(usex osc) + RUBBERBAND=$(usex rubberband) + ) +} + +src_compile() { + escons "${MYSCONS[@]}" +} + +src_install() { + escons "${MYSCONS[@]}" install + einstalldocs +} diff --git a/media-sound/klick/metadata.xml b/media-sound/klick/metadata.xml new file mode 100644 index 000000000000..3a4ad095af7c --- /dev/null +++ b/media-sound/klick/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>karl.j.linden@gmail.com</email> + <name>Karl Linden</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="rubberband">Enable rubberband support</flag> + </use> +</pkgmetadata> |