commit:     e2f64036f97a39fb55b88b4a62b8e1e1a34b4d97
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Thu Jun  4 23:23:49 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Jun 25 08:07:40 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2f64036

media-sound/gtick: Version bump to 0.5.5

Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-sound/gtick/Manifest                        |  1 +
 media-sound/gtick/files/gtick-0.5.5-desktop.patch | 30 +++++++++++
 media-sound/gtick/gtick-0.5.5.ebuild              | 62 +++++++++++++++++++++++
 3 files changed, 93 insertions(+)

diff --git a/media-sound/gtick/Manifest b/media-sound/gtick/Manifest
index 0e84f79deec..c932678881c 100644
--- a/media-sound/gtick/Manifest
+++ b/media-sound/gtick/Manifest
@@ -1 +1,2 @@
 DIST gtick-0.5.4.tar.gz 641902 BLAKE2B 
f1832f46b559908ae0c40bd0f6a08e145a0ba58a6cf2f8e7235b4f3f0b9141ea514cf52c51cef24d745ce360423daab855c42b5f6719664be65bf5f254650c1d
 SHA512 
28ea6f38952c376f1f684e7b598d1032063f7fdf3454cdb86735cb835079312c0d1c30dfeade7272f5399296f2a2ede5b81524036a9ac0d91e0878865fab446e
+DIST gtick-0.5.5.tar.gz 659596 BLAKE2B 
74e40cd20bf24ef8a9cb9f6abf49d885bb5e660a6b4faa40fa18a10153edad1e522ca555c802e9b5364abbc94f79989e4dfdfd2d19a038f4c6f63895a287dc12
 SHA512 
8f308c312f6cc59bb8b786af09b1498c76adc1b2692369886e85fa97524b417bf3a5e075ba20061f009b36cb4fe12cd455befe7e466d8215620640229ebbdb87

diff --git a/media-sound/gtick/files/gtick-0.5.5-desktop.patch 
b/media-sound/gtick/files/gtick-0.5.5-desktop.patch
new file mode 100644
index 00000000000..d1492316dc5
--- /dev/null
+++ b/media-sound/gtick/files/gtick-0.5.5-desktop.patch
@@ -0,0 +1,30 @@
+From 17d3d5060160169706a9a0847aa15c068484fe5e Mon Sep 17 00:00:00 2001
+From: Alexander Tsoy <[email protected]>
+Date: Thu, 19 Mar 2020 21:17:22 +0300
+Subject: [PATCH] Fix desktop file
+
+---
+ gtick.desktop | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/gtick.desktop b/gtick.desktop
+index 05cf5ed..a31dee3 100644
+--- a/gtick.desktop
++++ b/gtick.desktop
+@@ -5,9 +5,10 @@ Name=GTick
+ Comment=a GTK-based metronome
+ Comment[pt]=Um metrĂ´nomo baseado em GTK
+ Comment[pt-br]=Um metrĂ´nomo baseado em GTK
+-Exec=/usr/bin/gtick
+-Icon=/usr/share/icons/hicolor/64x64/apps/gtick.xpm
++Exec=gtick
++Icon=gtick
+ Terminal=false
+ Type=Application
+ Categories=GTK;AudioVideo;Audio;
+-GenericName[pt_BR]=
++GenericName=Graphical Metronome
++StartupNotify=true
+-- 
+2.26.2
+

diff --git a/media-sound/gtick/gtick-0.5.5.ebuild 
b/media-sound/gtick/gtick-0.5.5.ebuild
new file mode 100644
index 00000000000..3d6b5f7e794
--- /dev/null
+++ b/media-sound/gtick/gtick-0.5.5.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop xdg-utils
+
+DESCRIPTION="Metronome application supporting different meters and speeds 
ranging"
+HOMEPAGE="https://www.antcom.de/gtick";
+SRC_URI="https://www.antcom.de/gtick/download/${P}.tar.gz";
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="nls sndfile"
+
+RDEPEND="media-sound/pulseaudio
+       x11-libs/gtk+:2
+       sndfile? ( media-libs/libsndfile )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig
+       nls? ( sys-devel/gettext )"
+
+RESTRICT="test"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-desktop.patch
+)
+
+src_prepare() {
+       default
+
+       sed -i 's:^\(appdatadir = .*/\)appdata:\1metainfo:' \
+               Makefile.in || die
+}
+
+src_configure() {
+       local myeconfargs=(
+               $(use_enable nls)
+               $(use_with sndfile)
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       local res
+
+       default
+
+       for res in 32 48 64; do
+               newicon -s ${res} src/icon${res}x${res}.xpm gtick.xpm
+       done
+}
+
+pkg_postinst() {
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+}

Reply via email to