1 |
commit: 841bd92580e87739852b51a4b2c0357a64366e17 |
2 |
Author: Marco Scardovi <marco <AT> scardovi <DOT> com> |
3 |
AuthorDate: Sun Jun 20 18:20:25 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 7 00:01:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=841bd925 |
7 |
|
8 |
media-libs/avidemux-plugins: bump to 2.7.8 |
9 |
|
10 |
Drop spidermonkey as it isn't required anymore. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/744859 |
13 |
Closes: https://bugs.gentoo.org/777909 |
14 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
15 |
Signed-off-by: Marco Scardovi <marco <AT> scardovi.com> |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
media-libs/avidemux-plugins/Manifest | 1 + |
19 |
.../avidemux-plugins/avidemux-plugins-2.7.8.ebuild | 165 +++++++++++++++++++++ |
20 |
2 files changed, 166 insertions(+) |
21 |
|
22 |
diff --git a/media-libs/avidemux-plugins/Manifest b/media-libs/avidemux-plugins/Manifest |
23 |
index d9b9b78a2a0..9fc07834baa 100644 |
24 |
--- a/media-libs/avidemux-plugins/Manifest |
25 |
+++ b/media-libs/avidemux-plugins/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST avidemux-2.7.6.tar.gz 21963753 BLAKE2B 6ca343f90c37844ebfd61123badccefb7327cbf500723c031257cf26500a5b6d98955568c2a9c0d182af68f162e878459a51e6049485937f9b01b4439b32e5e0 SHA512 bc60c733168d40d5b39cc7dd1f74b3f1315e9727302478ef1621e18748bad3400bcfd4d5199862c3093ad9df51385b6b2a96f0f8fedf9bf1c00060327545fb0f |
28 |
+DIST avidemux-2.7.8.tar.gz 22080267 BLAKE2B a1e56856f44d56afac6ea4015f206a3f9301c025b3c8da1528165bd4c139ccc971074ac21aa05b9b3dfd6d514eabcbb375e671c8df9c9e5cae74a0a6597577c4 SHA512 6cd5527ab34517a07bf73e46d01f15b7ff023ff34ed70ee54f1d7dbfb6cf57364a323b4ecb89bb9aadeb9bc05473aacb40d8c4eecc522840a3c1c4b3a8756d82 |
29 |
|
30 |
diff --git a/media-libs/avidemux-plugins/avidemux-plugins-2.7.8.ebuild b/media-libs/avidemux-plugins/avidemux-plugins-2.7.8.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..64a8542f194 |
33 |
--- /dev/null |
34 |
+++ b/media-libs/avidemux-plugins/avidemux-plugins-2.7.8.ebuild |
35 |
@@ -0,0 +1,165 @@ |
36 |
+# Copyright 1999-2021 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+CMAKE_MAKEFILE_GENERATOR="emake" |
42 |
+PYTHON_COMPAT=( python3_{8..10} ) |
43 |
+ |
44 |
+inherit cmake flag-o-matic python-single-r1 |
45 |
+ |
46 |
+DESCRIPTION="Plugins for the video editor media-video/avidemux" |
47 |
+HOMEPAGE="http://fixounet.free.fr/avidemux" |
48 |
+SRC_URI="https://github.com/mean00/avidemux2/archive/${PV}.tar.gz -> avidemux-${PV}.tar.gz" |
49 |
+ |
50 |
+# Multiple licenses because of all the bundled stuff. |
51 |
+LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" |
52 |
+SLOT="2.7" |
53 |
+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" |
54 |
+KEYWORDS="~amd64 ~x86" |
55 |
+ |
56 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
57 |
+ |
58 |
+# dev-lang/spidermonkey is not required anymore |
59 |
+# see https://github.com/mean00/avidemux2/blob/master/avidemux_plugins/ADM_scriptEngines/CMakeLists.txt |
60 |
+COMMON_DEPEND=" |
61 |
+ ${PYTHON_DEPS} |
62 |
+ ~media-libs/avidemux-core-${PV}:${SLOT}[vdpau?] |
63 |
+ ~media-video/avidemux-${PV}:${SLOT}[opengl?,qt5?] |
64 |
+ dev-libs/libxml2:2 |
65 |
+ media-libs/a52dec |
66 |
+ media-libs/libass:0= |
67 |
+ media-libs/libmad |
68 |
+ media-libs/libmp4v2 |
69 |
+ media-libs/libpng:0= |
70 |
+ virtual/libiconv |
71 |
+ aac? ( |
72 |
+ media-libs/faac |
73 |
+ media-libs/faad2 |
74 |
+ ) |
75 |
+ aften? ( media-libs/aften ) |
76 |
+ alsa? ( media-libs/alsa-lib ) |
77 |
+ amr? ( media-libs/opencore-amr ) |
78 |
+ dcaenc? ( media-sound/dcaenc ) |
79 |
+ dts? ( media-libs/libdca ) |
80 |
+ fdk? ( media-libs/fdk-aac:0= ) |
81 |
+ fontconfig? ( media-libs/fontconfig:1.0 ) |
82 |
+ fribidi? ( dev-libs/fribidi ) |
83 |
+ jack? ( |
84 |
+ virtual/jack |
85 |
+ libsamplerate? ( media-libs/libsamplerate ) |
86 |
+ ) |
87 |
+ lame? ( media-sound/lame ) |
88 |
+ nvenc? ( amd64? ( media-video/nvidia_video_sdk ) ) |
89 |
+ opus? ( media-libs/opus ) |
90 |
+ pulseaudio? ( media-sound/pulseaudio ) |
91 |
+ qt5? ( |
92 |
+ dev-qt/qtcore:5 |
93 |
+ dev-qt/qtgui:5 |
94 |
+ dev-qt/qtwidgets:5 |
95 |
+ ) |
96 |
+ truetype? ( media-libs/freetype:2 ) |
97 |
+ twolame? ( media-sound/twolame ) |
98 |
+ vorbis? ( media-libs/libvorbis ) |
99 |
+ vpx? ( media-libs/libvpx:0= ) |
100 |
+ x264? ( media-libs/x264:0= ) |
101 |
+ x265? ( media-libs/x265:0= ) |
102 |
+ xv? ( |
103 |
+ x11-libs/libX11 |
104 |
+ x11-libs/libXext |
105 |
+ x11-libs/libXv |
106 |
+ ) |
107 |
+ xvid? ( media-libs/xvid ) |
108 |
+" |
109 |
+DEPEND=" |
110 |
+ ${COMMON_DEPEND} |
111 |
+ oss? ( virtual/os-headers ) |
112 |
+" |
113 |
+RDEPEND=" |
114 |
+ ${COMMON_DEPEND} |
115 |
+ !<media-libs/avidemux-plugins-${PV} |
116 |
+" |
117 |
+ |
118 |
+S="${WORKDIR}/avidemux2-${PV}" |
119 |
+ |
120 |
+PATCHES=( "${FILESDIR}/${PN}-2.6.20-optional-pulse.patch" ) |
121 |
+ |
122 |
+src_prepare() { |
123 |
+ default |
124 |
+ |
125 |
+ # Don't reapply PATCHES during cmake_src_prepare |
126 |
+ unset PATCHES |
127 |
+ |
128 |
+ processes="buildPluginsCommon:avidemux_plugins |
129 |
+ buildPluginsCLI:avidemux_plugins" |
130 |
+ use qt5 && processes+=" buildPluginsQt4:avidemux_plugins" |
131 |
+ |
132 |
+ for process in ${processes} ; do |
133 |
+ CMAKE_USE_DIR="${S}"/${process#*:} cmake_src_prepare |
134 |
+ done |
135 |
+} |
136 |
+ |
137 |
+src_configure() { |
138 |
+ # See bug 432322. |
139 |
+ use x86 && replace-flags -O0 -O1 |
140 |
+ |
141 |
+ for process in ${processes} ; do |
142 |
+ local build="${WORKDIR}/${P}_build/${process%%:*}" |
143 |
+ |
144 |
+ local mycmakeargs=( |
145 |
+ -DAVIDEMUX_SOURCE_DIR='${S}' |
146 |
+ -DPLUGIN_UI=$(echo ${build/buildPlugins/} | tr '[:lower:]' '[:upper:]') |
147 |
+ -DFAAC="$(usex aac)" |
148 |
+ -DFAAD="$(usex aac)" |
149 |
+ -DALSA="$(usex alsa)" |
150 |
+ -DAFTEN="$(usex aften)" |
151 |
+ -DDCAENC="$(usex dcaenc)" |
152 |
+ -DFDK_AAC="$(usex fdk)" |
153 |
+ -DOPENCORE_AMRWB="$(usex amr)" |
154 |
+ -DOPENCORE_AMRNB="$(usex amr)" |
155 |
+ -DLIBDCA="$(usex dts)" |
156 |
+ -DFONTCONFIG="$(usex fontconfig)" |
157 |
+ -DJACK="$(usex jack)" |
158 |
+ -DLAME="$(usex lame)" |
159 |
+ -DNVENC="$(usex nvenc)" |
160 |
+ -DOPENGL="$(usex opengl)" |
161 |
+ -DOPUS="$(usex opus)" |
162 |
+ -DOSS="$(usex oss)" |
163 |
+ -DPULSEAUDIOSIMPLE="$(usex pulseaudio)" |
164 |
+ -DQT4=OFF |
165 |
+ -DFREETYPE2="$(usex truetype)" |
166 |
+ -DTWOLAME="$(usex twolame)" |
167 |
+ -DX264="$(usex x264)" |
168 |
+ -DX265="$(usex x265)" |
169 |
+ -DXVIDEO="$(usex xv)" |
170 |
+ -DXVID="$(usex xvid)" |
171 |
+ -DVDPAU="$(usex vdpau)" |
172 |
+ -DVORBIS="$(usex vorbis)" |
173 |
+ -DLIBVORBIS="$(usex vorbis)" |
174 |
+ -DVPXDEC="$(usex vpx)" |
175 |
+ -DUSE_EXTERNAL_LIBA52=yes |
176 |
+ -DUSE_EXTERNAL_LIBASS=yes |
177 |
+ -DUSE_EXTERNAL_LIBMAD=yes |
178 |
+ -DUSE_EXTERNAL_LIBMP4V2=yes |
179 |
+ ) |
180 |
+ |
181 |
+ use qt5 && mycmakeargs+=( -DENABLE_QT5=True ) |
182 |
+ use debug && mycmakeargs+=( -DVERBOSE=1 -DADM_DEBUG=1 ) |
183 |
+ |
184 |
+ CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${build}" cmake_src_configure |
185 |
+ done |
186 |
+} |
187 |
+ |
188 |
+src_compile() { |
189 |
+ for process in ${processes} ; do |
190 |
+ local build="${WORKDIR}/${P}_build/${process%%:*}" |
191 |
+ BUILD_DIR="${build}" cmake_src_compile |
192 |
+ done |
193 |
+} |
194 |
+ |
195 |
+src_install() { |
196 |
+ for process in ${processes} ; do |
197 |
+ local build="${WORKDIR}/${P}_build/${process%%:*}" |
198 |
+ BUILD_DIR="${build}" cmake_src_install |
199 |
+ done |
200 |
+} |