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/pyfits/
Date: Tue, 23 Feb 2016 20:05:09
Message-Id: 1456261265.5221c481d4fa7e5da52ec9059790cdcbe81a6098.bicatali@gentoo
1 commit: 5221c481d4fa7e5da52ec9059790cdcbe81a6098
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 23 20:59:57 2016 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 23 21:01:05 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5221c481
7
8 dev-python/astropy: Version bump
9
10 Package-Manager: portage-2.2.27
11
12 dev-python/pyfits/Manifest | 1 +
13 dev-python/pyfits/pyfits-3.4.ebuild | 71 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 72 insertions(+)
15
16 diff --git a/dev-python/pyfits/Manifest b/dev-python/pyfits/Manifest
17 index 520e2b6..38b6273 100644
18 --- a/dev-python/pyfits/Manifest
19 +++ b/dev-python/pyfits/Manifest
20 @@ -1 +1,2 @@
21 DIST pyfits-3.3.tar.gz 1646403 SHA256 becb6dcc7e443138b9d239db7a0e8ad939e6e047c2c9ca86e84d0672da425fa1 SHA512 561fe61050e61745054e0e4712c4413e129293b062d2020219b61d648d7093ce6952e1f26da955a1bf570f76ba7eddeb1805c99f679300b072ef6bacc2e4c90a WHIRLPOOL 9b4b5dd236713359a9441e4179486e4b56ec11b7fc25c3abb59d30a6267fe87496601778731ba7ff92c55243621aa58ca493821b83224fde41a79f18c21e485b
22 +DIST pyfits-3.4.tar.gz 1692414 SHA256 ce0319cf6ef40846c5915202e4c8bd8d293ad85af4b14aa5a60fb285b7538c4b SHA512 b569f871f26dcd9cb2fbe9d823d55c525e8101b0fcf83fff4bc3f3ec4bc7f680953a29634518ea19383f533f5e23b3703fffdb4e0d577b1023b4323254ef3a7e WHIRLPOOL a121ca9b4d7b4457d24e905e8506402043679800eddc5c5813b68612bae1ee80940eb723f03504c9136fc5c2bac1a419aa52f87394689ae1099bb5002e77417e
23
24 diff --git a/dev-python/pyfits/pyfits-3.4.ebuild b/dev-python/pyfits/pyfits-3.4.ebuild
25 new file mode 100644
26 index 0000000..dd6036d
27 --- /dev/null
28 +++ b/dev-python/pyfits/pyfits-3.4.ebuild
29 @@ -0,0 +1,71 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +PYTHON_COMPAT=( python2_7 python3_{4,5} )
37 +
38 +inherit distutils-r1 eutils multilib
39 +
40 +DESCRIPTION="Provides an interface to FITS formatted files under python"
41 +HOMEPAGE="http://www.stsci.edu/resources/software_hardware/pyfits"
42 +SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
47 +IUSE="doc test"
48 +
49 +RDEPEND="
50 + dev-python/numpy[${PYTHON_USEDEP}]
51 + sci-libs/cfitsio:0="
52 +DEPEND="${RDEPEND}
53 + dev-python/setuptools[${PYTHON_USEDEP}]
54 + >=dev-python/d2to1-0.2.5[${PYTHON_USEDEP}]
55 + >=dev-python/stsci-distutils-0.3[${PYTHON_USEDEP}]
56 + doc? (
57 + dev-python/matplotlib[${PYTHON_USEDEP}]
58 + $(python_gen_cond_dep 'dev-python/numpydoc[${PYTHON_USEDEP}]' 'python*')
59 + dev-python/sphinxcontrib-programoutput[${PYTHON_USEDEP}]
60 + dev-python/stsci-sphinxext[${PYTHON_USEDEP}]
61 + )
62 + test? ( dev-python/nose[${PYTHON_USEDEP}] )"
63 +
64 +PATCHES=( "${FILESDIR}"/${PN}-3.2.1-unbundle-cfitsio.patch )
65 +
66 +python_prepare_all() {
67 + sed -i \
68 + -e "s/\(hook_package_dir = \)lib/\1$(get_libdir)/g" \
69 + "${S}"/setup.cfg || die
70 +
71 + # https://github.com/spacetelescope/PyFITS/issues/95
72 + sed -e "s/except UserWarning, w/except UserWarning as w/" \
73 + -i pyfits/scripts/fitscheck.py || die
74 +
75 + distutils-r1_python_prepare_all
76 +}
77 +
78 +python_compile_all() {
79 + use doc && emake -C docs html
80 +}
81 +
82 +python_test() {
83 + cd "${BUILD_DIR}"/lib* || die
84 + nosetests --verbose || die
85 +}
86 +
87 +python_install() {
88 + distutils-r1_python_install
89 + local binary
90 + for binary in "${ED}"/usr/bin/* "${D}$(python_get_scriptdir)"/*; do
91 + einfo "Renaming ${binary} to ${binary}-${PN}"
92 + mv ${binary}{,-${PN}} || die "failed renaming"
93 + done
94 +}
95 +
96 +python_install_all() {
97 + use doc && local HTML_DOCS=( docs/build/html/. )
98 + DOCS=( FAQ.txt CHANGES.txt )
99 + distutils-r1_python_install_all
100 +}