Gentoo Archives: gentoo-commits

From: Stefan Strogin <steils@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/avidemux/
Date: Wed, 28 Aug 2019 22:08:36
Message-Id: 1567029981.7e2eb99fb1941a72a2779b954c2c71feb87af107.steils@gentoo
1 commit: 7e2eb99fb1941a72a2779b954c2c71feb87af107
2 Author: Stefan Strogin <steils <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 28 21:51:20 2019 +0000
4 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 28 22:06:21 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e2eb99f
7
8 media-video/avidemux: fix .desktop file
9
10 Reported-by: Toralf Förster <toralf <AT> gentoo.org>
11 Reported-by: Bernd Feige <bernd.feige <AT> gmx.net>
12 Closes: https://bugs.gentoo.org/692898
13 Package-Manager: Portage-2.3.73, Repoman-2.3.17
14 Signed-off-by: Stefan Strogin <steils <AT> gentoo.org>
15
16 ...demux-2.7.4.ebuild => avidemux-2.7.4-r1.ebuild} | 36 +++++++++++-----------
17 1 file changed, 18 insertions(+), 18 deletions(-)
18
19 diff --git a/media-video/avidemux/avidemux-2.7.4.ebuild b/media-video/avidemux/avidemux-2.7.4-r1.ebuild
20 similarity index 74%
21 rename from media-video/avidemux/avidemux-2.7.4.ebuild
22 rename to media-video/avidemux/avidemux-2.7.4-r1.ebuild
23 index 8e047a6a29c..8bf214ecf0b 100644
24 --- a/media-video/avidemux/avidemux-2.7.4.ebuild
25 +++ b/media-video/avidemux/avidemux-2.7.4-r1.ebuild
26 @@ -49,23 +49,22 @@ src_prepare() {
27 CMAKE_USE_DIR="${S}"/${process#*:} cmake-utils_src_prepare
28 done
29
30 - # Fix icon name -> avidemux-2.7
31 - sed -i -e "/^Icon/ s:${PN}\.png:${PN}-${SLOT}:" appImage/${PN}.desktop || \
32 - die "Icon name fix failed."
33 + if use qt5; then
34 + # Fix icon name -> avidemux-2.7
35 + sed -i -e "/^Icon/ s:${PN}\.png:${PN}-${SLOT}:" appImage/${PN}.desktop || \
36 + die "Icon name fix failed."
37
38 - # The desktop file is broken. It uses avidemux2 instead of avidemux3
39 - # so it will actually launch avidemux-2.7 if it is installed.
40 - sed -i -e "/^Exec/ s:${PN}2:${PN}3:" appImage/${PN}.desktop || \
41 - die "Desktop file fix failed."
42 - use qt5 && sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt5:' appImage/${PN}.desktop || \
43 - die "Desktop file fix failed."
44 + # The desktop file is broken. It uses avidemux3_portable instead of avidemux3_qt5
45 + sed -i -re '/^Exec/ s:(avidemux3_)portable:\1qt5:' appImage/${PN}.desktop || \
46 + die "Desktop file fix failed."
47
48 - # QA warnings: missing trailing ';' and 'Application' is deprecated.
49 - sed -i -e 's/Application;AudioVideo/AudioVideo;/g' appImage/${PN}.desktop || \
50 - die "Desktop file fix failed."
51 + # QA warnings: missing trailing ';' and 'Application' is deprecated.
52 + sed -i -e 's/Application;AudioVideo/AudioVideo;/g' appImage/${PN}.desktop || \
53 + die "Desktop file fix failed."
54
55 - # Now rename the desktop file to not collide with 2.6.
56 - mv appImage/${PN}.desktop ${PN}-${SLOT}.desktop || die "Collision rename failed."
57 + # Now rename the desktop file to not collide with 2.6.
58 + mv appImage/${PN}.desktop ${PN}-${SLOT}.desktop || die "Collision rename failed."
59 + fi
60
61 # Remove "Build Option" dialog because it doesn't reflect
62 # what the GUI can or has been built with. (Bug #463628)
63 @@ -122,8 +121,9 @@ src_install() {
64 BUILD_DIR="${build}" cmake-utils_src_install
65 done
66
67 - cd "${S}" || die "Can't enter source folder"
68 - newicon ${PN}_icon.png ${PN}-${SLOT}.png
69 -
70 - use qt5 && domenu ${PN}-${SLOT}.desktop
71 + if use qt5; then
72 + cd "${S}" || die "Can't enter source folder"
73 + newicon ${PN}_icon.png ${PN}-${SLOT}.png
74 + domenu ${PN}-${SLOT}.desktop
75 + fi
76 }