summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Linden <karl.j.linden@gmail.com>2016-05-27 12:12:46 +0200
committerPatrice Clement <monsieurp@gentoo.org>2016-05-28 15:41:44 +0000
commit5b63ebc7a8533baec212f8b5f54eab88fc784a04 (patch)
tree749f102aae06fb3d29b847cd31edd934036e0747 /media-sound/klick
parentmedia-gfx/shotwell: Version bump (diff)
downloadgentoo-5b63ebc7a8533baec212f8b5f54eab88fc784a04.tar.gz
gentoo-5b63ebc7a8533baec212f8b5f54eab88fc784a04.tar.bz2
gentoo-5b63ebc7a8533baec212f8b5f54eab88fc784a04.zip
media-sound/klick: Initial ebuild.
Package-Manager: portage-2.3.0_rc1 Closes: https://github.com/gentoo/gentoo/pull/1548 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'media-sound/klick')
-rw-r--r--media-sound/klick/Manifest1
-rw-r--r--media-sound/klick/files/klick-0.12.2-sconstruct.patch57
-rw-r--r--media-sound/klick/klick-0.12.2.ebuild51
-rw-r--r--media-sound/klick/metadata.xml15
4 files changed, 124 insertions, 0 deletions
diff --git a/media-sound/klick/Manifest b/media-sound/klick/Manifest
new file mode 100644
index 000000000000..fd1ddeeb8896
--- /dev/null
+++ b/media-sound/klick/Manifest
@@ -0,0 +1 @@
+DIST klick-0.12.2.tar.gz 111801 SHA256 1289533c0849b1b66463bf27f7ce5f71736b655cfb7672ef884c7e6eb957ac42 SHA512 e0da321b4f5573e8a0b7ef53a554bf33b6d999b7125c62648d5ad64278107b429effa573187327d7c6fe5ae07bf9c7f81b96f069358315b2ee9166480f6dae7f WHIRLPOOL 4baf1e8fad212c26568a2190af42b1d23058c780407bdd3523b03339337f1f3408f612718c29f026997d36b3aceb3cacd5cfc5ff4d4e69c9cd4edb9a72696590
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.ebuild b/media-sound/klick/klick-0.12.2.ebuild
new file mode 100644
index 000000000000..4997db065438
--- /dev/null
+++ b/media-sound/klick/klick-0.12.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+ media-sound/jack-audio-connection-kit
+ osc? ( media-libs/liblo )
+ rubberband? ( media-libs/rubberband )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${P}-sconstruct.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>