Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/mpv: mpv-0.3.0.ebuild mpv-9999.ebuild ChangeLog
Date: Sun, 29 Dec 2013 19:11:41
Message-Id: 20131229191135.035D32004C@flycatcher.gentoo.org
1 tomwij 13/12/29 19:11:34
2
3 Modified: mpv-9999.ebuild ChangeLog
4 Added: mpv-0.3.0.ebuild
5 Log:
6 Version bump to 0.3.0, proxied commit for Nikoli.
7
8 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
9
10 Revision Changes Path
11 1.34 media-video/mpv/mpv-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-9999.ebuild?rev=1.34&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-9999.ebuild?rev=1.34&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-9999.ebuild?r1=1.33&r2=1.34
16
17 Index: mpv-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-9999.ebuild,v
20 retrieving revision 1.33
21 retrieving revision 1.34
22 diff -u -r1.33 -r1.34
23 --- mpv-9999.ebuild 28 Dec 2013 20:22:12 -0000 1.33
24 +++ mpv-9999.ebuild 29 Dec 2013 19:11:34 -0000 1.34
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2013 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-9999.ebuild,v 1.33 2013/12/28 20:22:12 maksbotan Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-9999.ebuild,v 1.34 2013/12/29 19:11:34 tomwij Exp $
30
31 EAPI=5
32
33 @@ -11,10 +11,9 @@
34
35 DESCRIPTION="Video player based on MPlayer/mplayer2"
36 HOMEPAGE="http://mpv.io/"
37 -[[ ${PV} == *9999* ]] || \
38 -SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
39 -[[ ${PV} == *9999* ]] && \
40 SRC_URI="https://waf.googlecode.com/files/waf-1.7.13"
41 +[[ ${PV} == *9999* ]] || \
42 +SRC_URI+=" https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43
44 LICENSE="GPL-2"
45 SLOT="0"
46 @@ -152,12 +151,12 @@
47 src_unpack() {
48 if [[ ${PV} == *9999* ]]; then
49 git-r3_src_unpack
50 -
51 - cp "${DISTDIR}"/waf-1.7.13 "${S}"/waf || die
52 - chmod 0755 "${S}"/waf || die
53 else
54 default_src_unpack
55 fi
56 +
57 + cp "${DISTDIR}"/waf-1.7.13 "${S}"/waf || die
58 + chmod 0755 "${S}"/waf || die
59 }
60
61 src_prepare() {
62
63
64
65 1.48 media-video/mpv/ChangeLog
66
67 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?rev=1.48&view=markup
68 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?rev=1.48&content-type=text/plain
69 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?r1=1.47&r2=1.48
70
71 Index: ChangeLog
72 ===================================================================
73 RCS file: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v
74 retrieving revision 1.47
75 retrieving revision 1.48
76 diff -u -r1.47 -r1.48
77 --- ChangeLog 28 Dec 2013 20:22:12 -0000 1.47
78 +++ ChangeLog 29 Dec 2013 19:11:34 -0000 1.48
79 @@ -1,6 +1,12 @@
80 # ChangeLog for media-video/mpv
81 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
82 -# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v 1.47 2013/12/28 20:22:12 maksbotan Exp $
83 +# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v 1.48 2013/12/29 19:11:34 tomwij Exp $
84 +
85 +*mpv-0.3.0 (29 Dec 2013)
86 +
87 + 29 Dec 2013; Tom Wijsman <TomWij@g.o> +mpv-0.3.0.ebuild,
88 + mpv-9999.ebuild:
89 + Version bump to 0.3.0, proxied commit for Nikoli.
90
91 28 Dec 2013; Maxim Koltsov <maksbotan@g.o> mpv-9999.ebuild:
92 Update DOCS in 9999, thanks to Nikoli
93
94
95
96 1.1 media-video/mpv/mpv-0.3.0.ebuild
97
98 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-0.3.0.ebuild?rev=1.1&view=markup
99 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-0.3.0.ebuild?rev=1.1&content-type=text/plain
100
101 Index: mpv-0.3.0.ebuild
102 ===================================================================
103 # Copyright 1999-2013 Gentoo Foundation
104 # Distributed under the terms of the GNU General Public License v2
105 # $Header: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-0.3.0.ebuild,v 1.1 2013/12/29 19:11:34 tomwij Exp $
106
107 EAPI=5
108
109 EGIT_REPO_URI="https://github.com/mpv-player/mpv.git"
110
111 inherit base waf-utils pax-utils
112 [[ ${PV} == *9999* ]] && inherit git-r3
113
114 DESCRIPTION="Video player based on MPlayer/mplayer2"
115 HOMEPAGE="http://mpv.io/"
116 SRC_URI="https://waf.googlecode.com/files/waf-1.7.13"
117 [[ ${PV} == *9999* ]] || \
118 SRC_URI+=" https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
119
120 LICENSE="GPL-2"
121 SLOT="0"
122 [[ ${PV} == *9999* ]] || \
123 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
124 IUSE="+alsa bluray bs2b +cdio -doc-pdf dvb +dvd dvdnav +enca encode +iconv jack -joystick
125 jpeg ladspa lcms +libass libcaca libguess lirc lua luajit +mpg123 -openal +opengl
126 oss portaudio +postproc pulseaudio pvr +quvi -radio samba +shm v4l vaapi vcd vdpau
127 vf-dlopen wayland +X xinerama +xscreensaver +xv"
128
129 REQUIRED_USE="
130 dvdnav? ( dvd )
131 enca? ( iconv )
132 lcms? ( opengl )
133 libguess? ( iconv )
134 luajit? ( lua )
135 opengl? ( || ( wayland X ) )
136 pvr? ( v4l )
137 radio? ( v4l || ( alsa oss ) )
138 vaapi? ( X )
139 vdpau? ( X )
140 wayland? ( opengl )
141 xinerama? ( X )
142 xscreensaver? ( X )
143 xv? ( X )
144 "
145
146 RDEPEND+="
147 || (
148 >=media-video/libav-9:=[encode?,threads,vaapi?,vdpau?]
149 >=media-video/ffmpeg-1.2:0=[encode?,threads,vaapi?,vdpau?]
150 )
151 sys-libs/ncurses
152 sys-libs/zlib
153 X? (
154 x11-libs/libXext
155 x11-libs/libXxf86vm
156 opengl? ( virtual/opengl )
157 lcms? ( media-libs/lcms:2 )
158 vaapi? ( x11-libs/libva[X(+)] )
159 vdpau? ( x11-libs/libvdpau )
160 xinerama? ( x11-libs/libXinerama )
161 xscreensaver? ( x11-libs/libXScrnSaver )
162 xv? ( x11-libs/libXv )
163 )
164 alsa? ( media-libs/alsa-lib )
165 bluray? ( media-libs/libbluray )
166 bs2b? ( media-libs/libbs2b )
167 cdio? (
168 || (
169 dev-libs/libcdio-paranoia
170 <dev-libs/libcdio-0.90[-minimal]
171 )
172 )
173 dvb? ( virtual/linuxtv-dvb-headers )
174 dvd? (
175 >=media-libs/libdvdread-4.1.3
176 dvdnav? ( >=media-libs/libdvdnav-4.2.0 )
177 )
178 enca? ( app-i18n/enca )
179 iconv? ( virtual/libiconv )
180 jack? ( media-sound/jack-audio-connection-kit )
181 jpeg? ( virtual/jpeg )
182 ladspa? ( media-libs/ladspa-sdk )
183 libass? (
184 >=media-libs/libass-0.9.10[enca?,fontconfig]
185 virtual/ttf-fonts
186 )
187 libcaca? ( >=media-libs/libcaca-0.99_beta18 )
188 libguess? ( >=app-i18n/libguess-1.0 )
189 lirc? ( app-misc/lirc )
190 lua? (
191 !luajit? ( >=dev-lang/lua-5.1 )
192 luajit? ( dev-lang/luajit:2 )
193 )
194 mpg123? ( >=media-sound/mpg123-1.14.0 )
195 openal? ( >=media-libs/openal-1.13 )
196 portaudio? ( >=media-libs/portaudio-19_pre20111121 )
197 postproc? (
198 || (
199 media-libs/libpostproc
200 >=media-video/ffmpeg-1.2:0[encode?,threads,vaapi?,vdpau?]
201 )
202 )
203 pulseaudio? ( media-sound/pulseaudio )
204 quvi? (
205 >=media-libs/libquvi-0.4.1:=
206 || (
207 >=media-video/libav-9[network]
208 >=media-video/ffmpeg-1.2:0[network]
209 )
210 )
211 samba? ( net-fs/samba )
212 v4l? ( media-libs/libv4l )
213 wayland? (
214 >=dev-libs/wayland-1.0.0
215 media-libs/mesa[egl,wayland]
216 >=x11-libs/libxkbcommon-0.3.0
217 )
218 "
219 ASM_DEP="dev-lang/yasm"
220 DEPEND="${RDEPEND}
221 virtual/pkgconfig
222 >=dev-lang/perl-5.8
223 dev-python/docutils
224 doc-pdf? (
225 dev-texlive/texlive-latex
226 dev-texlive/texlive-latexrecommended
227 dev-texlive/texlive-latexextra
228 dev-tex/xcolor
229 )
230 X? (
231 x11-proto/videoproto
232 x11-proto/xf86vidmodeproto
233 xinerama? ( x11-proto/xineramaproto )
234 xscreensaver? ( x11-proto/scrnsaverproto )
235 )
236 amd64? ( ${ASM_DEP} )
237 x86? ( ${ASM_DEP} )
238 x86-fbsd? ( ${ASM_DEP} )
239 "
240 DOCS=( Copyright README.md etc/example.conf etc/input.conf )
241
242 pkg_setup() {
243 if use !libass; then
244 ewarn
245 ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed."
246 fi
247
248 einfo "For additional format support you need to enable the support on your"
249 einfo "libavcodec/libavformat provider:"
250 einfo " media-video/libav or media-video/ffmpeg"
251 }
252
253 src_unpack() {
254 if [[ ${PV} == *9999* ]]; then
255 git-r3_src_unpack
256 else
257 default_src_unpack
258 fi
259
260 cp "${DISTDIR}"/waf-1.7.13 "${S}"/waf || die
261 chmod 0755 "${S}"/waf || die
262 }
263
264 src_prepare() {
265 base_src_prepare
266 }
267
268 src_configure() {
269 # keep build reproducible
270 # do not add -g to CFLAGS
271 # SDL output is fallback for platforms where nothing better is available
272 # media-sound/rsound is in pro-audio overlay only
273 waf-utils_src_configure \
274 --disable-build-date \
275 --disable-debug-build \
276 --disable-sdl \
277 --disable-sdl2 \
278 --disable-rsound \
279 $(use_enable encode encoding) \
280 $(use_enable joystick) \
281 $(use_enable bluray libbluray) \
282 $(use_enable vcd) \
283 $(use_enable quvi libquvi) \
284 $(use_enable samba libsmbclient) \
285 $(use_enable lirc) \
286 $(use_enable lua) \
287 $(usex luajit '--lua=luajit' '') \
288 $(use_enable doc-pdf pdf-build) \
289 $(use_enable vf-dlopen vf-dlopen-filters) \
290 $(use_enable cdio cdda) \
291 $(use_enable dvd dvdread) \
292 $(use_enable dvdnav) \
293 $(use_enable enca) \
294 $(use_enable iconv) \
295 $(use_enable libass) \
296 $(use_enable libguess) \
297 $(use_enable dvb) \
298 $(use_enable pvr) \
299 $(use_enable v4l libv4l2) \
300 $(use_enable v4l tv) \
301 $(use_enable v4l tv-v4l2) \
302 $(use_enable radio) \
303 $(use_enable radio radio-capture) \
304 $(use_enable radio radio-v4l2) \
305 $(use_enable mpg123) \
306 $(use_enable jpeg) \
307 $(use_enable libcaca caca) \
308 $(use_enable postproc libpostproc) \
309 $(use_enable alsa) \
310 $(use_enable jack) \
311 $(use_enable ladspa) \
312 $(use_enable portaudio) \
313 $(use_enable bs2b libbs2b) \
314 $(use_enable openal) \
315 $(use_enable oss oss-audio) \
316 $(use_enable pulseaudio pulse) \
317 $(use_enable shm) \
318 $(use_enable X x11) \
319 $(use_enable vaapi) \
320 $(use_enable vdpau) \
321 $(use_enable wayland) \
322 $(use_enable xinerama) \
323 $(use_enable xv) \
324 $(use_enable opengl gl) \
325 $(use_enable lcms lcms2) \
326 $(use_enable xscreensaver xss) \
327 --confdir="${EPREFIX}"/etc/${PN} \
328 --mandir="${EPREFIX}"/usr/share/man \
329 --docdir="${EPREFIX}"/usr/share/doc/${PF}
330 }
331
332 src_install() {
333 waf-utils_src_install
334
335 if use luajit; then
336 pax-mark -m "${ED}"usr/bin/mpv
337 fi
338 }