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-libs/avidemux-plugins/
Date: Sun, 25 Aug 2019 20:52:16
Message-Id: 1566766255.040229c939f4066298a7825389f7628b29be659d.steils@gentoo
1 commit: 040229c939f4066298a7825389f7628b29be659d
2 Author: Stefan Strogin <steils <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 25 20:43:06 2019 +0000
4 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 25 20:50:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=040229c9
7
8 media-libs/avidemux-plugins: bump version to 2.7.4
9
10 Package-Manager: Portage-2.3.73, Repoman-2.3.17
11 Signed-off-by: Stefan Strogin <steils <AT> gentoo.org>
12
13 media-libs/avidemux-plugins/Manifest | 1 +
14 .../avidemux-plugins/avidemux-plugins-2.7.4.ebuild | 160 +++++++++++++++++++++
15 2 files changed, 161 insertions(+)
16
17 diff --git a/media-libs/avidemux-plugins/Manifest b/media-libs/avidemux-plugins/Manifest
18 index 7e55a202857..4113f7cd25d 100644
19 --- a/media-libs/avidemux-plugins/Manifest
20 +++ b/media-libs/avidemux-plugins/Manifest
21 @@ -1,2 +1,3 @@
22 DIST avidemux-2.7.3.tar.gz 23772654 BLAKE2B f946c267140bc8aebda2ce027ed8cb7c84a98a401255d3e0cdaf7498680e8bd9c78a33c122cb177d397ed2dd6bc3c29d7508578028c2964c2897279bf860b62d SHA512 d7761de1c40de1b824efbcf24173ea738a2e0ba7fa41cefa09e7bac3ec97f3af4b04201e36f9de50ade2b09e394aa99ed1d4907f90bb132f9896e8f1b5e82d7a
23 +DIST avidemux-2.7.4.tar.gz 23815808 BLAKE2B 3a7206f04f568f28dd4d5116c580dd780b057a59e94dd61a2abe5dadfa557291a0c50f917ad1926f9f9a82d01af065c06138f954320e2d9c174fda7583a6b265 SHA512 36d857837cd6a74039a414df16367cd8cbf615173bcc531e57dc0dbfc2e002b1c0c4a80cef73a0d8f25d305deca809af0b5cbcdbad8c311324fa2e64381fd10b
24 DIST avidemux_2.7.0.tar.gz 21474504 BLAKE2B c6e55a0b5220d6d3746fa06162bf11253145fd28f2f6f744702d5e0342fba85e546a28883eb847139eadd34c94037ebc7d68f5576e7505a85288556468d14b96 SHA512 7c92213d3bd2849dbdb5a1aff2acd6da231fd76c561b756fbf4a1d5a41e9705d609d7a35b6ca6b77ceb3bf5138f861cd24ed16d8fcec4fd713f09a2ff07e9015
25
26 diff --git a/media-libs/avidemux-plugins/avidemux-plugins-2.7.4.ebuild b/media-libs/avidemux-plugins/avidemux-plugins-2.7.4.ebuild
27 new file mode 100644
28 index 00000000000..b39fabed71e
29 --- /dev/null
30 +++ b/media-libs/avidemux-plugins/avidemux-plugins-2.7.4.ebuild
31 @@ -0,0 +1,160 @@
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 +PYTHON_COMPAT=( python{2_7,3_6} )
39 +
40 +inherit cmake-utils python-single-r1
41 +
42 +DESCRIPTION="Plugins for the video editor media-video/avidemux"
43 +HOMEPAGE="http://fixounet.free.fr/avidemux"
44 +SRC_URI="https://github.com/mean00/avidemux2/archive/${PV}.tar.gz -> avidemux-${PV}.tar.gz"
45 +
46 +# Multiple licenses because of all the bundled stuff.
47 +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain"
48 +SLOT="2.7"
49 +IUSE="a52 aac aften alsa amr dcaenc debug dts fdk fontconfig fribidi jack lame libsamplerate cpu_flags_x86_mmx nvenc opengl opus oss pulseaudio qt5 truetype twolame vdpau vorbis vpx x264 x265 xv xvid"
50 +KEYWORDS="~amd64 ~x86"
51 +
52 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
53 +
54 +COMMON_DEPEND="${PYTHON_DEPS}
55 + ~media-libs/avidemux-core-${PV}:${SLOT}[vdpau?]
56 + ~media-video/avidemux-${PV}:${SLOT}[opengl?,qt5?]
57 + dev-lang/spidermonkey:0=
58 + dev-libs/libxml2:2
59 + media-libs/a52dec
60 + media-libs/libass:0=
61 + media-libs/libmad
62 + media-libs/libmp4v2
63 + media-libs/libpng:0=
64 + virtual/libiconv
65 + aac? (
66 + media-libs/faac
67 + media-libs/faad2
68 + )
69 + aften? ( media-libs/aften )
70 + alsa? ( media-libs/alsa-lib )
71 + amr? ( media-libs/opencore-amr )
72 + dcaenc? ( media-sound/dcaenc )
73 + dts? ( media-libs/libdca )
74 + fdk? ( media-libs/fdk-aac:0= )
75 + fontconfig? ( media-libs/fontconfig:1.0 )
76 + fribidi? ( dev-libs/fribidi )
77 + jack? (
78 + media-sound/jack-audio-connection-kit
79 + libsamplerate? ( media-libs/libsamplerate )
80 + )
81 + lame? ( media-sound/lame )
82 + nvenc? ( amd64? ( media-video/nvidia_video_sdk ) )
83 + opus? ( media-libs/opus )
84 + pulseaudio? ( media-sound/pulseaudio )
85 + qt5? (
86 + dev-qt/qtcore:5
87 + dev-qt/qtgui:5
88 + dev-qt/qtwidgets:5
89 + )
90 + truetype? ( media-libs/freetype:2 )
91 + twolame? ( media-sound/twolame )
92 + vorbis? ( media-libs/libvorbis )
93 + vpx? ( media-libs/libvpx:0= )
94 + x264? ( media-libs/x264:0= )
95 + x265? ( media-libs/x265:0= )
96 + xv? (
97 + x11-libs/libX11
98 + x11-libs/libXext
99 + x11-libs/libXv
100 + )
101 + xvid? ( media-libs/xvid )
102 +"
103 +DEPEND="${COMMON_DEPEND}
104 + oss? ( virtual/os-headers )
105 +"
106 +RDEPEND="${COMMON_DEPEND}
107 + !<media-libs/avidemux-plugins-${PV}
108 +"
109 +
110 +S="${WORKDIR}/avidemux2-${PV}"
111 +
112 +PATCHES=( "${FILESDIR}"/${PN}-2.6.20-optional-pulse.patch )
113 +
114 +src_prepare() {
115 + default
116 +
117 + # Don't reapply PATCHES during cmake-utils_src_prepare
118 + unset PATCHES
119 +
120 + processes="buildPluginsCommon:avidemux_plugins
121 + buildPluginsCLI:avidemux_plugins"
122 + use qt5 && processes+=" buildPluginsQt4:avidemux_plugins"
123 +
124 + for process in ${processes} ; do
125 + CMAKE_USE_DIR="${S}"/${process#*:} cmake-utils_src_prepare
126 + done
127 +}
128 +
129 +src_configure() {
130 + # See bug 432322.
131 + use x86 && replace-flags -O0 -O1
132 +
133 + for process in ${processes} ; do
134 + local build="${WORKDIR}/${P}_build/${process%%:*}"
135 +
136 + local mycmakeargs=(
137 + -DAVIDEMUX_SOURCE_DIR='${S}'
138 + -DPLUGIN_UI=$(echo ${build/buildPlugins/} | tr '[:lower:]' '[:upper:]')
139 + -DFAAC="$(usex aac)"
140 + -DFAAD="$(usex aac)"
141 + -DALSA="$(usex alsa)"
142 + -DAFTEN="$(usex aften)"
143 + -DDCAENC="$(usex dcaenc)"
144 + -DFDK_AAC="$(usex fdk)"
145 + -DOPENCORE_AMRWB="$(usex amr)"
146 + -DOPENCORE_AMRNB="$(usex amr)"
147 + -DLIBDCA="$(usex dts)"
148 + -DFONTCONFIG="$(usex fontconfig)"
149 + -DJACK="$(usex jack)"
150 + -DLAME="$(usex lame)"
151 + -DNVENC="$(usex nvenc)"
152 + -DOPUS="$(usex opus)"
153 + -DOSS="$(usex oss)"
154 + -DPULSEAUDIOSIMPLE="$(usex pulseaudio)"
155 + -DQT4=OFF
156 + -DFREETYPE2="$(usex truetype)"
157 + -DTWOLAME="$(usex twolame)"
158 + -DX264="$(usex x264)"
159 + -DX265="$(usex x265)"
160 + -DXVIDEO="$(usex xv)"
161 + -DXVID="$(usex xvid)"
162 + -DVDPAU="$(usex vdpau)"
163 + -DVORBIS="$(usex vorbis)"
164 + -DLIBVORBIS="$(usex vorbis)"
165 + -DVPXDEC="$(usex vpx)"
166 + -DUSE_EXTERNAL_LIBA52=yes
167 + -DUSE_EXTERNAL_LIBASS=yes
168 + -DUSE_EXTERNAL_LIBMAD=yes
169 + -DUSE_EXTERNAL_LIBMP4V2=yes
170 + )
171 +
172 + use qt5 && mycmakeargs+=( -DENABLE_QT5=True )
173 + use debug && mycmakeargs+=( -DVERBOSE=1 -DADM_DEBUG=1 )
174 +
175 + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${build}" cmake-utils_src_configure
176 + done
177 +}
178 +
179 +src_compile() {
180 + for process in ${processes} ; do
181 + local build="${WORKDIR}/${P}_build/${process%%:*}"
182 + BUILD_DIR="${build}" cmake-utils_src_compile
183 + done
184 +}
185 +
186 +src_install() {
187 + for process in ${processes} ; do
188 + local build="${WORKDIR}/${P}_build/${process%%:*}"
189 + BUILD_DIR="${build}" cmake-utils_src_install
190 + done
191 +}