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/files/, media-video/avidemux/
Date: Fri, 07 Aug 2020 23:24:53
Message-Id: 1596842606.70b588220d72abdea37ad93d104bbe364c51a934.asturm@gentoo
1 commit: 70b588220d72abdea37ad93d104bbe364c51a934
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 7 20:23:38 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 7 23:23:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70b58822
7
8 media-video/avidemux: Drop 2.7.3
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 media-video/avidemux/Manifest | 1 -
14 media-video/avidemux/avidemux-2.7.3.ebuild | 141 ---------------------
15 .../avidemux/files/avidemux-2.7.3-desktop.patch | 20 ---
16 3 files changed, 162 deletions(-)
17
18 diff --git a/media-video/avidemux/Manifest b/media-video/avidemux/Manifest
19 index 7d6012ce4fc..81a3ad8e8a8 100644
20 --- a/media-video/avidemux/Manifest
21 +++ b/media-video/avidemux/Manifest
22 @@ -1,2 +1 @@
23 -DIST avidemux-2.7.3.tar.gz 23772654 BLAKE2B f946c267140bc8aebda2ce027ed8cb7c84a98a401255d3e0cdaf7498680e8bd9c78a33c122cb177d397ed2dd6bc3c29d7508578028c2964c2897279bf860b62d SHA512 d7761de1c40de1b824efbcf24173ea738a2e0ba7fa41cefa09e7bac3ec97f3af4b04201e36f9de50ade2b09e394aa99ed1d4907f90bb132f9896e8f1b5e82d7a
24 DIST avidemux-2.7.4.tar.gz 23815808 BLAKE2B 3a7206f04f568f28dd4d5116c580dd780b057a59e94dd61a2abe5dadfa557291a0c50f917ad1926f9f9a82d01af065c06138f954320e2d9c174fda7583a6b265 SHA512 36d857837cd6a74039a414df16367cd8cbf615173bcc531e57dc0dbfc2e002b1c0c4a80cef73a0d8f25d305deca809af0b5cbcdbad8c311324fa2e64381fd10b
25
26 diff --git a/media-video/avidemux/avidemux-2.7.3.ebuild b/media-video/avidemux/avidemux-2.7.3.ebuild
27 deleted file mode 100644
28 index 5b4a9629c09..00000000000
29 --- a/media-video/avidemux/avidemux-2.7.3.ebuild
30 +++ /dev/null
31 @@ -1,141 +0,0 @@
32 -# Copyright 1999-2019 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -CMAKE_MAKEFILE_GENERATOR="emake"
38 -
39 -inherit cmake desktop qmake-utils xdg
40 -
41 -DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks"
42 -HOMEPAGE="http://fixounet.free.fr/avidemux"
43 -SRC_URI="https://github.com/mean00/avidemux2/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 -
45 -# Multiple licenses because of all the bundled stuff.
46 -LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain"
47 -SLOT="2.7"
48 -KEYWORDS="~amd64 ~x86"
49 -IUSE="debug nls nvenc opengl qt5 sdl vaapi vdpau xv"
50 -
51 -COMMON_DEPEND="
52 - ~media-libs/avidemux-core-${PV}:${SLOT}[nls?,sdl?,vaapi?,vdpau?,xv?,nvenc?]
53 - nvenc? ( amd64? ( media-video/nvidia_video_sdk:0 ) )
54 - opengl? ( virtual/opengl:0 )
55 - qt5? (
56 - dev-qt/qtcore:5
57 - dev-qt/qtgui:5
58 - dev-qt/qtnetwork:5
59 - dev-qt/qtopengl:5
60 - dev-qt/qtwidgets:5
61 - )
62 - vaapi? ( x11-libs/libva:0= )
63 -"
64 -DEPEND="${COMMON_DEPEND}
65 - qt5? ( dev-qt/linguist-tools:5 )
66 -"
67 -RDEPEND="${COMMON_DEPEND}
68 - nls? ( virtual/libintl:0 )
69 - !<media-video/avidemux-${PV}
70 -"
71 -PDEPEND="~media-libs/avidemux-plugins-${PV}:${SLOT}[opengl?,qt5?]"
72 -
73 -S="${WORKDIR}/avidemux2-${PV}"
74 -
75 -src_prepare() {
76 - eapply "${FILESDIR}"/${P}-desktop.patch
77 -
78 - processes="buildCli:avidemux/cli"
79 - if use qt5 ; then
80 - processes+=" buildQt4:avidemux/qt4"
81 - fi
82 -
83 - for process in ${processes} ; do
84 - CMAKE_USE_DIR="${S}"/${process#*:} cmake_src_prepare
85 - done
86 -
87 - # Fix icon name -> avidemux-2.7
88 - sed -i -e "/^Icon/ s:${PN}\.png:${PN}-${SLOT}:" appImage/${PN}.desktop || \
89 - die "Icon name fix failed."
90 -
91 - # The desktop file is broken. It uses avidemux2 instead of avidemux3
92 - # so it will actually launch avidemux-2.7 if it is installed.
93 - sed -i -e "/^Exec/ s:${PN}2:${PN}3:" appImage/${PN}.desktop || \
94 - die "Desktop file fix failed."
95 - if use qt5; then
96 - sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt5:' appImage/${PN}.desktop || \
97 - die "Desktop file fix failed."
98 - fi
99 -
100 - # QA warnings: missing trailing ';' and 'Application' is deprecated.
101 - sed -i -e 's/Application;AudioVideo/AudioVideo;/g' appImage/${PN}.desktop || \
102 - die "Desktop file fix failed."
103 -
104 - # Now rename the desktop file to not collide with 2.6.
105 - mv appImage/${PN}.desktop ${PN}-${SLOT}.desktop || die "Collision rename failed."
106 -
107 - # Remove "Build Option" dialog because it doesn't reflect
108 - # what the GUI can or has been built with. (Bug #463628)
109 - sed -i -e '/Build Option/d' avidemux/common/ADM_commonUI/myOwnMenu.h || \
110 - die "Couldn't remove \"Build Option\" dialog."
111 -}
112 -
113 -src_configure() {
114 - # See bug 432322.
115 - use x86 && replace-flags -O0 -O1
116 -
117 - # The build relies on an avidemux-core header that uses 'nullptr'
118 - # which is from >=C++11. Let's use the GCC-6 default C++ dialect.
119 - append-cxxflags -std=c++14
120 -
121 - local mycmakeargs=(
122 - -DGETTEXT="$(usex nls)"
123 - -DSDL="$(usex sdl)"
124 - -DLibVA="$(usex vaapi)"
125 - -DVDPAU="$(usex vdpau)"
126 - -DXVIDEO="$(usex xv)"
127 - )
128 -
129 - if use qt5 ; then
130 - mycmakeargs+=(
131 - -DENABLE_QT5="$(usex qt5)"
132 - -DLRELEASE_EXECUTABLE="$(qt5_get_bindir)/lrelease"
133 - )
134 - fi
135 -
136 - if use debug ; then
137 - mycmakeargs+=( -DVERBOSE=1 -DADM_DEBUG=1 )
138 - fi
139 -
140 - for process in ${processes} ; do
141 - local build="${WORKDIR}/${P}_build/${process%%:*}"
142 - CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${build}" cmake_src_configure
143 - done
144 -}
145 -
146 -src_compile() {
147 - for process in ${processes} ; do
148 - local build="${WORKDIR}/${P}_build/${process%%:*}"
149 - BUILD_DIR="${build}" cmake_src_compile
150 - done
151 -}
152 -
153 -src_test() {
154 - for process in ${processes} ; do
155 - local build="${WORKDIR}/${P}_build/${process%%:*}"
156 - BUILD_DIR="${build}" cmake_src_test
157 - done
158 -}
159 -
160 -src_install() {
161 - for process in ${processes} ; do
162 - local build="${WORKDIR}/${P}_build/${process%%:*}"
163 - BUILD_DIR="${build}" cmake_src_install
164 - done
165 -
166 - cd "${S}" || die "Can't enter source folder."
167 - newicon ${PN}_icon.png ${PN}-${SLOT}.png
168 -
169 - if use qt5 ; then
170 - domenu ${PN}-${SLOT}.desktop
171 - fi
172 -}
173
174 diff --git a/media-video/avidemux/files/avidemux-2.7.3-desktop.patch b/media-video/avidemux/files/avidemux-2.7.3-desktop.patch
175 deleted file mode 100644
176 index 51416d27495..00000000000
177 --- a/media-video/avidemux/files/avidemux-2.7.3-desktop.patch
178 +++ /dev/null
179 @@ -1,20 +0,0 @@
180 -From 4ea6b2e4199eddef7748de4fd58c1f4d8bfbedd2 Mon Sep 17 00:00:00 2001
181 -From: eumagga0x2a <eumagga0x2a@××××××××××××××××××××.com>
182 -Date: Sun, 4 Aug 2019 15:34:19 +0800
183 -Subject: [PATCH] [appImage] Add missing Type entry to the .desktop file
184 -
185 -Upstream-Status: Accepted
186 -[https://github.com/mean00/avidemux2/commit/4ea6b2e4199eddef7748de4fd58c1f4d8bfbedd2]
187 ----
188 - appImage/avidemux.desktop | 1 +
189 - 1 file changed, 1 insertion(+)
190 -
191 -diff --git a/appImage/avidemux.desktop b/appImage/avidemux.desktop
192 -index 3006e4335..d017ff309 100644
193 ---- a/appImage/avidemux.desktop
194 -+++ b/appImage/avidemux.desktop
195 -@@ -2,3 +2,4 @@
196 - Name=AVIDEMUX
197 - Exec=avidemux3_portable
198 - Icon=avidemux.png
199 -+Type=Application