1 |
commit: a248b92d13cc2d8ca840a3f53e17b4000ab2fca5 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 3 17:58:08 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 3 18:05:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a248b92d |
7 |
|
8 |
media-video/xine-ui: QA: Fix .desktop file |
9 |
|
10 |
Closes: https://bugs.gentoo.org/486358 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
13 |
|
14 |
.../xine-ui/files/xine-ui-0.99.10-desktop.patch | 23 ++++++++++++++++++++++ |
15 |
media-video/xine-ui/xine-ui-0.99.10.ebuild | 8 ++++++-- |
16 |
2 files changed, 29 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/media-video/xine-ui/files/xine-ui-0.99.10-desktop.patch b/media-video/xine-ui/files/xine-ui-0.99.10-desktop.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..04aecb7ccf1 |
21 |
--- /dev/null |
22 |
+++ b/media-video/xine-ui/files/xine-ui-0.99.10-desktop.patch |
23 |
@@ -0,0 +1,23 @@ |
24 |
+--- a/misc/desktops/xine.desktop.in 2017-12-28 17:34:15.000000000 +0100 |
25 |
++++ b/misc/desktops/xine.desktop.in 2018-10-03 18:53:23.909196224 +0200 |
26 |
+@@ -6,5 +6,5 @@ |
27 |
+ Icon=xine |
28 |
+ Terminal=false |
29 |
+ Type=Application |
30 |
+-Categories=Application;AudioVideo;Player; |
31 |
+-MimeType= |
32 |
+\ No newline at end of file |
33 |
++Categories=AudioVideo;Player; |
34 |
++MimeType= |
35 |
+\ No newline at end of file |
36 |
+--- a/misc/desktops/Makefile.am 2017-12-28 17:34:15.000000000 +0100 |
37 |
++++ b/misc/desktops/Makefile.am 2018-10-03 19:52:23.262534618 +0200 |
38 |
+@@ -32,7 +32,7 @@ |
39 |
+ if XINE_LIST |
40 |
+ xine.desktop: xine.desktop.in @XINE_LIST@ |
41 |
+ $(AM_V_GEN)cat $< > $@; \ |
42 |
+- @XINE_LIST@ | perl -ne 'print join(";",sort(split(";")))' >> $@; \ |
43 |
++ @XINE_LIST@ | perl -ne 'print join("\n",split(";"))' | sort -u | xargs | perl -ne 'print join(";",sort(split(" ")))' >> $@; \ |
44 |
+ echo ';$(INPUT_MIME_TYPES)' >> $@ |
45 |
+ else |
46 |
+ XINE_MIME = $(if $(shell test "$(XINE_CONFIG)" = '' && echo y),$(shell pkg-config --variable=plugindir libxine),$(shell $(XINE_CONFIG) --plugindir))/mime.types |
47 |
|
48 |
diff --git a/media-video/xine-ui/xine-ui-0.99.10.ebuild b/media-video/xine-ui/xine-ui-0.99.10.ebuild |
49 |
index 12355a49bf9..66fffbd153c 100644 |
50 |
--- a/media-video/xine-ui/xine-ui-0.99.10.ebuild |
51 |
+++ b/media-video/xine-ui/xine-ui-0.99.10.ebuild |
52 |
@@ -3,7 +3,7 @@ |
53 |
|
54 |
EAPI=6 |
55 |
|
56 |
-inherit gnome2-utils xdg-utils |
57 |
+inherit autotools gnome2-utils xdg-utils |
58 |
|
59 |
DESCRIPTION="Xine movie player" |
60 |
HOMEPAGE="https://xine-project.org/home" |
61 |
@@ -48,10 +48,14 @@ DEPEND="${RDEPEND} |
62 |
) |
63 |
" |
64 |
|
65 |
-PATCHES=( "${FILESDIR}"/${P}-libcaca.patch ) |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}"/${P}-desktop.patch |
68 |
+ "${FILESDIR}"/${P}-libcaca.patch |
69 |
+) |
70 |
|
71 |
src_prepare() { |
72 |
default |
73 |
+ eautoreconf |
74 |
rm misc/xine-bugreport || die |
75 |
} |