commit:     2b52f441661f85eafd9245084d51c4424acdfe55
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 10 09:09:39 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Dec 10 09:10:23 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b52f441

games-emulation/mgba: Synced live ebuild

Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 games-emulation/mgba/mgba-9999.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/games-emulation/mgba/mgba-9999.ebuild 
b/games-emulation/mgba/mgba-9999.ebuild
index 013c485228b..014fe2c0a7c 100644
--- a/games-emulation/mgba/mgba-9999.ebuild
+++ b/games-emulation/mgba/mgba-9999.ebuild
@@ -11,8 +11,11 @@ if [[ "${PV}" == 9999 ]] ; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/mgba-emu/mgba.git";
 else
-       SRC_URI="https://github.com/${PN}-emu/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+       MY_PV="${PV/_beta/-b}"
+       SRC_URI="https://github.com/${PN}-emu/${PN}/archive/${MY_PV}.tar.gz -> 
${P}.tar.gz"
+       [[ "${PV}" == *_beta* ]] || \
        KEYWORDS="~amd64 ~x86"
+       S="${WORKDIR}/${PN}-${MY_PV}"
 fi
 LICENSE="MPL-2.0"
 SLOT="0"

Reply via email to