Gentoo Archives: gentoo-commits

From: "Ben de Groot (yngwin)" <yngwin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/mpv: mpv-0.8.2.ebuild metadata.xml ChangeLog
Date: Thu, 05 Mar 2015 14:23:48
Message-Id: 20150305142343.C22EB13192@oystercatcher.gentoo.org
1 yngwin 15/03/05 14:23:43
2
3 Modified: metadata.xml ChangeLog
4 Added: mpv-0.8.2.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 0x4FDF9CFD2FAC514E!)
9
10 Revision Changes Path
11 1.21 media-video/mpv/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/metadata.xml?rev=1.21&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/metadata.xml?rev=1.21&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/metadata.xml?r1=1.20&r2=1.21
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/mpv/metadata.xml,v
20 retrieving revision 1.20
21 retrieving revision 1.21
22 diff -u -r1.20 -r1.21
23 --- metadata.xml 12 Dec 2014 10:38:18 -0000 1.20
24 +++ metadata.xml 5 Mar 2015 14:23:43 -0000 1.21
25 @@ -1,10 +1,10 @@
26 <?xml version="1.0" encoding="UTF-8"?>
27 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
28 <pkgmetadata>
29 +<herd>video</herd>
30 <maintainer>
31 <email>nikoli@×××.us</email>
32 </maintainer>
33 -<herd>video</herd>
34 <herd>proxy-maintainers</herd>
35 <use>
36 <flag name="bluray">Enable playback of Blu-ray filesystems</flag>
37
38
39
40 1.119 media-video/mpv/ChangeLog
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?rev=1.119&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?rev=1.119&content-type=text/plain
44 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?r1=1.118&r2=1.119
45
46 Index: ChangeLog
47 ===================================================================
48 RCS file: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v
49 retrieving revision 1.118
50 retrieving revision 1.119
51 diff -u -r1.118 -r1.119
52 --- ChangeLog 3 Mar 2015 09:18:56 -0000 1.118
53 +++ ChangeLog 5 Mar 2015 14:23:43 -0000 1.119
54 @@ -1,6 +1,11 @@
55 # ChangeLog for media-video/mpv
56 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
57 -# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v 1.118 2015/03/03 09:18:56 dlan Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v 1.119 2015/03/05 14:23:43 yngwin Exp $
59 +
60 +*mpv-0.8.2 (05 Mar 2015)
61 +
62 + 05 Mar 2015; Ben de Groot <yngwin@g.o> +mpv-0.8.2.ebuild, metadata.xml:
63 + version bump
64
65 03 Mar 2015; Yixun Lan <dlan@g.o> mpv-0.8.0.ebuild:
66 add arm64 support, tested on A53 board
67
68
69
70 1.1 media-video/mpv/mpv-0.8.2.ebuild
71
72 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-0.8.2.ebuild?rev=1.1&view=markup
73 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-0.8.2.ebuild?rev=1.1&content-type=text/plain
74
75 Index: mpv-0.8.2.ebuild
76 ===================================================================
77 # Copyright 1999-2015 Gentoo Foundation
78 # Distributed under the terms of the GNU General Public License v2
79 # $Header: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-0.8.2.ebuild,v 1.1 2015/03/05 14:23:43 yngwin Exp $
80
81 EAPI=5
82 EGIT_REPO_URI="https://github.com/mpv-player/mpv.git"
83 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
84 PYTHON_REQ_USE='threads(+)'
85
86 inherit eutils python-any-r1 waf-utils pax-utils fdo-mime gnome2-utils
87 [[ ${PV} == *9999* ]] && inherit git-r3
88
89 WAF_V="1.8.4"
90
91 DESCRIPTION="Free, open source, and cross-platform media player (fork of MPlayer/mplayer2)"
92 HOMEPAGE="http://mpv.io/"
93 SRC_URI="http://ftp.waf.io/pub/release/waf-${WAF_V}"
94 [[ ${PV} == *9999* ]] || \
95 SRC_URI+=" https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
96
97 LICENSE="GPL-2+ BSD"
98 SLOT="0"
99 [[ ${PV} == *9999* ]] || \
100 KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux"
101 IUSE="+alsa bluray bs2b cdio +cli doc-pdf dvb +dvd dvdnav egl +enca encode
102 +iconv jack -joystick jpeg ladspa lcms +libass libav libcaca libguess libmpv
103 lirc lua luajit +mpg123 -openal +opengl oss pulseaudio pvr samba -sdl selinux
104 v4l vaapi vdpau vf-dlopen wayland +X xinerama +xscreensaver +xv"
105
106 REQUIRED_USE="
107 || ( cli libmpv )
108 dvdnav? ( dvd )
109 egl? ( opengl X )
110 enca? ( iconv )
111 lcms? ( opengl )
112 libguess? ( iconv )
113 luajit? ( lua )
114 opengl? ( || ( wayland X ) )
115 pvr? ( v4l )
116 vaapi? ( X )
117 vdpau? ( X )
118 wayland? ( opengl )
119 xinerama? ( X )
120 xscreensaver? ( X )
121 xv? ( X )
122 "
123
124 RDEPEND="
125 libav? ( >=media-video/libav-10:0=[encode?,threads,vaapi?,vdpau?] )
126 !libav? ( >=media-video/ffmpeg-2.1.4:0=[encode?,threads,vaapi?,vdpau?] )
127 sys-libs/zlib
128 X? (
129 x11-libs/libX11
130 x11-libs/libXext
131 >=x11-libs/libXrandr-1.2.0
132 opengl? (
133 virtual/opengl
134 egl? ( media-libs/mesa[egl] )
135 )
136 lcms? ( >=media-libs/lcms-2.6:2 )
137 vaapi? ( >=x11-libs/libva-0.34.0[X(+),opengl?] )
138 vdpau? ( >=x11-libs/libvdpau-0.2 )
139 xinerama? ( x11-libs/libXinerama )
140 xscreensaver? ( x11-libs/libXScrnSaver )
141 xv? ( x11-libs/libXv )
142 )
143 alsa? ( >=media-libs/alsa-lib-1.0.18 )
144 bluray? ( >=media-libs/libbluray-0.3.0 )
145 bs2b? ( media-libs/libbs2b )
146 cdio? (
147 dev-libs/libcdio
148 dev-libs/libcdio-paranoia
149 )
150 dvb? ( virtual/linuxtv-dvb-headers )
151 dvd? (
152 >=media-libs/libdvdread-4.1.3
153 dvdnav? ( >=media-libs/libdvdnav-4.2.0 )
154 )
155 enca? ( app-i18n/enca )
156 iconv? ( virtual/libiconv )
157 jack? ( media-sound/jack-audio-connection-kit )
158 jpeg? ( virtual/jpeg:0 )
159 ladspa? ( media-libs/ladspa-sdk )
160 libass? (
161 >=media-libs/libass-0.9.10:=[enca?,fontconfig]
162 virtual/ttf-fonts
163 )
164 libcaca? ( >=media-libs/libcaca-0.99_beta18 )
165 libguess? ( >=app-i18n/libguess-1.0 )
166 lirc? ( app-misc/lirc )
167 lua? (
168 !luajit? ( >=dev-lang/lua-5.1:= )
169 luajit? ( dev-lang/luajit:2 )
170 )
171 mpg123? ( >=media-sound/mpg123-1.14.0 )
172 openal? ( >=media-libs/openal-1.13 )
173 pulseaudio? ( media-sound/pulseaudio )
174 samba? ( net-fs/samba )
175 sdl? ( media-libs/libsdl2[threads] )
176 v4l? ( media-libs/libv4l )
177 wayland? (
178 >=dev-libs/wayland-1.6.0
179 media-libs/mesa[egl,wayland]
180 >=x11-libs/libxkbcommon-0.3.0
181 )
182 "
183 DEPEND="${RDEPEND}
184 ${PYTHON_DEPS}
185 virtual/pkgconfig
186 >=dev-lang/perl-5.8
187 dev-python/docutils
188 doc-pdf? ( dev-python/rst2pdf )
189 X? (
190 x11-proto/videoproto
191 xinerama? ( x11-proto/xineramaproto )
192 xscreensaver? ( x11-proto/scrnsaverproto )
193 )
194 "
195 RDEPEND+="
196 selinux? ( sec-policy/selinux-mplayer )
197 "
198 DOCS=( Copyright README.md etc/example.conf etc/input.conf )
199
200 pkg_setup() {
201 if use !libass; then
202 ewarn
203 ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed."
204 fi
205
206 einfo "For additional format support you need to enable the support on your"
207 einfo "libavcodec/libavformat provider:"
208 einfo " media-video/ffmpeg or media-video/libav"
209
210 python-any-r1_pkg_setup
211 }
212
213 src_unpack() {
214 if [[ ${PV} == *9999* ]]; then
215 git-r3_src_unpack
216 else
217 default_src_unpack
218 fi
219
220 cp "${DISTDIR}"/waf-${WAF_V} "${S}"/waf || die
221 chmod 0755 "${S}"/waf || die
222 }
223
224 src_prepare() {
225 epatch_user
226 }
227
228 src_configure() {
229 local mywafargs=(
230 --confdir="${EPREFIX}"/etc/${PN}
231 --docdir="${EPREFIX}"/usr/share/doc/${PF}
232 $(usex cli '' '--disable-cplayer')
233 $(use_enable libmpv libmpv-shared)
234 --disable-libmpv-static
235 --disable-build-date # keep build reproducible
236 --disable-optimize # do not add '-O2' to CFLAGS
237 --disable-debug-build # do not add '-g' to CFLAGS
238 $(use_enable doc-pdf pdf-build)
239 $(use_enable vf-dlopen vf-dlopen-filters)
240 $(use_enable cli zsh-comp)
241
242 # optional features
243 $(use_enable iconv)
244 $(use_enable libguess)
245 $(use_enable samba libsmbclient)
246 $(use_enable lua)
247 $(use_enable libass)
248 $(use_enable libass libass-osd)
249 $(use_enable encode encoding)
250 $(use_enable joystick)
251 $(use_enable lirc)
252 $(use_enable bluray libbluray)
253 $(use_enable dvd dvdread)
254 $(use_enable dvdnav)
255 $(use_enable cdio cdda)
256 $(use_enable enca)
257 $(use_enable mpg123)
258 $(use_enable ladspa)
259 $(use_enable bs2b libbs2b)
260 $(use_enable lcms lcms2)
261 --disable-vapoursynth # vapoursynth is not packaged
262 --disable-vapoursynth-lazy
263 --enable-libavfilter
264 --enable-libavdevice
265 $(usex luajit '--lua=luajit' '')
266
267 # audio outputs
268 $(use_enable sdl sdl2) # SDL output is fallback for platforms where nothing better is available
269 --disable-sdl1
270 $(use_enable oss oss-audio)
271 --disable-rsound # media-sound/rsound is in pro-audio overlay only
272 $(use_enable pulseaudio pulse)
273 $(use_enable jack)
274 $(use_enable openal)
275 $(use_enable alsa)
276
277 # video outputs
278 $(use_enable wayland)
279 $(use_enable X x11)
280 $(use_enable xscreensaver xss)
281 $(use_enable X xext)
282 $(use_enable xv)
283 $(use_enable xinerama)
284 $(use_enable X xrandr)
285 $(usex X "$(use_enable opengl gl-x11)" '--disable-gl-x11')
286 $(use_enable egl egl-x11)
287 $(usex wayland "$(use_enable opengl gl-wayland)" '--disable-gl-wayland')
288 $(use_enable opengl gl)
289 $(use_enable vdpau)
290 $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11')
291 $(use_enable vaapi)
292 $(use_enable vaapi vaapi-vpp)
293 $(usex vaapi "$(use_enable opengl vaapi-glx)" '--disable-vaapi-glx')
294 $(use_enable libcaca caca)
295 $(use_enable jpeg)
296
297 # hwaccels
298 $(use_enable vaapi vaapi-hwaccel)
299 $(use_enable vdpau vdpau-hwaccel)
300
301 # tv features
302 $(use_enable v4l tv)
303 $(use_enable v4l tv-v4l2)
304 $(use_enable v4l libv4l2)
305 $(use_enable pvr)
306 $(use_enable dvb)
307 $(use_enable dvb dvbin)
308 )
309 waf-utils_src_configure "${mywafargs[@]}"
310 }
311
312 src_install() {
313 waf-utils_src_install
314
315 if use cli && use luajit; then
316 pax-mark -m "${ED}"usr/bin/mpv
317 fi
318 }
319
320 pkg_preinst() {
321 gnome2_icon_savelist
322 }
323
324 pkg_postinst() {
325 fdo-mime_desktop_database_update
326 gnome2_icon_cache_update
327 }
328
329 pkg_postrm() {
330 fdo-mime_desktop_database_update
331 gnome2_icon_cache_update
332 }