dev-python/snakeoil: version bump to 0.7.2
authorTim Harder <radhermit@gentoo.org>
Fri, 22 Sep 2017 21:51:56 +0000 (17:51 -0400)
committerTim Harder <radhermit@gentoo.org>
Fri, 22 Sep 2017 22:00:46 +0000 (18:00 -0400)
dev-python/snakeoil/Manifest
dev-python/snakeoil/snakeoil-0.7.2.ebuild [new file with mode: 0644]
dev-python/snakeoil/snakeoil-9999.ebuild

index d09dd6b36786b61f3ecb5835538e3337789e0ed5..2a0a1711d0f3ead798f284af4759bcb7628eabdd 100644 (file)
@@ -1 +1,2 @@
 DIST snakeoil-0.7.1.tar.gz 214261 SHA256 e210db2713da8431eea6b6b3afc98bea829c6612733e6309871b2614d08dcc5b SHA512 1c0d03d50a1738cbb3cceecec9445585d089ea535657467871930cca7282d3426780451fb45774e16b05714a1da13766d68f62def7a2d957e2124bd71335d0a0 WHIRLPOOL aa20cabbceaae564802b8ed5a7a6e5dc1039d27021d477179bcad28d4317b875cbddb889e7196fc1c091a802dd28f8c7efe1c6680b170a54c5e2b07c23052623
+DIST snakeoil-0.7.2.tar.gz 292620 SHA256 00354c15f77ae4bec7a33a598ec5d00af4b415b30352fbbe2acdcaceb64a9218 SHA512 99a130eb5433cda22faf07eb988927e76c99965016935f2310146a160484501446846539a09733ded494970f886ef039cf307ff45627ad8dd9d2cc00b2bb1fc7 WHIRLPOOL 23fbd32b8263b398843bf663abd673127eb361ec70b103af67ed6a6b50a737650997c1e4a99038d37f8f6729ce7adb5805840e73f9b2de69aabdfd8cdcda913c
diff --git a/dev-python/snakeoil/snakeoil-0.7.2.ebuild b/dev-python/snakeoil/snakeoil-0.7.2.ebuild
new file mode 100644 (file)
index 0000000..c037456
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PYTHON_REQ_USE="threads(+)"
+inherit distutils-r1
+
+if [[ ${PV} == *9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/pkgcore/snakeoil.git"
+       inherit git-r3
+else
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+       SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+fi
+
+DESCRIPTION="misc common functionality and useful optimizations"
+HOMEPAGE="https://github.com/pkgcore/snakeoil"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+       test? ( dev-python/mock[${PYTHON_USEDEP}] )"
+[[ ${PV} == 9999 ]] && DEPEND+=" $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' 'python3*')"
+
+python_configure_all() {
+       # disable snakeoil 2to3 caching
+       unset PY2TO3_CACHEDIR
+}
+
+python_test() {
+       esetup.py test
+}
index d9fae60af37e0097fd53de6b55e38245e926488c..c037456a6ebe925ee2b58530f9884102896464da 100644 (file)
@@ -11,7 +11,7 @@ if [[ ${PV} == *9999 ]] ; then
        inherit git-r3
 else
        KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-       SRC_URI="https://github.com/pkgcore/${PN}/releases/download/v${PV}/${P}.tar.gz"
+       SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 fi
 
 DESCRIPTION="misc common functionality and useful optimizations"
@@ -22,8 +22,8 @@ SLOT="0"
 IUSE="test"
 
 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
-       $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' 'python3*')
        test? ( dev-python/mock[${PYTHON_USEDEP}] )"
+[[ ${PV} == 9999 ]] && DEPEND+=" $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' 'python3*')"
 
 python_configure_all() {
        # disable snakeoil 2to3 caching