summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Tsoy <alexander@tsoy.me>2020-03-19 21:13:49 +0300
committerAndreas Sturmlechner <asturm@gentoo.org>2020-03-21 20:39:59 +0100
commit7ebc693196f45c5fe3fb3eda2aa61123ca6f66b6 (patch)
tree915689952f79b07843c3c4a7b601deb654138cd1 /media-sound/gtick/files
parentapp-arch/lcab: port to EAPI=7 (diff)
downloadgentoo-7ebc693196f45c5fe3fb3eda2aa61123ca6f66b6.tar.gz
gentoo-7ebc693196f45c5fe3fb3eda2aa61123ca6f66b6.tar.bz2
gentoo-7ebc693196f45c5fe3fb3eda2aa61123ca6f66b6.zip
media-sound/gtick: Various fixes
* Fix build with -fno-common * Don't install duplicate desktop entry * Fix .desktop file * Install additional icons and update icons cache * Move AppStream metadata into /usr/share/metainfo * Change license to GPL3+ Closes: https://bugs.gentoo.org/683436 Closes: https://bugs.gentoo.org/709396 Signed-off-by: Alexander Tsoy <alexander@tsoy.me> Closes: https://github.com/gentoo/gentoo/pull/14921 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-sound/gtick/files')
-rw-r--r--media-sound/gtick/files/gtick-0.5.4-desktop.patch32
-rw-r--r--media-sound/gtick/files/gtick-0.5.4-fno-common.patch27
2 files changed, 59 insertions, 0 deletions
diff --git a/media-sound/gtick/files/gtick-0.5.4-desktop.patch b/media-sound/gtick/files/gtick-0.5.4-desktop.patch
new file mode 100644
index 000000000000..7aa0995b0394
--- /dev/null
+++ b/media-sound/gtick/files/gtick-0.5.4-desktop.patch
@@ -0,0 +1,32 @@
+Downstream patch. No upstream activity since 2014.
+
+From b07f665d712fdbebfd506ef6301fc9ac71660e96 Mon Sep 17 00:00:00 2001
+From: Alexander Tsoy <alexander@tsoy.me>
+Date: Thu, 19 Mar 2020 21:17:22 +0300
+Subject: [PATCH 2/2] 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.24.1
+
diff --git a/media-sound/gtick/files/gtick-0.5.4-fno-common.patch b/media-sound/gtick/files/gtick-0.5.4-fno-common.patch
new file mode 100644
index 000000000000..37747cef1b88
--- /dev/null
+++ b/media-sound/gtick/files/gtick-0.5.4-fno-common.patch
@@ -0,0 +1,27 @@
+Downstream patch. No upstream activity since 2014.
+
+From 23f5585ba3dcf276cd3f71c25f710e68823f97e9 Mon Sep 17 00:00:00 2001
+From: Alexander Tsoy <alexander@tsoy.me>
+Date: Tue, 17 Mar 2020 17:14:50 +0300
+Subject: [PATCH 1/2] Fix building with -fno-common
+
+---
+ src/optionlexer.l | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/optionlexer.l b/src/optionlexer.l
+index df79dd5..97ed29d 100644
+--- a/src/optionlexer.l
++++ b/src/optionlexer.l
+@@ -40,7 +40,7 @@
+ #include "optionlexer.h"
+
+ char* option_filename;
+-YYLTYPE option_lloc;
++#define YYLTYPE option_lloc;
+
+ void option_locate();
+ %}
+--
+2.24.1
+