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