Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/astropy/
Date: Tue, 23 Feb 2016 19:46:07
Message-Id: 1456260133.3f75cba317d5fae3b2035d5b55b68be2e87cff01.bicatali@gentoo
1 commit: 3f75cba317d5fae3b2035d5b55b68be2e87cff01
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 23 20:41:55 2016 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 23 20:42:13 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f75cba3
7
8 dev-python/astropy: fix for EAPI6 doc building
9
10 Documentation build fix, and using newer python-r1 routines.
11 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=575222
12
13 Package-Manager: portage-2.2.27
14
15 dev-python/astropy/astropy-1.1.1.ebuild | 14 +++++++++-----
16 1 file changed, 9 insertions(+), 5 deletions(-)
17
18 diff --git a/dev-python/astropy/astropy-1.1.1.ebuild b/dev-python/astropy/astropy-1.1.1.ebuild
19 index cbe1283..656fb4a 100644
20 --- a/dev-python/astropy/astropy-1.1.1.ebuild
21 +++ b/dev-python/astropy/astropy-1.1.1.ebuild
22 @@ -33,8 +33,8 @@ DEPEND="${RDEPEND}
23 dev-python/setuptools[${PYTHON_USEDEP}]
24 virtual/pkgconfig
25 doc? (
26 - dev-python/matplotlib[${PYTHON_USEDEP}]
27 - dev-python/sphinx[${PYTHON_USEDEP}]
28 + $(python_gen_cond_dep 'dev-python/matplotlib[${PYTHON_USEDEP}]' python2_7)
29 + $(python_gen_cond_dep 'dev-python/sphinx[${PYTHON_USEDEP}]' python2_7)
30 media-gfx/graphviz
31 )
32 test? (
33 @@ -45,6 +45,8 @@ DEPEND="${RDEPEND}
34 sci-libs/scipy[${PYTHON_USEDEP}]
35 )"
36
37 +REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
38 +
39 PATCHES=(
40 "${FILESDIR}/${PN}-1.0.4-system-six.patch"
41 "${FILESDIR}/${PN}-1.0.4-system-configobj.patch"
42 @@ -52,6 +54,10 @@ PATCHES=(
43 "${FILESDIR}/${PN}-1.1.1-mark-kown-failures.patch"
44 )
45
46 +pkg_setup() {
47 + use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
48 +}
49 +
50 python_prepare_all() {
51 export mydistutilsargs="--offline"
52 export ASTROPY_USE_SYSTEM_PYTEST=True
53 @@ -60,17 +66,15 @@ python_prepare_all() {
54 rm -r cextern/{expat,erfa,cfitsio,wcslib} || die
55 sed -i -e '/auto_use/s/True/False/' setup.cfg || die
56 cat >> setup.cfg <<-EOF
57 -
58 [build]
59 use_system_libraries=1
60 EOF
61 -
62 distutils-r1_python_prepare_all
63 }
64
65 python_compile_all() {
66 if use doc; then
67 - python_export_best
68 + python_setup "python2*"
69 VARTEXFONTS="${T}"/fonts \
70 MPLCONFIGDIR="${BUILD_DIR}" \
71 PYTHONPATH="${BUILD_DIR}"/lib \