media-video/mpv: do USE checks in pkg_pretend
authorIlya Tumaykin <itumaykin@gmail.com>
Tue, 22 Dec 2015 15:06:39 +0000 (18:06 +0300)
committerIlya Tumaykin <itumaykin@gmail.com>
Mon, 28 Dec 2015 12:46:56 +0000 (15:46 +0300)
This was originally submitted by Vindex17 in PR #318.

This is the proper place if we will need to die early (we will).

Package-Manager: portage-2.2.24

media-video/mpv/mpv-9999.ebuild

index e9ba8387fc1c15add741d2fa00e0f0de0b58f0e3..d08c2bbfaa66fc194e1515d9863ce24f9461943a 100644 (file)
@@ -123,7 +123,7 @@ RDEPEND+="
        selinux? ( sec-policy/selinux-mplayer )
 "
 
-pkg_setup() {
+pkg_pretend() {
        if ! use libass; then
                ewarn "You have disabled the libass flag. No OSD or subtitles will be displayed."
        fi
@@ -147,8 +147,6 @@ pkg_setup() {
        einfo "For additional format support you need to enable the support on your"
        einfo "libavcodec/libavformat provider:"
        einfo "    media-video/ffmpeg or media-video/libav"
-
-       python-any-r1_pkg_setup
 }
 
 src_prepare() {