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: Wed, 14 Aug 2019 02:24:17
Message-Id: 1565749007.5d9bb5b2019d9756f0c68957121c977f607f45e8.steils@gentoo
1 commit: 5d9bb5b2019d9756f0c68957121c977f607f45e8
2 Author: Stefan Strogin <steils <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 14 01:57:38 2019 +0000
4 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 14 02:16:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d9bb5b2
7
8 media-libs/avidemux-plugins: bump version to 2.7.3
9
10 Bug: https://bugs.gentoo.org/657386
11 Package-Manager: Portage-2.3.71, Repoman-2.3.17
12 Signed-off-by: Stefan Strogin <steils <AT> gentoo.org>
13
14 media-libs/avidemux-plugins/Manifest | 1 +
15 .../avidemux-plugins/avidemux-plugins-2.7.3.ebuild | 165 +++++++++++++++++++++
16 2 files changed, 166 insertions(+)
17
18 diff --git a/media-libs/avidemux-plugins/Manifest b/media-libs/avidemux-plugins/Manifest
19 index 281d961cf75..e9ad4687cc9 100644
20 --- a/media-libs/avidemux-plugins/Manifest
21 +++ b/media-libs/avidemux-plugins/Manifest
22 @@ -1 +1,2 @@
23 +DIST 2.7.3.tar.gz 23772654 BLAKE2B f946c267140bc8aebda2ce027ed8cb7c84a98a401255d3e0cdaf7498680e8bd9c78a33c122cb177d397ed2dd6bc3c29d7508578028c2964c2897279bf860b62d SHA512 d7761de1c40de1b824efbcf24173ea738a2e0ba7fa41cefa09e7bac3ec97f3af4b04201e36f9de50ade2b09e394aa99ed1d4907f90bb132f9896e8f1b5e82d7a
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.3.ebuild b/media-libs/avidemux-plugins/avidemux-plugins-2.7.3.ebuild
27 new file mode 100644
28 index 00000000000..fbe10c0bf2c
29 --- /dev/null
30 +++ b/media-libs/avidemux-plugins/avidemux-plugins-2.7.3.ebuild
31 @@ -0,0 +1,165 @@
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"
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-1.5-r2:0=
58 + dev-libs/libxml2:2
59 + media-libs/a52dec:0
60 + media-libs/libass:0=
61 + media-libs/libmad:0
62 + media-libs/libmp4v2:0
63 + media-libs/libpng:0=
64 + virtual/libiconv:0
65 + aac? (
66 + >=media-libs/faac-1.29.9.2:0
67 + media-libs/faad2:0
68 + )
69 + aften? ( media-libs/aften:0 )
70 + alsa? ( >=media-libs/alsa-lib-1.0.3b-r2:0 )
71 + amr? ( media-libs/opencore-amr:0 )
72 + dcaenc? ( media-sound/dcaenc:0 )
73 + dts? ( media-libs/libdca:0 )
74 + fdk? ( media-libs/fdk-aac:0= )
75 + fontconfig? ( media-libs/fontconfig:1.0 )
76 + fribidi? ( dev-libs/fribidi:0 )
77 + jack? (
78 + media-sound/jack-audio-connection-kit:0
79 + libsamplerate? ( media-libs/libsamplerate:0 )
80 + )
81 + lame? ( media-sound/lame:0 )
82 + nvenc? ( amd64? ( media-video/nvidia_video_sdk:0 ) )
83 + opus? ( media-libs/opus:0 )
84 + pulseaudio? ( media-sound/pulseaudio:0 )
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:0 )
92 + vorbis? ( media-libs/libvorbis:0 )
93 + vpx? ( media-libs/libvpx:0= )
94 + x264? ( media-libs/x264:0= )
95 + x265? ( media-libs/x265:0= )
96 + xv? (
97 + x11-libs/libX11:0
98 + x11-libs/libXext:0
99 + x11-libs/libXv:0
100 + )
101 + xvid? ( media-libs/xvid:0 )
102 +"
103 +DEPEND="${COMMON_DEPEND}
104 + oss? ( virtual/os-headers:0 )
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 + if use qt5 ; then
173 + mycmakeargs+=( -DENABLE_QT5=True )
174 + fi
175 +
176 + if use debug ; then
177 + mycmakeargs+=( -DVERBOSE=1 -DADM_DEBUG=1 )
178 + fi
179 +
180 + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${build}" cmake-utils_src_configure
181 + done
182 +}
183 +
184 +src_compile() {
185 + for process in ${processes} ; do
186 + local build="${WORKDIR}/${P}_build/${process%%:*}"
187 + BUILD_DIR="${build}" cmake-utils_src_compile
188 + done
189 +}
190 +
191 +src_install() {
192 + for process in ${processes} ; do
193 + local build="${WORKDIR}/${P}_build/${process%%:*}"
194 + BUILD_DIR="${build}" cmake-utils_src_install
195 + done
196 +}