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-9999.ebuild ChangeLog
Date: Fri, 22 Nov 2013 02:55:24
Message-Id: 20131122025516.E51712004E@flycatcher.gentoo.org
1 tomwij 13/11/22 02:55:16
2
3 Modified: mpv-9999.ebuild ChangeLog
4 Log:
5 Upstream migrated to waf, migrate 9999 ebuild to git-r3 and made it use https; proxied commit for Nikoli.
6
7 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
8
9 Revision Changes Path
10 1.28 media-video/mpv/mpv-9999.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-9999.ebuild?rev=1.28&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-9999.ebuild?rev=1.28&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/mpv-9999.ebuild?r1=1.27&r2=1.28
15
16 Index: mpv-9999.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-9999.ebuild,v
19 retrieving revision 1.27
20 retrieving revision 1.28
21 diff -u -r1.27 -r1.28
22 --- mpv-9999.ebuild 16 Nov 2013 13:43:07 -0000 1.27
23 +++ mpv-9999.ebuild 22 Nov 2013 02:55:16 -0000 1.28
24 @@ -1,24 +1,26 @@
25 # Copyright 1999-2013 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-9999.ebuild,v 1.27 2013/11/16 13:43:07 tomwij Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/mpv-9999.ebuild,v 1.28 2013/11/22 02:55:16 tomwij Exp $
29
30 EAPI=5
31
32 -EGIT_REPO_URI="git://github.com/mpv-player/mpv.git"
33 +EGIT_REPO_URI="https://github.com/mpv-player/mpv.git"
34
35 -inherit toolchain-funcs flag-o-matic multilib base pax-utils
36 -[[ ${PV} == *9999* ]] && inherit git-2
37 +inherit flag-o-matic base waf-utils pax-utils
38 +[[ ${PV} == *9999* ]] && inherit git-r3
39
40 DESCRIPTION="Video player based on MPlayer/mplayer2"
41 HOMEPAGE="http://mpv.io/"
42 [[ ${PV} == *9999* ]] || \
43 SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +[[ ${PV} == *9999* ]] && \
45 +SRC_URI="https://waf.googlecode.com/files/waf-1.7.13"
46
47 LICENSE="GPL-2"
48 SLOT="0"
49 [[ ${PV} == *9999* ]] || \
50 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
51 -IUSE="+alsa bluray bs2b +cdio doc-pdf dvb +dvd +enca encode +iconv jack -joystick
52 +IUSE="+alsa bluray bs2b +cdio -doc-pdf dvb +dvd +enca encode +iconv jack -joystick
53 jpeg ladspa lcms +libass libcaca libguess lirc lua luajit +mpg123 -openal +opengl oss
54 portaudio +postproc pulseaudio pvr +quvi -radio samba +shm +threads v4l vaapi
55 vcd vdpau vf-dlopen wayland +X xinerama +xscreensaver +xv"
56 @@ -135,185 +137,106 @@
57 DOCS=( Copyright README.md etc/example.conf etc/input.conf etc/encoding-example-profiles.conf )
58
59 pkg_setup() {
60 - if [[ ${PV} == *9999* ]]; then
61 - elog
62 - elog "This is a live ebuild which installs the latest from upstream's"
63 - elog "git repository, and is unsupported by Gentoo."
64 - elog "Everything but bugs in the ebuild itself will be ignored."
65 - elog
66 - fi
67 -
68 if use !libass; then
69 ewarn
70 ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed."
71 fi
72
73 - if use openal; then
74 - ewarn
75 - ewarn "You've enabled the openal flag. OpenAL is disabled by default,"
76 - ewarn "because it supposedly inteferes with some other configure tests"
77 - ewarn "and makes them fail silently."
78 - fi
79 -
80 einfo "For additional format support you need to enable the support on your"
81 einfo "libavcodec/libavformat provider:"
82 einfo " media-video/libav or media-video/ffmpeg"
83 }
84
85 -src_prepare() {
86 - # fix path to bash executable in configure scripts
87 - sed -i -e "1c\#!${EPREFIX}/bin/bash" \
88 - configure version.sh || die
89 -
90 - base_src_prepare
91 -}
92 -
93 -src_configure() {
94 - local myconf=""
95 - local uses i
96 +src_unpack() {
97 + if [[ ${PV} == *9999* ]]; then
98 + git-r3_src_unpack
99
100 - # ebuild uses "use foo || --disable-foo" to forcibly disable
101 - # compilation in almost every situation. The reason for this is
102 - # because if --enable is used, it will force the build of that option,
103 - # regardless of whether the dependency is available or not.
104 -
105 - #####################
106 - # Optional features #
107 - #####################
108 - # SDL output is fallback for platforms where nothing better is available
109 - myconf+=" --disable-sdl --disable-sdl2"
110 - use encode || myconf+=" --disable-encoding"
111 - myconf+=" $(use_enable joystick)"
112 - uses="bluray vcd"
113 - for i in ${uses}; do
114 - use ${i} || myconf+=" --disable-${i}"
115 - done
116 - use quvi || myconf+=" --disable-libquvi4 --disable-libquvi9"
117 - use samba || myconf+=" --disable-smb"
118 - use lirc || myconf+=" --disable-lirc --disable-lircc"
119 - use lua || myconf+=" --disable-lua"
120 - use luajit && myconf+=" --lua=luajit"
121 - use doc-pdf || myconf+=" --disable-pdf"
122 -
123 - ########
124 - # CDDA #
125 - ########
126 - use cdio || myconf+=" --disable-libcdio"
127 -
128 - ############
129 - # DVD read #
130 - ############
131 - use dvd || myconf+=" --disable-dvdread"
132 -
133 - #############
134 - # Subtitles #
135 - #############
136 - uses="enca iconv libass libguess"
137 - for i in ${uses}; do
138 - use ${i} || myconf+=" --disable-${i}"
139 - done
140 -
141 - #####################################
142 - # DVB / Video4Linux / Radio support #
143 - #####################################
144 - use dvb || myconf+=" --disable-dvb"
145 - use pvr || myconf+=" --disable-pvr"
146 - use v4l || myconf+=" --disable-libv4l2 --disable-tv --disable-tv-v4l2"
147 - if use radio; then
148 - myconf+=" --enable-radio --enable-radio-capture"
149 + cp "${DISTDIR}"/waf-1.7.13 "${S}"/waf || die
150 + chmod 0755 "${S}"/waf || die
151 else
152 - myconf+=" --disable-radio-v4l2"
153 + default_src_unpack
154 fi
155 +}
156
157 - ##########
158 - # Codecs #
159 - ##########
160 - uses="jpeg mpg123"
161 - for i in ${uses}; do
162 - use ${i} || myconf+=" --disable-${i}"
163 - done
164 -
165 - ################
166 - # Video Output #
167 - ################
168 - use libcaca || myconf+=" --disable-caca"
169 - use postproc || myconf+=" --disable-libpostproc"
170 -
171 - ################
172 - # Audio Output #
173 - ################
174 - myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only
175 - uses="alsa jack ladspa portaudio"
176 - for i in ${uses}; do
177 - use ${i} || myconf+=" --disable-${i}"
178 - done
179 - use bs2b || myconf+=" --disable-libbs2b"
180 - use openal && myconf+=" --enable-openal"
181 - use oss || myconf+=" --disable-ossaudio"
182 - use pulseaudio || myconf+=" --disable-pulse"
183 -
184 - ####################
185 - # Advanced Options #
186 - ####################
187 - # keep build reproducible
188 - myconf+=" --disable-build-date"
189 - # do not add -g to CFLAGS
190 - myconf+=" --disable-debug"
191 - use threads || myconf+=" --disable-pthreads"
192 -
193 - # Platform specific flags, hardcoded on amd64 (see below)
194 - use shm || myconf+=" --disable-shm"
195 +src_prepare() {
196 + base_src_prepare
197 +}
198
199 +src_configure() {
200 if use x86 && gcc-specs-pie; then
201 filter-flags -fPIC -fPIE
202 append-ldflags -nopie
203 fi
204
205 - ###########################
206 - # X enabled configuration #
207 - ###########################
208 - use X || myconf+=" --disable-x11"
209 - uses="vaapi vdpau wayland xinerama xv"
210 - for i in ${uses}; do
211 - use ${i} || myconf+=" --disable-${i}"
212 - done
213 - use opengl || myconf+=" --disable-gl"
214 - use lcms || myconf+=" --disable-lcms2"
215 - use xscreensaver || myconf+=" --disable-xss"
216 -
217 - CFLAGS= LDFLAGS= ./configure \
218 - --cc="$(tc-getCC)" \
219 - --extra-cflags="${CFLAGS}" \
220 - --extra-ldflags="${LDFLAGS}" \
221 - --pkg-config="$(tc-getPKG_CONFIG)" \
222 - --prefix="${EPREFIX}"/usr \
223 - --bindir="${EPREFIX}"/usr/bin \
224 + # keep build reproducible
225 + # do not add -g to CFLAGS
226 + # SDL output is fallback for platforms where nothing better is available
227 + # media-sound/rsound is in pro-audio overlay only
228 + waf-utils_src_configure \
229 + --disable-build-date \
230 + --disable-debug-build \
231 + --disable-sdl \
232 + --disable-sdl2 \
233 + --disable-rsound \
234 + $(use_enable encode encoding) \
235 + $(use_enable joystick) \
236 + $(use_enable bluray libbluray) \
237 + $(use_enable vcd) \
238 + $(use_enable quvi libquvi4) \
239 + --disable-libquvi9 \
240 + $(use_enable samba libsmbclient) \
241 + $(use_enable lirc) \
242 + $(use_enable lirc lircc) \
243 + $(use_enable lua) \
244 + $(usex luajit '--lua=luajit' '') \
245 + $(use_enable doc-pdf pdf-build) \
246 + $(use_enable vf-dlopen vf-dlopen-filters) \
247 + $(use_enable cdio cdda) \
248 + $(use_enable dvd dvdread) \
249 + $(use_enable enca) \
250 + $(use_enable iconv) \
251 + $(use_enable libass) \
252 + $(use_enable libguess) \
253 + $(use_enable dvb) \
254 + $(use_enable pvr) \
255 + $(use_enable v4l libv4l2) \
256 + $(use_enable v4l tv) \
257 + $(use_enable v4l tv-v4l2) \
258 + $(use_enable radio) \
259 + $(use_enable radio radio-capture) \
260 + $(use_enable radio radio-v4l2) \
261 + $(use_enable mpg123) \
262 + $(use_enable jpeg) \
263 + $(use_enable libcaca caca) \
264 + $(use_enable postproc libpostproc) \
265 + $(use_enable alsa) \
266 + $(use_enable jack) \
267 + $(use_enable ladspa) \
268 + $(use_enable portaudio) \
269 + $(use_enable bs2b libbs2b) \
270 + $(use_enable openal) \
271 + $(use_enable oss oss-audio) \
272 + $(use_enable pulseaudio pulse) \
273 + $(use_enable threads pthreads) \
274 + $(use_enable shm) \
275 + $(use_enable X x11) \
276 + $(use_enable vaapi) \
277 + $(use_enable vdpau) \
278 + $(use_enable wayland) \
279 + $(use_enable xinerama) \
280 + $(use_enable xv) \
281 + $(use_enable opengl gl) \
282 + $(use_enable lcms lcms2) \
283 + $(use_enable xscreensaver xss) \
284 --confdir="${EPREFIX}"/etc/${PN} \
285 --mandir="${EPREFIX}"/usr/share/man \
286 - --docdir="${EPREFIX}"/usr/share/doc/${PF} \
287 - ${myconf} || die
288 -
289 - MAKEOPTS+=" V=1"
290 -}
291 -
292 -src_compile() {
293 - base_src_compile
294 -
295 - if use vf-dlopen; then
296 - tc-export CC
297 - emake -C TOOLS/vf_dlopen
298 - fi
299 + --docdir="${EPREFIX}"/usr/share/doc/${PF}
300 }
301
302 src_install() {
303 - base_src_install
304 + waf-utils_src_install
305
306 if use luajit; then
307 pax-mark -m "${ED}"usr/bin/mpv
308 fi
309 -
310 - if use vf-dlopen; then
311 - exeinto /usr/$(get_libdir)/${PN}
312 - doexe TOOLS/vf_dlopen/*.so
313 - fi
314 -}
315 +}
316 \ No newline at end of file
317
318
319
320 1.41 media-video/mpv/ChangeLog
321
322 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?rev=1.41&view=markup
323 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?rev=1.41&content-type=text/plain
324 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/mpv/ChangeLog?r1=1.40&r2=1.41
325
326 Index: ChangeLog
327 ===================================================================
328 RCS file: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v
329 retrieving revision 1.40
330 retrieving revision 1.41
331 diff -u -r1.40 -r1.41
332 --- ChangeLog 16 Nov 2013 13:43:07 -0000 1.40
333 +++ ChangeLog 22 Nov 2013 02:55:16 -0000 1.41
334 @@ -1,6 +1,10 @@
335 # ChangeLog for media-video/mpv
336 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
337 -# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v 1.40 2013/11/16 13:43:07 tomwij Exp $
338 +# $Header: /var/cvsroot/gentoo-x86/media-video/mpv/ChangeLog,v 1.41 2013/11/22 02:55:16 tomwij Exp $
339 +
340 + 22 Nov 2013; Tom Wijsman <TomWij@g.o> mpv-9999.ebuild:
341 + Upstream migrated to waf, migrate 9999 ebuild to git-r3 and made it use https;
342 + proxied commit for Nikoli.
343
344 *mpv-0.2.3 (16 Nov 2013)