media-video/mpv: make waf sources be appended to SRC_URI
authorIlya Tumaykin <itumaykin@gmail.com>
Mon, 28 Dec 2015 02:43:54 +0000 (05:43 +0300)
committerIlya Tumaykin <itumaykin@gmail.com>
Mon, 28 Dec 2015 12:46:54 +0000 (15:46 +0300)
This helps to avoid confusion that waf sources are the only ones being
fetched.

Suggested by mgorny in PR #511.

Also use a shorter fetch URL for waf sources.

Package-Manager: portage-2.2.24

media-video/mpv/mpv-9999.ebuild

index 9ca03d5e40b6883d5c1371bbf448e189fda5f814..bde9b93b5101ea9746a7c4ba6ddfb252f186486a 100644 (file)
@@ -12,16 +12,16 @@ WAF_PV='1.8.12'
 
 DESCRIPTION="Media player based on MPlayer and mplayer2"
 HOMEPAGE="https://mpv.io/"
-SRC_URI="https://waf.io/pub/release/waf-${WAF_PV}"
 
 if [[ ${PV} != *9999* ]]; then
-       SRC_URI+=" https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       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 )
 else
        EGIT_REPO_URI="https://github.com/mpv-player/mpv.git"
        inherit git-r3
 fi
+SRC_URI+=" https://waf.io/waf-${WAF_PV}"
 DOCS+=( README.md etc/example.conf etc/input.conf )
 
 # See Copyright in source tarball and bug #506946. Waf is BSD, libmpv is ISC.