media-video/mpv: introduce missing archive USE
authorIlya Tumaykin <itumaykin@gmail.com>
Tue, 22 Dec 2015 16:15:41 +0000 (19:15 +0300)
committerIlya Tumaykin <itumaykin@gmail.com>
Mon, 28 Dec 2015 12:47:05 +0000 (15:47 +0300)
This USE enables archive support via libarchive.

Package-Manager: portage-2.2.24

media-video/mpv/metadata.xml
media-video/mpv/mpv-9999.ebuild

index 1bead13bde4c301e7d48f9629d1c0158f132a8f9..6c14783bb9160fd90045ebbfd03c9dde2b3f5aca 100644 (file)
@@ -19,6 +19,7 @@
        <herd>video</herd>
        <herd>proxy-maintainers</herd>
        <use>
+               <flag name="archive">Enable support for various archive formats via <pkg>app-arch/libarchive</pkg></flag>
                <flag name="bluray">Enable playback of Blu-ray filesystems</flag>
                <flag name="bs2b">Enable Bauer stereophonic-to-binaural headphone filter</flag>
                <flag name="cli">Build mpv CLI player</flag>
index ad28ae7af25559db71cb2a5f966415bb34709b61..0befda3c27fcd9d6a676678fee2631ed4b065f3e 100644 (file)
@@ -28,7 +28,7 @@ DOCS+=( README.md etc/example.conf etc/input.conf )
 # See Copyright in source tarball and bug #506946. Waf is BSD, libmpv is ISC.
 LICENSE="GPL-2+ BSD ISC"
 SLOT="0"
-IUSE="+alsa bluray cdda +cli doc drm dvb +dvd egl +enca encode +iconv
+IUSE="+alsa archive bluray cdda +cli doc drm dvb +dvd egl +enca encode +iconv
 jack jpeg lcms +libass libav libcaca libguess libmpv lua luajit openal
 +opengl oss pulseaudio pvr raspberry-pi rubberband samba sdl selinux v4l vaapi
 vdpau vf-dlopen wayland +X xinerama +xscreensaver xv"
@@ -55,6 +55,7 @@ COMMON_DEPEND="
        libav? ( >=media-video/libav-11:0=[encode?,threads,vaapi?,vdpau?] )
        sys-libs/zlib
        alsa? ( >=media-libs/alsa-lib-1.0.18 )
+       archive? ( >=app-arch/libarchive-3.0.0:= )
        bluray? ( >=media-libs/libbluray-0.3.0 )
        cdda? ( dev-libs/libcdio-paranoia )
        drm? ( x11-libs/libdrm )
@@ -185,6 +186,7 @@ src_configure() {
                $(use_enable lcms lcms2)
                --disable-vapoursynth   # vapoursynth is not packaged
                --disable-vapoursynth-lazy
+               $(use_enable archive libarchive)
 
                --enable-libavfilter
                --enable-libavdevice