commit:     f945f64dd446ca45b1fb4cb76377636664e02f54
Author:     Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 25 15:56:53 2017 +0000
Commit:     Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
CommitDate: Tue Dec 26 02:04:48 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f945f64d

dev-python/botocore: add live ebuild logic

botocore is released very often - 1.8.0 to 1.8.20 in one month. So it
makes sense to allow users to opt in to being up to date, free from
ebuild bumps delay. Git master branch is always at latest release, so
should be reasonably safe to use.

Package-Manager: Portage-2.3.17, Repoman-2.3.6

 dev-python/botocore/botocore-1.8.20.ebuild | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/dev-python/botocore/botocore-1.8.20.ebuild 
b/dev-python/botocore/botocore-1.8.20.ebuild
index 9e2b1a14bd8..7f976cb95e5 100644
--- a/dev-python/botocore/botocore-1.8.20.ebuild
+++ b/dev-python/botocore/botocore-1.8.20.ebuild
@@ -8,13 +8,18 @@ inherit distutils-r1
 
 DESCRIPTION="Low-level, data-driven core of boto 3."
 HOMEPAGE="https://github.com/boto/botocore";
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
 LICENSE="Apache-2.0"
 SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="doc test"
 
+if [[ "${PV}" == "9999" ]]; then
+       EGIT_REPO_URI="https://github.com/boto/botocore";
+       inherit git-r3
+else
+       SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
+fi
+
 RDEPEND="
        >=dev-python/docutils-0.10[${PYTHON_USEDEP}]
        >=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]

Reply via email to