app-misc/tmux: Fix to handle _rc releases as well.
authorLars Wendler <polynomial-c@gentoo.org>
Mon, 1 Apr 2019 16:16:01 +0000 (18:16 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Mon, 1 Apr 2019 16:16:01 +0000 (18:16 +0200)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
app-misc/tmux/tmux-9999.ebuild

index 9c772830fdd0f98c6124f4f9ff1dbb459aa346a5..4615e5f5979ce7860d05e52a671edd5ce886e392 100644 (file)
@@ -12,7 +12,8 @@ if [[ "${PV}" == 9999 ]] ; then
        SRC_URI="https://raw.githubusercontent.com/przepompownia/tmux-bash-completion/678a27616b70c649c6701cae9cd8c92b58cc051b/completions/tmux -> tmux-bash-completion-678a27616b70c649c6701cae9cd8c92b58cc051b"
        EGIT_REPO_URI="https://github.com/tmux/tmux.git"
 else
-       SRC_URI="https://github.com/tmux/tmux/releases/download/$(ver_cut 1-2)/${P}.tar.gz"
+       SRC_URI="https://github.com/tmux/tmux/releases/download/$(ver_cut 1-2)/${P/_/-}.tar.gz"
+       [[ "${PV}" == *_rc* ]] || \
        KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
        S="${WORKDIR}/${P/_/-}"
 fi