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-libs/mlt/
Date: Mon, 05 Oct 2020 11:22:11
Message-Id: 1601895917.9ee3a9cbcc47fe1b988f9287edb8089d6c9bd1f9.asturm@gentoo
1 commit: 9ee3a9cbcc47fe1b988f9287edb8089d6c9bd1f9
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 5 11:02:16 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 5 11:05:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ee3a9cb
7
8 media-libs/mlt: Drop 6.22.1 (r0)
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 media-libs/mlt/mlt-6.22.1.ebuild | 200 ---------------------------------------
14 1 file changed, 200 deletions(-)
15
16 diff --git a/media-libs/mlt/mlt-6.22.1.ebuild b/media-libs/mlt/mlt-6.22.1.ebuild
17 deleted file mode 100644
18 index 66eac2a219c..00000000000
19 --- a/media-libs/mlt/mlt-6.22.1.ebuild
20 +++ /dev/null
21 @@ -1,200 +0,0 @@
22 -# Copyright 1999-2020 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -
27 -PYTHON_COMPAT=( python3_{6,7,8,9} )
28 -inherit python-single-r1 qmake-utils toolchain-funcs
29 -
30 -DESCRIPTION="Open source multimedia framework for television broadcasting"
31 -HOMEPAGE="https://www.mltframework.org/"
32 -SRC_URI="https://github.com/mltframework/${PN}/releases/download/v${PV}/${P}.tar.gz"
33 -
34 -LICENSE="GPL-3"
35 -SLOT="0"
36 -KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
37 -IUSE="compressed-lumas cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 debug ffmpeg
38 -fftw frei0r gtk jack kdenlive kernel_linux libsamplerate lua melt opencv opengl python
39 -qt5 rtaudio sdl vdpau vidstab xine xml"
40 -# java perl php tcl
41 -
42 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
43 -
44 -SWIG_DEPEND=">=dev-lang/swig-2.0"
45 -# java? ( ${SWIG_DEPEND} >=virtual/jdk-1.5 )
46 -# perl? ( ${SWIG_DEPEND} )
47 -# php? ( ${SWIG_DEPEND} )
48 -# tcl? ( ${SWIG_DEPEND} )
49 -# ruby? ( ${SWIG_DEPEND} )
50 -BDEPEND="
51 - virtual/pkgconfig
52 - compressed-lumas? ( virtual/imagemagick-tools[png] )
53 - lua? ( ${SWIG_DEPEND} virtual/pkgconfig )
54 - python? ( ${SWIG_DEPEND} )
55 -"
56 -#rtaudio will use OSS on non linux OSes
57 -DEPEND="
58 - >=media-libs/libebur128-1.2.2:=
59 - ffmpeg? ( media-video/ffmpeg:0=[vdpau?,-flite] )
60 - fftw? ( sci-libs/fftw:3.0= )
61 - frei0r? ( media-plugins/frei0r-plugins )
62 - gtk? (
63 - media-libs/libexif
64 - x11-libs/pango
65 - )
66 - jack? (
67 - >=dev-libs/libxml2-2.5
68 - media-libs/ladspa-sdk
69 - virtual/jack
70 - )
71 - libsamplerate? ( >=media-libs/libsamplerate-0.1.2 )
72 - lua? ( >=dev-lang/lua-5.1.4-r4:= )
73 - opencv? ( >=media-libs/opencv-3.2.0:= )
74 - opengl? ( media-video/movit )
75 - python? ( ${PYTHON_DEPS} )
76 - qt5? (
77 - dev-qt/qtcore:5
78 - dev-qt/qtgui:5
79 - dev-qt/qtsvg:5
80 - dev-qt/qtwidgets:5
81 - dev-qt/qtxml:5
82 - media-libs/libexif
83 - x11-libs/libX11
84 - )
85 - rtaudio? (
86 - >=media-libs/rtaudio-4.1.2
87 - kernel_linux? ( media-libs/alsa-lib )
88 - )
89 - sdl? (
90 - media-libs/libsdl2[X,opengl,video]
91 - media-libs/sdl2-image
92 - )
93 - vidstab? ( media-libs/vidstab )
94 - xine? ( >=media-libs/xine-lib-1.1.2_pre20060328-r7 )
95 - xml? ( >=dev-libs/libxml2-2.5 )"
96 -# java? ( >=virtual/jre-1.5 )
97 -# perl? ( dev-lang/perl )
98 -# php? ( dev-lang/php )
99 -# ruby? ( ${RUBY_DEPS} )
100 -# sox? ( media-sound/sox )
101 -# tcl? ( dev-lang/tcl:0= )
102 -RDEPEND="${DEPEND}"
103 -
104 -DOCS=( AUTHORS NEWS README docs/{framework,melt,mlt{++,-xml}}.txt )
105 -
106 -PATCHES=(
107 - "${FILESDIR}"/${PN}-6.10.0-swig-underlinking.patch
108 -)
109 -
110 -pkg_setup() {
111 - use python && python-single-r1_pkg_setup
112 -}
113 -
114 -src_prepare() {
115 - default
116 -
117 - # respect CFLAGS LDFLAGS when building shared libraries. Bug #308873
118 - for x in python lua; do
119 - sed -i "/mlt.so/s/ -lmlt++ /& ${CFLAGS} ${LDFLAGS} /" src/swig/$x/build || die
120 - done
121 -
122 - use python && python_fix_shebang src/swig/python
123 -}
124 -
125 -src_configure() {
126 - tc-export CC CXX
127 -
128 - local myconf=(
129 - --enable-gpl
130 - --enable-gpl3
131 - --enable-motion-est
132 - --target-arch=$(tc-arch)
133 - --disable-gtk2
134 - --disable-kde
135 - --disable-sdl
136 - --disable-swfdec
137 - $(use_enable debug)
138 - $(use_enable cpu_flags_x86_sse sse)
139 - $(use_enable cpu_flags_x86_sse2 sse2)
140 - $(use_enable ffmpeg avformat)
141 - $(use_enable fftw plus)
142 - $(use_enable frei0r)
143 - $(use_enable gtk gdk)
144 - $(use_enable jack jackrack)
145 - $(use_enable kdenlive)
146 - $(use_enable libsamplerate resample)
147 - $(use_enable melt)
148 - $(use_enable opencv)
149 - $(use_enable opengl)
150 - $(use_enable qt5 qt)
151 - $(use_enable rtaudio)
152 - $(use_enable sdl sdl2)
153 - $(use_enable vidstab vid.stab )
154 - $(use_enable xine)
155 - $(use_enable xml)
156 - --disable-sox
157 - )
158 - #$(use_enable sox) FIXME
159 -
160 - use compressed-lumas && myconf+=( --luma-compress )
161 - use ffmpeg && myconf+=( --avformat-swscale )
162 - use vdpau && myconf+=( --avformat-vdpau )
163 -
164 - if use qt5 ; then
165 - myconf+=(
166 - --qt-includedir=$(qt5_get_headerdir)
167 - --qt-libdir=$(qt5_get_libdir)
168 - )
169 - fi
170 -
171 - if use amd64 || use x86 ; then
172 - myconf+=( $(use_enable cpu_flags_x86_mmx mmx) )
173 - else
174 - myconf+=( --disable-mmx )
175 - fi
176 -
177 - if ! use melt ; then
178 - sed -i -e "s;src/melt;;" Makefile || die
179 - fi
180 -
181 - # TODO: add swig language bindings
182 - # see also https://www.mltframework.org/twiki/bin/view/MLT/ExtremeMakeover
183 -
184 - local swig_lang=()
185 - # not done: java perl php ruby tcl
186 - for i in lua python ; do
187 - use $i && swig_lang+=( $i )
188 - done
189 - [[ -z "${swig_lang}" ]] && swig_lang=( none )
190 -
191 - econf "${myconf[@]}" --swig-languages="${swig_lang[*]}"
192 -
193 - sed -i -e s/^OPT/#OPT/ config.mak || die
194 -}
195 -
196 -src_install() {
197 - default
198 -
199 - insinto /usr/share/${PN}
200 - doins -r demo
201 -
202 - docinto swig
203 -
204 - # Install SWIG bindings
205 - if use lua; then
206 - cd "${S}"/src/swig/lua || die
207 - exeinto $(pkg-config --variable INSTALL_CMOD lua)
208 - doexe mlt.so
209 - dodoc play.lua
210 - fi
211 -
212 - if use python; then
213 - cd "${S}"/src/swig/python || die
214 - python_domodule mlt.py _mlt.so
215 - chmod +x "${D}$(python_get_sitedir)/_mlt.so" || die
216 - dodoc play.py
217 - python_optimize
218 - fi
219 -
220 - # not done: java perl php ruby tcl
221 -}