Сравнение avidemux-plugins-2.7.4-r1 с avidemux-plugins-2.8.1-r2

/usr/portage/media-libs/avidemux-plugins/avidemux-plugins-2.8.1-r2.ebuild 2023-10-09 14:52:31.660368405 +0300
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
CMAKE_MAKEFILE_GENERATOR="emake"
7
PYTHON_COMPAT=( python3_7 )
7
PYTHON_COMPAT=( python3_{9..11} )
8 8

  
9
inherit cmake python-single-r1
9
inherit cmake flag-o-matic python-single-r1
10 10

  
11 11
DESCRIPTION="Plugins for the video editor media-video/avidemux"
12 12
HOMEPAGE="http://fixounet.free.fr/avidemux"
13 13
SRC_URI="https://github.com/mean00/avidemux2/archive/${PV}.tar.gz -> avidemux-${PV}.tar.gz"
14 14

  
15 15
# Multiple licenses because of all the bundled stuff.
16
LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain"
16
# See License.txt.
17
LICENSE="GPL-2 MIT PSF-2 LGPL-2 OFL-1.1"
17 18
SLOT="2.7"
18
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"
19
IUSE="a52 aac aften alsa amr dcaenc debug dts fdk fontconfig fribidi jack lame libsamplerate cpu_flags_x86_mmx nvenc opengl opus oss pulseaudio gui truetype twolame vdpau vorbis vpx x264 x265 xv xvid"
19 20
KEYWORDS="~amd64 ~x86"
20 21

  
21 22
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
22 23

  
23
COMMON_DEPEND="${PYTHON_DEPS}
24
	~media-libs/avidemux-core-${PV}:${SLOT}[vdpau?]
25
	~media-video/avidemux-${PV}:${SLOT}[opengl?,qt5?]
26
	dev-lang/spidermonkey:0=
24
# dev-lang/spidermonkey is not required anymore
25
# see https://github.com/mean00/avidemux2/blob/master/avidemux_plugins/ADM_scriptEngines/CMakeLists.txt
26
COMMON_DEPEND="
27
	${PYTHON_DEPS}
28
	~media-libs/avidemux-core-${PV}:${SLOT}[nvenc?,vdpau?]
29
	~media-video/avidemux-${PV}:${SLOT}[opengl?,gui?]
27 30
	dev-libs/libxml2:2
28 31
	media-libs/a52dec
29 32
	media-libs/libass:0=
......
44 47
	fontconfig? ( media-libs/fontconfig:1.0 )
45 48
	fribidi? ( dev-libs/fribidi )
46 49
	jack? (
47
		media-sound/jack-audio-connection-kit
50
		virtual/jack
48 51
		libsamplerate? ( media-libs/libsamplerate )
49 52
	)
50 53
	lame? ( media-sound/lame )
51
	nvenc? ( amd64? ( media-video/nvidia_video_sdk ) )
54
	nvenc? ( amd64? ( media-libs/nv-codec-headers ) )
52 55
	opus? ( media-libs/opus )
53
	pulseaudio? ( media-sound/pulseaudio )
54
	qt5? (
56
	pulseaudio? ( media-libs/libpulse )
57
	gui? (
55 58
		dev-qt/qtcore:5
56 59
		dev-qt/qtgui:5
57 60
		dev-qt/qtwidgets:5
......
69 72
	)
70 73
	xvid? ( media-libs/xvid )
71 74
"
72
DEPEND="${COMMON_DEPEND}
75
DEPEND="
76
	${COMMON_DEPEND}
73 77
	oss? ( virtual/os-headers )
74 78
"
75
RDEPEND="${COMMON_DEPEND}
79
RDEPEND="
80
	${COMMON_DEPEND}
76 81
	!<media-libs/avidemux-plugins-${PV}
77 82
"
78 83

  
79 84
S="${WORKDIR}/avidemux2-${PV}"
80 85

  
81
PATCHES=( "${FILESDIR}"/${PN}-2.6.20-optional-pulse.patch )
86
PATCHES=( "${FILESDIR}/${PN}-2.8.1-optional-pulse.patch" )
82 87

  
83 88
src_prepare() {
84 89
	default
......
88 93

  
89 94
	processes="buildPluginsCommon:avidemux_plugins
90 95
		buildPluginsCLI:avidemux_plugins"
91
	use qt5 && processes+=" buildPluginsQt4:avidemux_plugins"
96
	use gui && processes+=" buildPluginsQt4:avidemux_plugins"
92 97

  
93 98
	for process in ${processes} ; do
94 99
		CMAKE_USE_DIR="${S}"/${process#*:} cmake_src_prepare
......
121 126
			-DOPENGL="$(usex opengl)"
122 127
			-DOPUS="$(usex opus)"
123 128
			-DOSS="$(usex oss)"
124
			-DPULSEAUDIOSIMPLE="$(usex pulseaudio)"
125
			-DQT4=OFF
129
			-DPULSEAUDIO="$(usex pulseaudio)"
130
			-DENABLE_QT4=OFF
131
			-DENABLE_QT6=OFF
126 132
			-DFREETYPE2="$(usex truetype)"
127 133
			-DTWOLAME="$(usex twolame)"
128 134
			-DX264="$(usex x264)"
......
139 145
			-DUSE_EXTERNAL_LIBMP4V2=yes
140 146
		)
141 147

  
142
		use qt5 && mycmakeargs+=( -DENABLE_QT5=True )
148
		use gui && mycmakeargs+=( -DENABLE_QT5=True )
143 149
		use debug && mycmakeargs+=( -DVERBOSE=1 -DADM_DEBUG=1 )
144 150

  
145 151
		CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${build}" cmake_src_configure
Спасибо!