commit:     7385d90ccac06d78c8bf90029c399b01d1883e39
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  9 12:01:12 2017 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Sun Jul  9 12:06:41 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7385d90c

dev-python/matplotlib: remove bundled qhull

  remove directory quotes from setup.cfg to enable it
  find qhull in Gentoo.

  update wrap_setup for the fact that we are already
  doing out-of-source builds.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-python/matplotlib/matplotlib-2.0.2.ebuild | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/dev-python/matplotlib/matplotlib-2.0.2.ebuild 
b/dev-python/matplotlib/matplotlib-2.0.2.ebuild
index ca8d819c6ee..8a1a9803492 100644
--- a/dev-python/matplotlib/matplotlib-2.0.2.ebuild
+++ b/dev-python/matplotlib/matplotlib-2.0.2.ebuild
@@ -6,7 +6,7 @@ EAPI=6
 PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
 PYTHON_REQ_USE='tk?,threads(+)'
 
-inherit distutils-r1 flag-o-matic virtualx toolchain-funcs
+inherit distutils-r1 flag-o-matic virtualx toolchain-funcs prefix
 
 DESCRIPTION="Pure python plotting library with matlab like syntax"
 HOMEPAGE="http://matplotlib.org/";
@@ -45,7 +45,7 @@ COMMON_DEPEND="
        media-fonts/stix-fonts
        media-libs/freetype:2
        media-libs/libpng:0
-       media-libs/qhull
+       >=media-libs/qhull-2013
        cairo? ( dev-python/cairocffi[${PYTHON_USEDEP}] )
        gtk2? (
                dev-libs/glib:2=
@@ -144,14 +144,14 @@ python_prepare_all() {
                -i lib/matplotlib/{mathtext,fontconfig_pattern}.py \
                || die "sed pyparsing failed"
 
-       sed \
-               -e "s:/usr/:${EPREFIX}/usr/:g" \
-               -i setupext.py || die
+       hprefixify setupext.py
 
        export XDG_RUNTIME_DIR="${T}/runtime-dir"
        mkdir "${XDG_RUNTIME_DIR}" || die
        chmod 0700 "${XDG_RUNTIME_DIR}" || die
 
+       rm -r extern/qhull || die
+
        distutils-r1_python_prepare_all
 }
 
@@ -169,7 +169,7 @@ python_configure() {
        # common switches.
        cat > "${BUILD_DIR}"/setup.cfg <<- EOF || die
                [directories]
-               basedirlist = "${EPREFIX}/usr"
+               basedirlist = ${EPREFIX}/usr
                [provide_packages]
                pytz = False
                dateutil = False
@@ -209,13 +209,10 @@ python_configure() {
 wrap_setup() {
        local -x MPLSETUPCFG=${BUILD_DIR}/setup.cfg
        unset DISPLAY
-
-       # Note: remove build... if switching to out-of-source build
-       "${@}" build --build-lib="${BUILD_DIR}"/build/lib
 }
 
 python_compile() {
-       wrap_setup distutils-r1_python_compile
+       wrap_setup distutils-r1_python_compile --build-lib="${BUILD_DIR}"/lib
 }
 
 python_compile_all() {

Reply via email to