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:16
Message-Id: 1515519061.e499cf4db05f0128b30e7eb528c65ea472dc2c0d.asturm@gentoo
1 commit: e499cf4db05f0128b30e7eb528c65ea472dc2c0d
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 9 17:31:01 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 9 17:31:01 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e499cf4d
7
8 media-video/avidemux: Drop 2.6.0 (r0)
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 media-video/avidemux/avidemux-2.6.20.ebuild | 163 ----------------------------
13 1 file changed, 163 deletions(-)
14
15 diff --git a/media-video/avidemux/avidemux-2.6.20.ebuild b/media-video/avidemux/avidemux-2.6.20.ebuild
16 deleted file mode 100644
17 index 59807f05643..00000000000
18 --- a/media-video/avidemux/avidemux-2.6.20.ebuild
19 +++ /dev/null
20 @@ -1,163 +0,0 @@
21 -# Copyright 1999-2018 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -inherit cmake-utils qmake-utils xdg-utils
27 -
28 -DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks"
29 -HOMEPAGE="http://fixounet.free.fr/${PN}"
30 -
31 -# Multiple licenses because of all the bundled stuff.
32 -LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain"
33 -SLOT="2.6"
34 -IUSE="debug opengl nls nvenc qt5 sdl vaapi vdpau xv"
35 -
36 -if [[ ${PV} == *9999* ]] ; then
37 - MY_P="${P}"
38 - EGIT_REPO_URI="https://github.com/mean00/avidemux2.git"
39 -
40 - inherit git-r3
41 -else
42 - MY_P="${PN}_${PV}"
43 - SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${MY_P}.tar.gz"
44 - KEYWORDS="~amd64 ~x86"
45 -fi
46 -
47 -COMMON_DEPEND="
48 - ~media-libs/avidemux-core-${PV}:${SLOT}[nls?,sdl?,vaapi?,vdpau?,xv?,nvenc?]
49 - opengl? ( virtual/opengl:0 )
50 - qt5? ( dev-qt/qtgui:5 )
51 - vaapi? ( x11-libs/libva:0 )
52 - nvenc? ( amd64? ( media-video/nvidia_video_sdk:0 ) )
53 -"
54 -DEPEND="${COMMON_DEPEND}
55 - qt5? ( dev-qt/linguist-tools:5 )
56 -"
57 -RDEPEND="${COMMON_DEPEND}
58 - nls? ( virtual/libintl:0 )
59 -"
60 -PDEPEND="~media-libs/avidemux-plugins-${PV}:${SLOT}[opengl?,qt5?]"
61 -
62 -S="${WORKDIR}/${MY_P}"
63 -
64 -src_prepare() {
65 - default
66 -
67 - processes="buildCli:avidemux/cli"
68 - if use qt5 ; then
69 - processes+=" buildQt4:avidemux/qt4"
70 - fi
71 -
72 - for process in ${processes} ; do
73 - CMAKE_USE_DIR="${S}"/${process#*:} cmake-utils_src_prepare
74 - done
75 -
76 - # Fix icon name -> avidemux-2.6.png
77 - sed -i -e "/^Icon/ s:${PN}:${PN}-2.6:" ${PN}2.desktop || die "Icon name fix failed."
78 -
79 - # The desktop file is broken. It uses avidemux2 instead of avidemux3
80 - # so it will actually launch avidemux-2.5 if it is installed.
81 - sed -i -e "/^Exec/ s:${PN}2:${PN}3:" ${PN}2.desktop || die "Desktop file fix failed."
82 - sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt'$(usex qt5 5 4)':' ${PN}2.desktop || die "Desktop file fix failed."
83 -
84 - # Fix QA warnings that complain a trailing ; is missing and Application is deprecated.
85 - sed -i -e 's/Application;AudioVideo/AudioVideo;/g' ${PN}2.desktop || die "Desktop file fix failed."
86 -
87 - # Now rename the desktop file to not collide with 2.5.
88 - mv ${PN}2.desktop ${PN}-2.6.desktop || die "Collision rename failed."
89 -
90 - # Remove "Build Option" dialog because it doesn't reflect what the GUI can or has been built with. (Bug #463628)
91 - sed -i -e '/Build Option/d' avidemux/common/ADM_commonUI/myOwnMenu.h || die "Couldn't remove \"Build Option\" dialog."
92 -}
93 -
94 -src_configure() {
95 - # Add lax vector typing for PowerPC.
96 - if use ppc || use ppc64 ; then
97 - append-cflags -flax-vector-conversions
98 - fi
99 -
100 - # See bug 432322.
101 - use x86 && replace-flags -O0 -O1
102 -
103 - # The build relies on an avidemux-core header that uses 'nullptr'
104 - # which is from >=C++11. Let's use the GCC-6 default C++ dialect.
105 - append-cxxflags -std=c++14
106 -
107 - local mycmakeargs=(
108 - -DAVIDEMUX_SOURCE_DIR='${S}'
109 - -DGETTEXT="$(usex nls)"
110 - -DSDL="$(usex sdl)"
111 - -DLIBVA="$(usex vaapi)"
112 - -DVDPAU="$(usex vdpau)"
113 - -DXVIDEO="$(usex xv)"
114 - )
115 -
116 - if use qt5 ; then
117 - mycmakeargs+=(
118 - -DENABLE_QT5="$(usex qt5)"
119 - -DLRELEASE_EXECUTABLE="$(qt5_get_bindir)/lrelease"
120 - )
121 - fi
122 -
123 - if use debug ; then
124 - mycmakeargs+=( -DVERBOSE=1 -DADM_DEBUG=1 )
125 - fi
126 -
127 - for process in ${processes} ; do
128 - local build="${WORKDIR}/${P}_build/${process%%:*}"
129 - CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${build}" cmake-utils_src_configure
130 - done
131 -}
132 -
133 -src_compile() {
134 - for process in ${processes} ; do
135 - local build="${WORKDIR}/${P}_build/${process%%:*}"
136 - BUILD_DIR="${build}" cmake-utils_src_compile
137 - done
138 -}
139 -
140 -src_test() {
141 - for process in ${processes} ; do
142 - local build="${WORKDIR}/${P}_build/${process%%:*}"
143 - BUILD_DIR="${build}" cmake-utils_src_test
144 - done
145 -}
146 -
147 -src_install() {
148 - for process in ${processes} ; do
149 - local build="${WORKDIR}/${P}_build/${process%%:*}"
150 - BUILD_DIR="${build}" cmake-utils_src_install
151 - done
152 -
153 - if [[ -f "${ED}"/usr/bin/avidemux3_cli ]] ; then
154 - fperms +x /usr/bin/avidemux3_cli
155 - fi
156 -
157 - if [[ -f "${ED}"/usr/bin/avidemux3_jobs ]] ; then
158 - fperms +x /usr/bin/avidemux3_jobs
159 - fi
160 -
161 - cd "${S}" || die "Can't enter source folder."
162 - newicon ${PN}_icon.png ${PN}-2.6.png
163 -
164 - if [[ -f "${ED}"/usr/bin/avidemux3_qt5 ]] ; then
165 - fperms +x /usr/bin/avidemux3_qt5
166 - fi
167 -
168 - if [[ -f "${ED}"/usr/bin/avidemux3_jobs_qt5 ]] ; then
169 - fperms +x /usr/bin/avidemux3_jobs_qt5
170 - fi
171 -
172 - if use qt5 ; then
173 - domenu ${PN}-2.6.desktop
174 - fi
175 -}
176 -
177 -pkg_postinst() {
178 - xdg_desktop_database_update
179 -}
180 -
181 -pkg_postrm() {
182 - xdg_desktop_database_update
183 -}