Gentoo Archives: gentoo-commits

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