Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/avidemux/
Date: Tue, 09 Jan 2018 17:33:18
Message-Id: 1515518888.e6408e70b2daa530fdb49e3d9f62a00eb4a94891.asturm@gentoo
1 commit: e6408e70b2daa530fdb49e3d9f62a00eb4a94891
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 7 23:08:47 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 9 17:28:08 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6408e70
7
8 media-video/avidemux: Sorting, line breaks
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 media-video/avidemux/avidemux-9999.ebuild | 42 ++++++++++++++++++-------------
13 1 file changed, 24 insertions(+), 18 deletions(-)
14
15 diff --git a/media-video/avidemux/avidemux-9999.ebuild b/media-video/avidemux/avidemux-9999.ebuild
16 index 2e985fe5726..6b3b95e51a5 100644
17 --- a/media-video/avidemux/avidemux-9999.ebuild
18 +++ b/media-video/avidemux/avidemux-9999.ebuild
19 @@ -3,26 +3,24 @@
20
21 EAPI=6
22
23 -inherit cmake-utils qmake-utils xdg-utils
24 -
25 -DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks"
26 -HOMEPAGE="http://fixounet.free.fr/${PN}"
27 -
28 -# Multiple licenses because of all the bundled stuff.
29 -LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain"
30 -SLOT="2.6"
31 -IUSE="debug opengl nls nvenc qt5 sdl vaapi vdpau xv"
32 -
33 if [[ ${PV} == *9999* ]] ; then
34 MY_P="${P}"
35 EGIT_REPO_URI="https://github.com/mean00/avidemux2.git"
36 -
37 inherit git-r3
38 else
39 MY_P="${PN}_${PV}"
40 SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${MY_P}.tar.gz"
41 KEYWORDS="~amd64 ~x86"
42 fi
43 +inherit cmake-utils qmake-utils xdg-utils
44 +
45 +DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks"
46 +HOMEPAGE="http://fixounet.free.fr/avidemux"
47 +
48 +# Multiple licenses because of all the bundled stuff.
49 +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain"
50 +SLOT="2.6"
51 +IUSE="debug nls nvenc opengl qt5 sdl vaapi vdpau xv"
52
53 COMMON_DEPEND="
54 ~media-libs/avidemux-core-${PV}:${SLOT}[nls?,sdl?,vaapi?,vdpau?,xv?,nvenc?]
55 @@ -54,21 +52,29 @@ src_prepare() {
56 done
57
58 # Fix icon name -> avidemux-2.6.png
59 - sed -i -e "/^Icon/ s:${PN}:${PN}-2.6:" ${PN}2.desktop || die "Icon name fix failed."
60 + sed -i -e "/^Icon/ s:${PN}:${PN}-2.6:" ${PN}2.desktop || \
61 + die "Icon name fix failed."
62
63 # The desktop file is broken. It uses avidemux2 instead of avidemux3
64 # so it will actually launch avidemux-2.5 if it is installed.
65 - sed -i -e "/^Exec/ s:${PN}2:${PN}3:" ${PN}2.desktop || die "Desktop file fix failed."
66 - sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt'$(usex qt5 5 4)':' ${PN}2.desktop || die "Desktop file fix failed."
67 + sed -i -e "/^Exec/ s:${PN}2:${PN}3:" ${PN}2.desktop || \
68 + die "Desktop file fix failed."
69 + if use qt5; then
70 + sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt5:' ${PN}2.desktop || \
71 + die "Desktop file fix failed."
72 + fi
73
74 - # Fix QA warnings that complain a trailing ; is missing and Application is deprecated.
75 - sed -i -e 's/Application;AudioVideo/AudioVideo;/g' ${PN}2.desktop || die "Desktop file fix failed."
76 + # QA warnings: missing trailing ';' and 'Application' is deprecated.
77 + sed -i -e 's/Application;AudioVideo/AudioVideo;/g' ${PN}2.desktop || \
78 + die "Desktop file fix failed."
79
80 # Now rename the desktop file to not collide with 2.5.
81 mv ${PN}2.desktop ${PN}-2.6.desktop || die "Collision rename failed."
82
83 - # Remove "Build Option" dialog because it doesn't reflect what the GUI can or has been built with. (Bug #463628)
84 - sed -i -e '/Build Option/d' avidemux/common/ADM_commonUI/myOwnMenu.h || die "Couldn't remove \"Build Option\" dialog."
85 + # Remove "Build Option" dialog because it doesn't reflect
86 + # what the GUI can or has been built with. (Bug #463628)
87 + sed -i -e '/Build Option/d' avidemux/common/ADM_commonUI/myOwnMenu.h || \
88 + die "Couldn't remove \"Build Option\" dialog."
89 }
90
91 src_configure() {