media-video/mpv: make more probable branch first
authorIlya Tumaykin <itumaykin@gmail.com>
Tue, 22 Dec 2015 14:47:07 +0000 (17:47 +0300)
committerIlya Tumaykin <itumaykin@gmail.com>
Mon, 28 Dec 2015 12:46:52 +0000 (15:46 +0300)
We have only one live ebuild and no less than one versioned ebuild.
Thus make the versioned case be the first to preserve the flow of
reading in most cases.

Package-Manager: portage-2.2.24

media-video/mpv/mpv-9999.ebuild

index 7c49f70b4e287070cdd779c7db50a7f16ea1731f..a705081ec4e77196d27695e16021a007988e0a56 100644 (file)
@@ -13,16 +13,16 @@ WAF_V="1.8.12"
 DESCRIPTION="Media player based on MPlayer and mplayer2"
 HOMEPAGE="https://mpv.io/"
 SRC_URI="https://waf.io/pub/release/waf-${WAF_V}"
-DOCS=( README.md etc/example.conf etc/input.conf )
 
-if [[ ${PV} == *9999* ]]; then
-       EGIT_REPO_URI="https://github.com/mpv-player/mpv.git"
-       inherit git-r3
-else
+if [[ ${PV} != *9999* ]]; then
        SRC_URI+=" https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
        KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
-       DOCS+=( RELEASE_NOTES )
+       DOCS=( RELEASE_NOTES )
+else
+       EGIT_REPO_URI="https://github.com/mpv-player/mpv.git"
+       inherit git-r3
 fi
+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"