Re: [PATCH] gnu: Add mpv-minimal.

2016-01-07 Thread Alex Kost
Alex Kost (2015-12-25 18:29 +0300) wrote:

> Efraim Flashner (2015-12-24 12:14 +0300) wrote:
>
> [...]
>> I looked at the MPV github page and the syntax for MPV over built-in
>> samba is 'mpv smb://user:password@host:/full/path/to/file.ext' and
>> without tab completion and without support for .netrc or .smb.conf I
>> would never do that. Once the directory is mounted locally it doesn't
>> need samba to play networked content.
>>
>> Now that I've looked at it more it seems samba support isn't really a
>> useful feature for mpv.
>
> Great news, thanks for looking at it!  Now this looks like a
> not-very-common feature indeed.  I'll wait for other objections for a
> week or so before removing 'samba' input from 'mpv' package

Done in commit fbbaa4d.  Let's see if anyone will report about missing
feature :-)

-- 
Alex



Re: [PATCH] gnu: Add mpv-minimal.

2015-12-30 Thread Ludovic Courtès
Alex Kost  skribis:

> Efraim Flashner (2015-12-24 12:14 +0300) wrote:
>
> [...]
>> I looked at the MPV github page and the syntax for MPV over built-in
>> samba is 'mpv smb://user:password@host:/full/path/to/file.ext' and
>> without tab completion and without support for .netrc or .smb.conf I
>> would never do that. Once the directory is mounted locally it doesn't
>> need samba to play networked content.
>>
>> Now that I've looked at it more it seems samba support isn't really a
>> useful feature for mpv.
>
> Great news, thanks for looking at it!  Now this looks like a
> not-very-common feature indeed.  I'll wait for other objections for a
> week or so before removing 'samba' input from 'mpv' package (although I
> would still prefer to have an 'mpv-minimal' package).

Either way (removing Samba from MPV’s dependencies, or adding an
‘mpv-minimal’ package) is fine with me.

Ludo’.



Re: [PATCH] gnu: Add mpv-minimal.

2015-12-25 Thread Alex Kost
Efraim Flashner (2015-12-24 12:14 +0300) wrote:

[...]
> I looked at the MPV github page and the syntax for MPV over built-in
> samba is 'mpv smb://user:password@host:/full/path/to/file.ext' and
> without tab completion and without support for .netrc or .smb.conf I
> would never do that. Once the directory is mounted locally it doesn't
> need samba to play networked content.
>
> Now that I've looked at it more it seems samba support isn't really a
> useful feature for mpv.

Great news, thanks for looking at it!  Now this looks like a
not-very-common feature indeed.  I'll wait for other objections for a
week or so before removing 'samba' input from 'mpv' package (although I
would still prefer to have an 'mpv-minimal' package).

-- 
Alex



Re: [PATCH] gnu: Add mpv-minimal.

