Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/gtick/files/, media-sound/gtick/
Date: Thu, 25 Jun 2020 08:08:26
Message-Id: 1593072460.e2f64036f97a39fb55b88b4a62b8e1e1a34b4d97.juippis@gentoo
1 commit: e2f64036f97a39fb55b88b4a62b8e1e1a34b4d97
2 Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me>
3 AuthorDate: Thu Jun 4 23:23:49 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 25 08:07:40 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2f64036
7
8 media-sound/gtick: Version bump to 0.5.5
9
10 Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 media-sound/gtick/Manifest | 1 +
14 media-sound/gtick/files/gtick-0.5.5-desktop.patch | 30 +++++++++++
15 media-sound/gtick/gtick-0.5.5.ebuild | 62 +++++++++++++++++++++++
16 3 files changed, 93 insertions(+)
17
18 diff --git a/media-sound/gtick/Manifest b/media-sound/gtick/Manifest
19 index 0e84f79deec..c932678881c 100644
20 --- a/media-sound/gtick/Manifest
21 +++ b/media-sound/gtick/Manifest
22 @@ -1 +1,2 @@
23 DIST gtick-0.5.4.tar.gz 641902 BLAKE2B f1832f46b559908ae0c40bd0f6a08e145a0ba58a6cf2f8e7235b4f3f0b9141ea514cf52c51cef24d745ce360423daab855c42b5f6719664be65bf5f254650c1d SHA512 28ea6f38952c376f1f684e7b598d1032063f7fdf3454cdb86735cb835079312c0d1c30dfeade7272f5399296f2a2ede5b81524036a9ac0d91e0878865fab446e
24 +DIST gtick-0.5.5.tar.gz 659596 BLAKE2B 74e40cd20bf24ef8a9cb9f6abf49d885bb5e660a6b4faa40fa18a10153edad1e522ca555c802e9b5364abbc94f79989e4dfdfd2d19a038f4c6f63895a287dc12 SHA512 8f308c312f6cc59bb8b786af09b1498c76adc1b2692369886e85fa97524b417bf3a5e075ba20061f009b36cb4fe12cd455befe7e466d8215620640229ebbdb87
25
26 diff --git a/media-sound/gtick/files/gtick-0.5.5-desktop.patch b/media-sound/gtick/files/gtick-0.5.5-desktop.patch
27 new file mode 100644
28 index 00000000000..d1492316dc5
29 --- /dev/null
30 +++ b/media-sound/gtick/files/gtick-0.5.5-desktop.patch
31 @@ -0,0 +1,30 @@
32 +From 17d3d5060160169706a9a0847aa15c068484fe5e Mon Sep 17 00:00:00 2001
33 +From: Alexander Tsoy <alexander@××××.me>
34 +Date: Thu, 19 Mar 2020 21:17:22 +0300
35 +Subject: [PATCH] Fix desktop file
36 +
37 +---
38 + gtick.desktop | 7 ++++---
39 + 1 file changed, 4 insertions(+), 3 deletions(-)
40 +
41 +diff --git a/gtick.desktop b/gtick.desktop
42 +index 05cf5ed..a31dee3 100644
43 +--- a/gtick.desktop
44 ++++ b/gtick.desktop
45 +@@ -5,9 +5,10 @@ Name=GTick
46 + Comment=a GTK-based metronome
47 + Comment[pt]=Um metrônomo baseado em GTK
48 + Comment[pt-br]=Um metrônomo baseado em GTK
49 +-Exec=/usr/bin/gtick
50 +-Icon=/usr/share/icons/hicolor/64x64/apps/gtick.xpm
51 ++Exec=gtick
52 ++Icon=gtick
53 + Terminal=false
54 + Type=Application
55 + Categories=GTK;AudioVideo;Audio;
56 +-GenericName[pt_BR]=
57 ++GenericName=Graphical Metronome
58 ++StartupNotify=true
59 +--
60 +2.26.2
61 +
62
63 diff --git a/media-sound/gtick/gtick-0.5.5.ebuild b/media-sound/gtick/gtick-0.5.5.ebuild
64 new file mode 100644
65 index 00000000000..3d6b5f7e794
66 --- /dev/null
67 +++ b/media-sound/gtick/gtick-0.5.5.ebuild
68 @@ -0,0 +1,62 @@
69 +# Copyright 1999-2020 Gentoo Authors
70 +# Distributed under the terms of the GNU General Public License v2
71 +
72 +EAPI=7
73 +
74 +inherit desktop xdg-utils
75 +
76 +DESCRIPTION="Metronome application supporting different meters and speeds ranging"
77 +HOMEPAGE="https://www.antcom.de/gtick"
78 +SRC_URI="https://www.antcom.de/gtick/download/${P}.tar.gz"
79 +
80 +LICENSE="GPL-3+"
81 +SLOT="0"
82 +KEYWORDS="~amd64 ~ppc ~sparc ~x86"
83 +IUSE="nls sndfile"
84 +
85 +RDEPEND="media-sound/pulseaudio
86 + x11-libs/gtk+:2
87 + sndfile? ( media-libs/libsndfile )"
88 +DEPEND="${RDEPEND}"
89 +BDEPEND="virtual/pkgconfig
90 + nls? ( sys-devel/gettext )"
91 +
92 +RESTRICT="test"
93 +
94 +PATCHES=(
95 + "${FILESDIR}"/${P}-desktop.patch
96 +)
97 +
98 +src_prepare() {
99 + default
100 +
101 + sed -i 's:^\(appdatadir = .*/\)appdata:\1metainfo:' \
102 + Makefile.in || die
103 +}
104 +
105 +src_configure() {
106 + local myeconfargs=(
107 + $(use_enable nls)
108 + $(use_with sndfile)
109 + )
110 +
111 + econf "${myeconfargs[@]}"
112 +}
113 +
114 +src_install() {
115 + local res
116 +
117 + default
118 +
119 + for res in 32 48 64; do
120 + newicon -s ${res} src/icon${res}x${res}.xpm gtick.xpm
121 + done
122 +}
123 +
124 +pkg_postinst() {
125 + xdg_icon_cache_update
126 +}
127 +
128 +pkg_postrm() {
129 + xdg_icon_cache_update
130 +}