1 |
commit: cc4b95c6b9a5a2749fc4d90ad9cddc0c4485917c |
2 |
Author: Karl Linden <karl.j.linden <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun May 29 07:24:31 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 29 08:41:08 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc4b95c6 |
7 |
|
8 |
media-sound/gtklick: Initial import. |
9 |
|
10 |
Package-Manager: portage-2.3.0_rc1 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/1553 |
12 |
|
13 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
14 |
|
15 |
media-sound/gtklick/Manifest | 1 + |
16 |
media-sound/gtklick/files/gtklick | 23 +++++++++++++++++++++ |
17 |
media-sound/gtklick/gtklick-0.6.4.ebuild | 34 ++++++++++++++++++++++++++++++++ |
18 |
media-sound/gtklick/metadata.xml | 12 +++++++++++ |
19 |
4 files changed, 70 insertions(+) |
20 |
|
21 |
diff --git a/media-sound/gtklick/Manifest b/media-sound/gtklick/Manifest |
22 |
new file mode 100644 |
23 |
index 0000000..bed2282 |
24 |
--- /dev/null |
25 |
+++ b/media-sound/gtklick/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST gtklick-0.6.4.tar.gz 35901 SHA256 7799d884126ccc818678aed79d58057f8cf3528e9f1be771c3fa5b694d9d0137 SHA512 8491650cf324005f32808036f63574b0a59659bc8e5f3efe615b83e42701f1a3bcb95825a2378b3a17b45ddb5b33c87bed9602a0492d117665d85bd35f4a4a9b WHIRLPOOL de9ceb667910a0968afbf7650942ce1947150c508b76002b5f107fe21c3cf29c5e88462e1494837838cf78502ba5f017b11a834894ba4f21d18d0cbfbf5e46b7 |
28 |
|
29 |
diff --git a/media-sound/gtklick/files/gtklick b/media-sound/gtklick/files/gtklick |
30 |
new file mode 100644 |
31 |
index 0000000..6a999ed |
32 |
--- /dev/null |
33 |
+++ b/media-sound/gtklick/files/gtklick |
34 |
@@ -0,0 +1,23 @@ |
35 |
+#!/usr/bin/env python2 |
36 |
+# -*- coding: utf-8 -*- |
37 |
+# |
38 |
+# gtklick |
39 |
+# |
40 |
+# This is a replacement for the broken runner script provided by the |
41 |
+# original source. This script does not assume that the data is in some |
42 |
+# folder relative to the script, but instead hardcodes the variables |
43 |
+# during compiling. |
44 |
+# |
45 |
+# Copyright (C) 2008-2010 Dominic Sacré <dominic.sacre@×××.de> |
46 |
+# Copyright (C) 2013 Karl Lindén <karl.j.linden@×××××.com> |
47 |
+# |
48 |
+# This program is free software; you can redistribute it and/or modify |
49 |
+# it under the terms of the GNU General Public License as published by |
50 |
+# the Free Software Foundation; either version 2 of the License, or |
51 |
+# (at your option) any later version. |
52 |
+ |
53 |
+from gtklick.gtklick import GTKlick |
54 |
+import sys |
55 |
+ |
56 |
+app = GTKlick(sys.argv[1:], "@sharedir@", "@localedir@") |
57 |
+app.run() |
58 |
|
59 |
diff --git a/media-sound/gtklick/gtklick-0.6.4.ebuild b/media-sound/gtklick/gtklick-0.6.4.ebuild |
60 |
new file mode 100644 |
61 |
index 0000000..9487296 |
62 |
--- /dev/null |
63 |
+++ b/media-sound/gtklick/gtklick-0.6.4.ebuild |
64 |
@@ -0,0 +1,34 @@ |
65 |
+# Copyright 1999-2016 Gentoo Foundation |
66 |
+# Distributed under the terms of the GNU General Public License v2 |
67 |
+# $Id$ |
68 |
+ |
69 |
+EAPI="6" |
70 |
+ |
71 |
+PYTHON_COMPAT=( python2_7 ) |
72 |
+inherit distutils-r1 |
73 |
+ |
74 |
+DESCRIPTION="A simple metronome with an easy-to-use GTK interface" |
75 |
+HOMEPAGE="http://das.nasophon.de/gtklick/" |
76 |
+SRC_URI="http://das.nasophon.de/download/${P}.tar.gz" |
77 |
+ |
78 |
+LICENSE="GPL-2" |
79 |
+SLOT="0" |
80 |
+KEYWORDS="~amd64 ~x86" |
81 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
82 |
+ |
83 |
+RDEPEND="dev-python/pygtk[${PYTHON_USEDEP}] |
84 |
+ media-libs/pyliblo[${PYTHON_USEDEP}] |
85 |
+ media-sound/klick[osc] |
86 |
+ ${PYTHON_DEPS}" |
87 |
+DEPEND="${RDEPEND}" |
88 |
+ |
89 |
+src_install() { |
90 |
+ distutils-r1_src_install |
91 |
+ |
92 |
+ # Replace the broken default runner script with a working one. |
93 |
+ sed \ |
94 |
+ -e "s|[@]sharedir[@]|${EPREFIX}/usr/share/${PN}|g" \ |
95 |
+ -e "s|[@]localedir[@]|${EPREFIX}/usr/share/locale|g" \ |
96 |
+ "${FILESDIR}"/${PN} > "${T}"/${PN} |
97 |
+ python_replicate_script "${T}"/${PN} |
98 |
+} |
99 |
|
100 |
diff --git a/media-sound/gtklick/metadata.xml b/media-sound/gtklick/metadata.xml |
101 |
new file mode 100644 |
102 |
index 0000000..b5f0b45 |
103 |
--- /dev/null |
104 |
+++ b/media-sound/gtklick/metadata.xml |
105 |
@@ -0,0 +1,12 @@ |
106 |
+<?xml version="1.0" encoding="UTF-8"?> |
107 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
108 |
+<pkgmetadata> |
109 |
+ <maintainer type="person"> |
110 |
+ <email>karl.j.linden@×××××.com</email> |
111 |
+ <name>Karl Linden</name> |
112 |
+ </maintainer> |
113 |
+ <maintainer type="project"> |
114 |
+ <email>proxy-maint@g.o</email> |
115 |
+ <name>Proxy Maintainers</name> |
116 |
+ </maintainer> |
117 |
+</pkgmetadata> |