2015-12-24 Thread Leo Famulari
On Thu, Dec 24, 2015 at 03:56:00PM +0200, Efraim Flashner wrote:
> On Thu, 24 Dec 2015 11:35:45 +0300
> Alex Kost  wrote:
> One build and two outputs, mpv and mpv-minimal, would be nice for a
> substitution server but not be too helpful in the case of building your own
> packages. I don't believe it would be possible.
> 
> off the top of my head for defining mpv-minimal in terms of mpv (see
> python.scm for a lot more examples):
> 
> (define-public mpv-minimal
>   (package (inherit mpv)
> (name "mpv-minimal)
> (inputs (alist-delete "samba" (package-inputs mpv)
> 

I think Alex and Efraim are right, based on my very limited
understanding of multi-output packages.

Since I don't use mpv or samba, I don't have a stake in this. Feel free
to do whatever you decide.

> -- 
> Efraim Flashner  אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted





Re: [PATCH] gnu: Add mpv-minimal.

2015-12-24 Thread Efraim Flashner
On Thu, 24 Dec 2015 11:35:45 +0300
Alex Kost  wrote:

> Leo Famulari (2015-12-23 22:29 +0300) wrote:
> 
>  [...]  
>  [...]  
>  [...]  
> 
> I don't see how it can be done using a separate output (but I don't know
> much about multiple outputs as well :-)).
> 
> --
> Alex
> 

One build and two outputs, mpv and mpv-minimal, would be nice for a
substitution server but not be too helpful in the case of building your own
packages. I don't believe it would be possible.

off the top of my head for defining mpv-minimal in terms of mpv (see
python.scm for a lot more examples):

(define-public mpv-minimal
  (package (inherit mpv)
(name "mpv-minimal)
(inputs (alist-delete "samba" (package-inputs mpv)

-- 
Efraim Flashner  אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


pgp2DDUOHvwSp.pgp
Description: OpenPGP digital signature


Re: [PATCH] gnu: Add mpv-minimal.

2015-12-24 Thread Efraim Flashner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On December 24, 2015 10:36:42 AM GMT+02:00, Alex Kost  wrote:
>Efraim Flashner (2015-12-23 22:48 +0300) wrote:
>
>> On Wed, 23 Dec 2015 11:26:47 +0300
>> Alex Kost  wrote:
>[...]
>>> I am an mpv user and I would really like to get rid of this samba
>>> output, as it is heavy-weight and IIUC the lost functionality would
>be
>>> an impossibility to play audio/video files from remote resources
>>> connected using samba (which most likely are "MS Windows"
>partitions).
>>>
>>> So if other people do not object, I'm going to remove 'samba' output
>>> from 'mpv' package.
>>
>> I also use samba for my networking around my place. My wife needs
>windows for
>> her work, so I have our RPi/NAS set up to use samba instead of nfs.
>
>But do you need mpv built with samba support?  This thread is not about
>samba package, but about removing samba output from 'mpv' package.  BTW
>I don't insist on it, originally I suggested¹ to add 'mpv-minimal'
>package, and I would be really happy with it rather then removing
>functionality from 'mpv' package.
>
>¹ 
>
>--
>Alex

I don't know if this will top post but hopefully not.

I looked at the MPV github page and the syntax for MPV over built-in samba is 
'mpv smb://user:password@host:/full/path/to/file.ext' and without tab 
completion and without support for .netrc or .smb.conf I would never do that. 
Once the directory is mounted locally it doesn't need samba to play networked 
content.

Now that I've looked at it more it seems samba support isn't really a useful 
feature for mpv.
- --
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-BEGIN PGP SIGNATURE-

iQJFBAEBCgAvKBxFZnJhaW0gRmxhc2huZXIgPGVmcmFpbUBmbGFzaG5lci5jby5p
bD4FAlZ7t14ACgkQ9MHTkX6s7pOQuQ//aI73yzSm4GO6/EP/2sIIngXhCBZhMDqF
rYfmop89ONbKGSR4UdgfXW2TtkclyQGYJwp5egjZCsSDqTblirC4CAlz9PKLT2d8
RyRGa0mCWj3CjH9GcREfPPbjW9Ir4M6Jh+5qMvY1ewxWswHD6M0nJug/IiizY6Pj
ldUgYLD52nkexpLI39zI2MDCM3GYgUfWayVffrFVajRADyCFGgSlLNrqy+6rkp6w
pRZ4gxHquFBwxAE0lQXcFqoFRCDPu8MHz31PH0amna03616pVoOHrmkVyZculzPQ
9vxDVQLsqoip5bIO5YmAZsTMNDvxFmjqME1Hs013WLI4sfuonYXqqbLj0vscP/kr
RAXN9/4A3dhonwPlBkS0ltQmNwKT/QSIdpKjVW3f2cnfhyrGBdHC6gDQkiPvGYah
14jmiFQUstHviV4edn/vtWKG1KyWqU9GciddSRxhbVuB+Dj8wW3305uTDyHsrxoC
vQXOtcBj5rOFeXzlZmlb7etv7AbqB5Q8eiPf0AurMBJYh7PHaAKg5Mbl/06BY/AN
EGZHsxhToAMFdS0DGFF+MfA0dBZLgtMpKfssroCaWZ1faPasrO1KzEHL2DL/9Dmd
2GgQKy1kORcI3NEpx2/toxFH8VaPInzs1eNXSN8O7nT/PpNUQHOn2wwBVhrAdkDW
QVRGHkZ64W4=
=yA2G
-END PGP SIGNATURE-




Re: [PATCH] gnu: Add mpv-minimal.

2015-12-24 Thread Alex Kost
Efraim Flashner (2015-12-23 22:48 +0300) wrote:

> On Wed, 23 Dec 2015 11:26:47 +0300
> Alex Kost  wrote:
[...]
>> I am an mpv user and I would really like to get rid of this samba
>> output, as it is heavy-weight and IIUC the lost functionality would be
>> an impossibility to play audio/video files from remote resources
>> connected using samba (which most likely are "MS Windows" partitions).
>>
>> So if other people do not object, I'm going to remove 'samba' output
>> from 'mpv' package.
>
> I also use samba for my networking around my place. My wife needs windows for
> her work, so I have our RPi/NAS set up to use samba instead of nfs.

But do you need mpv built with samba support?  This thread is not about
samba package, but about removing samba output from 'mpv' package.  BTW
I don't insist on it, originally I suggested¹ to add 'mpv-minimal'
package, and I would be really happy with it rather then removing
functionality from 'mpv' package.

¹ 

--
Alex



Re: [PATCH] gnu: Add mpv-minimal.

2015-12-24 Thread Alex Kost
Leo Famulari (2015-12-23 22:29 +0300) wrote:

> On Wed, Dec 23, 2015 at 11:26:47AM +0300, Alex Kost wrote:
>> I am an mpv user and I would really like to get rid of this samba
>> output, as it is heavy-weight and IIUC the lost functionality would be
>> an impossibility to play audio/video files from remote resources
>> connected using samba (which most likely are "MS Windows" partitions).
>>
>> So if other people do not object, I'm going to remove 'samba' output
>> from 'mpv' package.
>
> I suggest making it a separate output so that users can get the
> functionality if they need but the default package does not include it.
>
> I can try it in the next couple of days — I've been meaning to learn how
> to create multiple outputs for a package.

I don't see how it can be done using a separate output (but I don't know
much about multiple outputs as well :-)).

--
Alex



Re: [PATCH] gnu: Add mpv-minimal.

2015-12-23 Thread Efraim Flashner
On Wed, 23 Dec 2015 11:26:47 +0300
Alex Kost  wrote:

> Andreas Enge (2015-12-05 23:49 +0300) wrote:
> 
>  [...]  
>  [...]  
>  [...]  
> 
> I agree!
> 
> Mark H Weaver (2015-12-19 03:02 +0300) wrote:
> 
>  [...]  
>  [...]  
>  [...]  
> 
> I am an mpv user and I would really like to get rid of this samba
> output, as it is heavy-weight and IIUC the lost functionality would be
> an impossibility to play audio/video files from remote resources
> connected using samba (which most likely are "MS Windows" partitions).
> 
> So if other people do not object, I'm going to remove 'samba' output
> from 'mpv' package.
> 

I also use samba for my networking around my place. My wife needs windows for
her work, so I have our RPi/NAS set up to use samba instead of nfs.

-- 
Efraim Flashner  אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


pgpmL6wHkX9A4.pgp
Description: OpenPGP digital signature


Re: [PATCH] gnu: Add mpv-minimal.

2015-12-23 Thread Leo Famulari
On Wed, Dec 23, 2015 at 11:26:47AM +0300, Alex Kost wrote:
> Andreas Enge (2015-12-05 23:49 +0300) wrote:
> 
> > Alex Kost  writes:
> >> I'm personally for it, but there may be users who need mpv with samba
> >> support, so I'm not sure if it is right.  I thought that default Guix
> >> packages should be full-featured, no?
> >
> > No idea. I am not sure we need windows support :-)  (or whatever this is
> > exactly). If nobody needs it and some feel disturbed, we may as well
> > remove it for the time being and think again once someone requests it.
> 
> I agree!
> 
> Mark H Weaver (2015-12-19 03:02 +0300) wrote:
> 
> > Alex Kost  writes:
> >> What about removing samba input instead as Andreas suggested:
> >> 
> >
> > I have no objection to this, but then I'm not an 'mpv' user and I don't
> > know what functionality would be lost.  I'll leave it to others to
> > decide.
> 
> I am an mpv user and I would really like to get rid of this samba
> output, as it is heavy-weight and IIUC the lost functionality would be
> an impossibility to play audio/video files from remote resources
> connected using samba (which most likely are "MS Windows" partitions).
> 
> So if other people do not object, I'm going to remove 'samba' output
> from 'mpv' package.

I suggest making it a separate output so that users can get the
functionality if they need but the default package does not include it.

I can try it in the next couple of days — I've been meaning to learn how
to create multiple outputs for a package.

> 
> -- 
> Alex
> 



Re: [PATCH] gnu: Add mpv-minimal.

2015-12-23 Thread Alex Kost
Andreas Enge (2015-12-05 23:49 +0300) wrote:

> Alex Kost  writes:
>> I'm personally for it, but there may be users who need mpv with samba
>> support, so I'm not sure if it is right.  I thought that default Guix
>> packages should be full-featured, no?
>
> No idea. I am not sure we need windows support :-)  (or whatever this is
> exactly). If nobody needs it and some feel disturbed, we may as well
> remove it for the time being and think again once someone requests it.

I agree!

Mark H Weaver (2015-12-19 03:02 +0300) wrote:

> Alex Kost  writes:
>> What about removing samba input instead as Andreas suggested:
>> 
>
> I have no objection to this, but then I'm not an 'mpv' user and I don't
> know what functionality would be lost.  I'll leave it to others to
> decide.

I am an mpv user and I would really like to get rid of this samba
output, as it is heavy-weight and IIUC the lost functionality would be
an impossibility to play audio/video files from remote resources
connected using samba (which most likely are "MS Windows" partitions).

So if other people do not object, I'm going to remove 'samba' output
from 'mpv' package.

-- 
Alex



Re: [PATCH] gnu: Add mpv-minimal.

2015-12-05 Thread Andreas Enge
On Sat, Dec 05, 2015 at 09:28:43PM +0200, Efraim Flashner wrote:
> > I'm personally for it, but there may be users who need mpv with samba
> > support, so I'm not sure if it is right.  I thought that default Guix
> > packages should be full-featured, no?

No idea. I am not sure we need windows support :-)  (or whatever this is
exactly). If nobody needs it and some feel disturbed, we may as well
remove it for the time being and think again once someone requests it.

> we could rename the current one mpv-network-support or something similar.

Rather not; the default package should have the default name.

Andreas




Re: [PATCH] gnu: Add mpv-minimal.

2015-12-05 Thread Efraim Flashner
On Sat, 05 Dec 2015 21:49:53 +0300
Alex Kost  wrote:

> Andreas Enge (2015-12-04 20:13 +0300) wrote:
> 
> > On Fri, Dec 04, 2015 at 07:08:36PM +0300, Alex Kost wrote:  
> >> I cry every time I see samba during updating my profile, so I wonder if
> >> it is acceptable to have "mpv-minimal" which is less heavy on
> >> dependencies.  If so, perhaps the other people have ideas what inputs
> >> may also be removed, thanks.  
> >
> > Or would it make sense to remove samba altogether from the regular mpv
> > package?  
> 
> I'm personally for it, but there may be users who need mpv with samba
> support, so I'm not sure if it is right.  I thought that default Guix
> packages should be full-featured, no?
> 

we could rename the current one mpv-network-support or something similar.

-- 
Efraim Flashner  אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


pgpFicYZsMm1n.pgp
Description: OpenPGP digital signature


Re: [PATCH] gnu: Add mpv-minimal.

2015-12-05 Thread Alex Kost
Andreas Enge (2015-12-04 20:13 +0300) wrote:

> On Fri, Dec 04, 2015 at 07:08:36PM +0300, Alex Kost wrote:
>> I cry every time I see samba during updating my profile, so I wonder if
>> it is acceptable to have "mpv-minimal" which is less heavy on
>> dependencies.  If so, perhaps the other people have ideas what inputs
>> may also be removed, thanks.
>
> Or would it make sense to remove samba altogether from the regular mpv
> package?

I'm personally for it, but there may be users who need mpv with samba
support, so I'm not sure if it is right.  I thought that default Guix
packages should be full-featured, no?

-- 
Alex



Re: [PATCH] gnu: Add mpv-minimal.

2015-12-04 Thread Taylan Ulrich Bayırlı/Kammer
Andreas Enge  writes:

> On Fri, Dec 04, 2015 at 07:08:36PM +0300, Alex Kost wrote:
>> I cry every time I see samba during updating my profile, so I wonder if
>> it is acceptable to have "mpv-minimal" which is less heavy on
>> dependencies.  If so, perhaps the other people have ideas what inputs
>> may also be removed, thanks.
>
> Or would it make sense to remove samba altogether from the regular mpv
> package?

As an mpv user and the one who initially packaged it and added samba
(because I simply added all optional dependencies), I don't mind.

Taylan



Re: [PATCH] gnu: Add mpv-minimal.

2015-12-04 Thread Andreas Enge
On Fri, Dec 04, 2015 at 07:08:36PM +0300, Alex Kost wrote:
> I cry every time I see samba during updating my profile, so I wonder if
> it is acceptable to have "mpv-minimal" which is less heavy on
> dependencies.  If so, perhaps the other people have ideas what inputs
> may also be removed, thanks.

Or would it make sense to remove samba altogether from the regular mpv
package?

Andreas




[PATCH] gnu: Add mpv-minimal.

2015-12-04 Thread Alex Kost
I cry every time I see samba during updating my profile, so I wonder if
it is acceptable to have "mpv-minimal" which is less heavy on
dependencies.  If so, perhaps the other people have ideas what inputs
may also be removed, thanks.

>From fdcbbff10839dfd2d086d7a022488a9cf75db5c9 Mon Sep 17 00:00:00 2001
From: Alex Kost 
Date: Fri, 4 Dec 2015 18:57:10 +0300
Subject: [PATCH] gnu: Add mpv-minimal.

* gnu/packages/video.scm (mpv-minimal): New variable.
---
 gnu/packages/video.scm | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 928e9ef..36d433d 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -6,6 +6,7 @@
 ;;; Copyright © 2015 Efraim Flashner 
 ;;; Copyright © 2015 Andy Patterson 
 ;;; Copyright © 2015 Ricardo Wurmus 
+;;; Copyright © 2015 Alex Kost 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -78,7 +79,8 @@
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
   #:use-module (gnu packages yasm)
-  #:use-module (gnu packages zip))
+  #:use-module (gnu packages zip)
+  #:use-module (srfi srfi-1))
 
 (define-public aalib
   (package
@@ -770,6 +772,12 @@ fork of mplayer2 and MPlayer.  It shares some features with the former
 projects while introducing many more.")
 (license license:gpl2+)))
 
+(define-public mpv-minimal
+  (package (inherit mpv)
+(name "mpv-minimal")
+(inputs (alist-delete "samba" (package-inputs mpv)))
+(synopsis "Audio and video player (without extra dependencies)")))
+
 (define-public libvpx
   (package
 (name "libvpx")
-- 
2.6.3



Re: [PATCH] gnu: Add mpv.

2015-03-22 Thread Ludovic Courtès
taylanbayi...@gmail.com (Taylan Ulrich "Bayırlı/Kammer") skribis:

> From b16fd3946adf45214c3e137e1f01f6a7294feca9 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?=
>  
> Date: Thu, 19 Mar 2015 23:46:21 +0100
> Subject: [PATCH 1/2] gnu: Add mpv.
>
> * gnu/packages/video.scm (mpv): New variable.

LGTM.  I didn’t know there were two forks of MPlayer.

Thanks,
Ludo’.



[PATCH] gnu: Add mpv.

2015-03-19 Thread Taylan Ulrich Bayırlı/Kammer
>From b16fd3946adf45214c3e137e1f01f6a7294feca9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?=
 
Date: Thu, 19 Mar 2015 23:46:21 +0100
Subject: [PATCH 1/2] gnu: Add mpv.

* gnu/packages/video.scm (mpv): New variable.
---
 gnu/packages/video.scm | 88 ++
 1 file changed, 88 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index a7f39b8..fbfc9b1 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -30,6 +30,7 @@
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
+  #:use-module (guix build-system waf)
   #:use-module (gnu packages)
   #:use-module (gnu packages algebra)
   #:use-module (gnu packages audio)
@@ -636,6 +637,93 @@ several areas.")
 ;; is under lgpl3+, thus the whole project becomes gpl3+.
 (license gpl3+)))
 
+(define-public mpv
+  (package
+(name "mpv")
+(version "0.8.3")
+(source (origin
+  (method url-fetch)
+  (uri (string-append
+"https://github.com/mpv-player/mpv/archive/v"; version
+".tar.gz"))
+  (sha256
+   (base32
+"1kw9hr957cxqgm2i94bgqc6sskm6bwhm0akzckilhs460b43h409"))
+  (file-name (string-append name "-" version ".tar.gz"
+(build-system waf-build-system)
+(native-inputs
+ `(("perl" ,perl)
+   ("pkg-config" ,pkg-config)
+   ("python-docutils" ,python-docutils)))
+;; Missing features: libguess, LIRC, Wayland, VDPAU, VAAPI (libva), V4L2,
+;; VapourSynth
+(inputs
+ `(("alsa-lib" ,alsa-lib)
+   ("enca" ,enca)
+   ("ffmpeg" ,ffmpeg)
+   ("jack" ,jack-2)
+   ("ladspa" ,ladspa)
+   ("lcms" ,lcms)
+   ("libass" ,libass)
+   ("libbluray" ,libbluray)
+   ("libcaca" ,libcaca)
+   ("libbs2b" ,libbs2b)
+   ("libcdio-paranoia" ,libcdio-paranoia)
+   ("libdvdread" ,libdvdread)
+   ("libdvdnav" ,libdvdnav)
+   ("libjpeg" ,libjpeg)
+   ("mpg123" ,mpg123)
+   ("libx11" ,libx11)
+   ("libxext" ,libxext)
+   ("libxinerama" ,libxinerama)
+   ("libxrandr" ,libxrandr)
+   ("libxscrnsaver" ,libxscrnsaver)
+   ("libxv" ,libxv)
+   ("lua" ,lua)
+   ("luajit" ,luajit)
+   ("mesa" ,mesa)
+   ("openal" ,openal)
+   ("pulseaudio" ,pulseaudio)
+   ("rsound" ,rsound)
+   ("samba" ,samba)
+   ("sdl" ,sdl)
+   ("waf" ,(origin
+ (method url-fetch)
+ ;; Keep this in sync with the version in the bootstrap.py
+ ;; script of the source tarball.
+ (uri "http://www.freehackers.org/~tnagy/release/waf-1.8.4";)
+ (sha256
+  (base32
+   "1a7skwgpl91adhcwlmdr76xzdpidh91hvcmj34zz6548bpx3a87h"
+   ("youtube-dl" ,youtube-dl)
+   ("zlib" ,zlib)))
+(arguments
+ '(#:phases
+   (modify-phases %standard-phases
+ (add-before
+  configure setup-waf
+  (lambda* (#:key inputs #:allow-other-keys)
+(copy-file (assoc-ref inputs "waf") "waf")
+(setenv "CC" "gcc")))
+ ;; XXX Remove this when our Samba package provides a .pc file.
+ (add-before
+  configure patch-wscript
+  (lambda* (#:key inputs #:allow-other-keys)
+(let ((samba (assoc-ref inputs "samba")))
+  (substitute* "wscript"
+(("check_pkg_config\\('smbclient'\\)")
+ (string-append
+  "check_cc(cflags='-I" samba "/include',"
+  " linkflags='-L" samba "/lib -lsamba')")))
+   ;; No check function defined.
+   #:tests? #f))
+(home-page "http://mpv.io/";)
+(synopsis "Audio and video player")
+(description "mpv is a general-purpose audio and video player.  It is a
+fork of mplayer2 and MPlayer.  It shares some features with the former
+projects while introducing many more.")
+(license gpl2+)))
+
 (define-public libvpx
   (package
 (name "libvpx")
-- 
2.2.1