summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Linden <karl.j.linden@gmail.com>2016-05-29 09:24:31 +0200
committerPatrice Clement <monsieurp@gentoo.org>2016-05-29 08:41:08 +0000
commitcc4b95c6b9a5a2749fc4d90ad9cddc0c4485917c (patch)
treed56886694b476193ac560db96db627870e98d8e4 /media-sound
parentdev-python/pylibmc: remove myself as a maintainer (diff)
downloadgentoo-cc4b95c6b9a5a2749fc4d90ad9cddc0c4485917c.tar.gz
gentoo-cc4b95c6b9a5a2749fc4d90ad9cddc0c4485917c.tar.bz2
gentoo-cc4b95c6b9a5a2749fc4d90ad9cddc0c4485917c.zip
media-sound/gtklick: Initial import.
Package-Manager: portage-2.3.0_rc1 Closes: https://github.com/gentoo/gentoo/pull/1553 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/gtklick/Manifest1
-rw-r--r--media-sound/gtklick/files/gtklick23
-rw-r--r--media-sound/gtklick/gtklick-0.6.4.ebuild34
-rw-r--r--media-sound/gtklick/metadata.xml12
4 files changed, 70 insertions, 0 deletions
diff --git a/media-sound/gtklick/Manifest b/media-sound/gtklick/Manifest
new file mode 100644
index 000000000000..bed2282b5ebe
--- /dev/null
+++ b/media-sound/gtklick/Manifest
@@ -0,0 +1 @@
+DIST gtklick-0.6.4.tar.gz 35901 SHA256 7799d884126ccc818678aed79d58057f8cf3528e9f1be771c3fa5b694d9d0137 SHA512 8491650cf324005f32808036f63574b0a59659bc8e5f3efe615b83e42701f1a3bcb95825a2378b3a17b45ddb5b33c87bed9602a0492d117665d85bd35f4a4a9b WHIRLPOOL de9ceb667910a0968afbf7650942ce1947150c508b76002b5f107fe21c3cf29c5e88462e1494837838cf78502ba5f017b11a834894ba4f21d18d0cbfbf5e46b7
diff --git a/media-sound/gtklick/files/gtklick b/media-sound/gtklick/files/gtklick
new file mode 100644
index 000000000000..6a999edc0719
--- /dev/null
+++ b/media-sound/gtklick/files/gtklick
@@ -0,0 +1,23 @@
+#!/usr/bin/env python2
+# -*- coding: utf-8 -*-
+#
+# gtklick
+#
+# This is a replacement for the broken runner script provided by the
+# original source. This script does not assume that the data is in some
+# folder relative to the script, but instead hardcodes the variables
+# during compiling.
+#
+# Copyright (C) 2008-2010 Dominic Sacré <dominic.sacre@gmx.de>
+# Copyright (C) 2013 Karl Lindén <karl.j.linden@gmail.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+from gtklick.gtklick import GTKlick
+import sys
+
+app = GTKlick(sys.argv[1:], "@sharedir@", "@localedir@")
+app.run()
diff --git a/media-sound/gtklick/gtklick-0.6.4.ebuild b/media-sound/gtklick/gtklick-0.6.4.ebuild
new file mode 100644
index 000000000000..948729649944
--- /dev/null
+++ b/media-sound/gtklick/gtklick-0.6.4.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+
+PYTHON_COMPAT=( python2_7 )
+inherit distutils-r1
+
+DESCRIPTION="A simple metronome with an easy-to-use GTK interface"
+HOMEPAGE="http://das.nasophon.de/gtklick/"
+SRC_URI="http://das.nasophon.de/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="dev-python/pygtk[${PYTHON_USEDEP}]
+ media-libs/pyliblo[${PYTHON_USEDEP}]
+ media-sound/klick[osc]
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ distutils-r1_src_install
+
+ # Replace the broken default runner script with a working one.
+ sed \
+ -e "s|[@]sharedir[@]|${EPREFIX}/usr/share/${PN}|g" \
+ -e "s|[@]localedir[@]|${EPREFIX}/usr/share/locale|g" \
+ "${FILESDIR}"/${PN} > "${T}"/${PN}
+ python_replicate_script "${T}"/${PN}
+}
diff --git a/media-sound/gtklick/metadata.xml b/media-sound/gtklick/metadata.xml
new file mode 100644
index 000000000000..b5f0b450d001
--- /dev/null
+++ b/media-sound/gtklick/metadata.xml
@@ -0,0 +1,12 @@
+<?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>
+</pkgmetadata>