sci-lib/blis: use python-any-r1 eclass instead of hardcoded python deps.
authorMo Zhou <cdluminate@gmail.com>
Wed, 4 Sep 2019 07:24:42 +0000 (07:24 +0000)
committerMichał Górny <mgorny@gentoo.org>
Wed, 4 Sep 2019 07:51:01 +0000 (09:51 +0200)
Additionally, quote ${BLIS_FLAGS[@]}, and remove unused `eutils`

Closes: https://bugs.gentoo.org/693130
Signed-off-by: Mo Zhou <cdluminate@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/12859
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sci-libs/blis/blis-0.5.2.ebuild
sci-libs/blis/blis-0.6.0.ebuild

index 785210e5b5a9f62656e010a30bad4b24c7ae5357..2c8bf1dbc4220ee7bd7794c081741181cddf4080 100644 (file)
@@ -2,7 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit eutils
+PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} )
+inherit python-any-r1
 
 DESCRIPTION="BLAS-like Library Instantiation Software Framework"
 HOMEPAGE="https://github.com/flame/blis"
@@ -18,7 +19,7 @@ RDEPEND="eselect-ldso? ( !app-eselect/eselect-cblas
                          >=app-eselect/eselect-blas-0.2 )"
 
 DEPEND="${RDEPEND}
-       dev-lang/python
+       ${PYTHON_DEPS}
 "
 
 PATCHES=(
@@ -56,7 +57,7 @@ src_configure () {
                $(use_enable static-libs static) \
                --enable-blas \
                --enable-cblas \
-               ${BLIS_FLAGS[@]} \
+               "${BLIS_FLAGS[@]}" \
                --enable-shared \
                $confname || die
 }
index ccb44fdd6824861f183ef6b0ce2916c738380425..4d56f5622120f1b21bc0e320257e88d1c955e829 100644 (file)
@@ -2,7 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit eutils
+PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} )
+inherit python-any-r1
 
 DESCRIPTION="BLAS-like Library Instantiation Software Framework"
 HOMEPAGE="https://github.com/flame/blis"
@@ -18,7 +19,7 @@ RDEPEND="eselect-ldso? ( !app-eselect/eselect-cblas
                                                 >=app-eselect/eselect-blas-0.2 )"
 
 DEPEND="${RDEPEND}
-       dev-lang/python
+       ${PYTHON_DEPS}
 "
 
 PATCHES=(
@@ -55,7 +56,7 @@ src_configure () {
                $(use_enable static-libs static) \
                --enable-blas \
                --enable-cblas \
-               ${BLIS_FLAGS[@]} \
+               "${BLIS_FLAGS[@]}" \
                --enable-shared \
                $confname || die
 }