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: Tue, 31 Oct 2017 18:35:24
Message-Id: 1509474857.555ca5d46ef8103bbe55efd15ab93821a8f0c7f4.asturm@gentoo
1 commit: 555ca5d46ef8103bbe55efd15ab93821a8f0c7f4
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 31 18:34:17 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 31 18:34:17 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=555ca5d4
7
8 media-libs/mlt: Drop old
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.4
11
12 media-libs/mlt/mlt-6.4.1-r3.ebuild | 222 -------------------------------------
13 1 file changed, 222 deletions(-)
14
15 diff --git a/media-libs/mlt/mlt-6.4.1-r3.ebuild b/media-libs/mlt/mlt-6.4.1-r3.ebuild
16 deleted file mode 100644
17 index 326ab2493b7..00000000000
18 --- a/media-libs/mlt/mlt-6.4.1-r3.ebuild
19 +++ /dev/null
20 @@ -1,222 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -PYTHON_COMPAT=( python2_7 )
26 -# this ebuild currently only supports installing ruby bindings for a single ruby version
27 -# so USE_RUBY must contain only a single value (the latest stable) as the ebuild calls
28 -# /usr/bin/${USE_RUBY} directly
29 -USE_RUBY="ruby22"
30 -inherit eutils flag-o-matic multilib python-single-r1 ruby-single toolchain-funcs
31 -
32 -DESCRIPTION="Open source multimedia framework for television broadcasting"
33 -HOMEPAGE="https://www.mltframework.org/"
34 -SRC_URI="https://github.com/mltframework/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
35 -
36 -LICENSE="GPL-3"
37 -SLOT="0"
38 -KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
39 -IUSE="compressed-lumas cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 debug ffmpeg fftw frei0r
40 -gtk jack kdenlive libav libsamplerate lua melt opencv opengl python qt5 rtaudio ruby sdl vdpau xine xml"
41 -# java perl php tcl vidstab
42 -IUSE="${IUSE} kernel_linux"
43 -
44 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
45 -
46 -#rtaudio will use OSS on non linux OSes
47 -COMMON_DEPEND="
48 - >=media-libs/libebur128-1.2.2
49 - ffmpeg? (
50 - libav? ( media-video/libav:0=[vdpau?] )
51 - !libav? ( media-video/ffmpeg:0=[vdpau?] )
52 - )
53 - fftw? ( sci-libs/fftw:3.0= )
54 - frei0r? ( media-plugins/frei0r-plugins )
55 - gtk? (
56 - media-libs/libexif
57 - x11-libs/gtk+:2
58 - x11-libs/pango
59 - )
60 - jack? (
61 - >=dev-libs/libxml2-2.5
62 - media-libs/ladspa-sdk
63 - >=media-sound/jack-audio-connection-kit-0.121.3
64 - )
65 - libsamplerate? ( >=media-libs/libsamplerate-0.1.2 )
66 - lua? ( >=dev-lang/lua-5.1.4-r4:= )
67 - opencv? ( >=media-libs/opencv-3.1.0:= )
68 - opengl? ( media-video/movit )
69 - python? ( ${PYTHON_DEPS} )
70 - qt5? (
71 - dev-qt/qtcore:5
72 - dev-qt/qtgui:5
73 - dev-qt/qtsvg:5
74 - dev-qt/qtwidgets:5
75 - dev-qt/qtxml:5
76 - media-libs/libexif
77 - x11-libs/libX11
78 - opengl? ( dev-qt/qtopengl:5 )
79 - )
80 - rtaudio? (
81 - media-libs/rtaudio
82 - kernel_linux? ( media-libs/alsa-lib )
83 - )
84 - ruby? ( ${RUBY_DEPS} )
85 - sdl? (
86 - >=media-libs/libsdl-1.2.10[X,opengl,video]
87 - >=media-libs/sdl-image-1.2.4
88 - )
89 - xine? ( >=media-libs/xine-lib-1.1.2_pre20060328-r7 )
90 - xml? ( >=dev-libs/libxml2-2.5 )"
91 -# java? ( >=virtual/jre-1.5 )
92 -# perl? ( dev-lang/perl )
93 -# php? ( dev-lang/php )
94 -# sox? ( media-sound/sox )
95 -# tcl? ( dev-lang/tcl:0= )
96 -# vidstab? ( media-libs/libvidstab )
97 -SWIG_DEPEND=">=dev-lang/swig-2.0"
98 -DEPEND="${COMMON_DEPEND}
99 - virtual/pkgconfig
100 - compressed-lumas? ( virtual/imagemagick-tools[png] )
101 - lua? ( ${SWIG_DEPEND} virtual/pkgconfig )
102 - python? ( ${SWIG_DEPEND} )
103 - ruby? ( ${SWIG_DEPEND} )"
104 -# java? ( ${SWIG_DEPEND} >=virtual/jdk-1.5 )
105 -# perl? ( ${SWIG_DEPEND} )
106 -# php? ( ${SWIG_DEPEND} )
107 -# tcl? ( ${SWIG_DEPEND} )
108 -RDEPEND="${COMMON_DEPEND}
109 - !media-libs/mlt++
110 -"
111 -
112 -PATCHES=(
113 - "${FILESDIR}"/${PN}-6.2.0-ruby-link.patch
114 - "${FILESDIR}"/${P}-libebur128-unbundle.patch
115 - "${FILESDIR}"/${P}-opencv-3.3.patch
116 -)
117 -
118 -pkg_setup() {
119 - use python && python-single-r1_pkg_setup
120 -}
121 -
122 -src_prepare() {
123 - default
124 -
125 - # respect CFLAGS LDFLAGS when building shared libraries. Bug #308873
126 - for x in python lua; do
127 - sed -i "/mlt.so/s: -lmlt++ :& ${CFLAGS} ${LDFLAGS} :" src/swig/$x/build || die
128 - done
129 - sed -i "/^LDFLAGS/s: += :& ${LDFLAGS} :" src/swig/ruby/build || die
130 -
131 - sed -i -e "s/env ruby/${USE_RUBY}/" src/swig/ruby/* || die
132 -}
133 -
134 -src_configure() {
135 - tc-export CC CXX
136 -
137 - # bug 589848
138 - append-cxxflags -std=c++11
139 -
140 - local myconf="--enable-gpl
141 - --enable-gpl3
142 - --enable-motion-est
143 - --target-arch=$(tc-arch)
144 - --disable-kde
145 - --disable-swfdec
146 - $(use_enable debug)
147 - $(use compressed-lumas && echo ' --luma-compress')
148 - $(use_enable cpu_flags_x86_sse sse)
149 - $(use_enable cpu_flags_x86_sse2 sse2)
150 - $(use_enable gtk gtk2)
151 - $(use_enable sdl)
152 - $(use_enable jack jackrack)
153 - $(use_enable ffmpeg avformat)
154 - $(use ffmpeg && echo ' --avformat-swscale')
155 - $(use_enable fftw plus)
156 - $(use_enable frei0r)
157 - $(use_enable melt)
158 - $(use_enable opencv)
159 - $(use_enable opengl)
160 - $(use_enable libsamplerate resample)
161 - $(use_enable rtaudio)
162 - $(use vdpau && echo ' --avformat-vdpau')
163 - $(use_enable xml)
164 - $(use_enable xine)
165 - $(use_enable kdenlive)
166 - --disable-sox"
167 - #$(use_enable sox) FIXME
168 -
169 - if use qt5 ; then
170 - myconf+=" --enable-qt
171 - --qt-includedir=$(pkg-config Qt5Core --variable=includedir)
172 - --qt-libdir=$(pkg-config Qt5Core --variable=libdir)"
173 - else
174 - myconf+=" --disable-qt"
175 - fi
176 -
177 - if use x86 || use amd64 ; then
178 - myconf+=" $(use_enable cpu_flags_x86_mmx mmx)"
179 - else
180 - myconf+=" --disable-mmx"
181 - fi
182 -
183 - if ! use melt; then
184 - sed -i -e "s;src/melt;;" Makefile || die
185 - fi
186 -
187 - # TODO: add swig language bindings
188 - # see also https://www.mltframework.org/twiki/bin/view/MLT/ExtremeMakeover
189 -
190 - local swig_lang
191 - # TODO: java perl php tcl
192 - for i in lua python ruby ; do
193 - use $i && swig_lang="${swig_lang} $i"
194 - done
195 - [ -z "${swig_lang}" ] && swig_lang="none"
196 -
197 - econf ${myconf} --swig-languages="${swig_lang}"
198 -
199 - sed -i -e s/^OPT/#OPT/ "${S}/config.mak" || die
200 - if use qt5 ; then
201 - if ! use opengl ; then
202 - sed -i -e "/^USE_QT_OPENGL/ s/^/#/" "${S}/src/modules/qt/config.mak" || die
203 - fi
204 - fi
205 -}
206 -
207 -src_install() {
208 - emake DESTDIR="${D}" install
209 - dodoc AUTHORS ChangeLog NEWS README docs/*.txt
210 -
211 - dodir /usr/share/${PN}
212 - insinto /usr/share/${PN}
213 - doins -r demo
214 -
215 - docinto swig
216 -
217 - # Install SWIG bindings
218 - if use lua; then
219 - cd "${S}"/src/swig/lua || die
220 - exeinto $(pkg-config --variable INSTALL_CMOD lua)
221 - doexe mlt.so
222 - dodoc play.lua
223 - fi
224 -
225 - if use python; then
226 - cd "${S}"/src/swig/python || die
227 - insinto $(python_get_sitedir)
228 - doins mlt.py
229 - exeinto $(python_get_sitedir)
230 - doexe _mlt.so
231 - dodoc play.py
232 - python_optimize
233 - fi
234 -
235 - if use ruby; then
236 - cd "${S}"/src/swig/ruby || die
237 - exeinto $("${EPREFIX}"/usr/bin/${USE_RUBY} -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')
238 - doexe mlt.so
239 - dodoc play.rb thumbs.rb
240 - fi
241 - # TODO: java perl php tcl
242 -}