From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 65C1E1388C0 for ; Tue, 23 Feb 2016 20:05:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 961CCE07ED; Tue, 23 Feb 2016 20:05:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 27103E07ED for ; Tue, 23 Feb 2016 20:05:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ABF1534072E for ; Tue, 23 Feb 2016 20:05:04 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6C97F16C5 for ; Tue, 23 Feb 2016 20:05:02 +0000 (UTC) From: "Sebastien Fabbro" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastien Fabbro" Message-ID: <1456261265.5221c481d4fa7e5da52ec9059790cdcbe81a6098.bicatali@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyfits/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pyfits/Manifest dev-python/pyfits/pyfits-3.4.ebuild X-VCS-Directories: dev-python/pyfits/ X-VCS-Committer: bicatali X-VCS-Committer-Name: Sebastien Fabbro X-VCS-Revision: 5221c481d4fa7e5da52ec9059790cdcbe81a6098 X-VCS-Branch: master Date: Tue, 23 Feb 2016 20:05:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5bfc7e18-5e78-4bac-9fee-a7eacb3078e2 X-Archives-Hash: 43c1054e0f9488f29ceafaa72be3a345 commit: 5221c481d4fa7e5da52ec9059790cdcbe81a6098 Author: Sébastien Fabbro gentoo org> AuthorDate: Tue Feb 23 20:59:57 2016 +0000 Commit: Sebastien Fabbro gentoo org> CommitDate: Tue Feb 23 21:01:05 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5221c481 dev-python/astropy: Version bump Package-Manager: portage-2.2.27 dev-python/pyfits/Manifest | 1 + dev-python/pyfits/pyfits-3.4.ebuild | 71 +++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/dev-python/pyfits/Manifest b/dev-python/pyfits/Manifest index 520e2b6..38b6273 100644 --- a/dev-python/pyfits/Manifest +++ b/dev-python/pyfits/Manifest @@ -1 +1,2 @@ DIST pyfits-3.3.tar.gz 1646403 SHA256 becb6dcc7e443138b9d239db7a0e8ad939e6e047c2c9ca86e84d0672da425fa1 SHA512 561fe61050e61745054e0e4712c4413e129293b062d2020219b61d648d7093ce6952e1f26da955a1bf570f76ba7eddeb1805c99f679300b072ef6bacc2e4c90a WHIRLPOOL 9b4b5dd236713359a9441e4179486e4b56ec11b7fc25c3abb59d30a6267fe87496601778731ba7ff92c55243621aa58ca493821b83224fde41a79f18c21e485b +DIST pyfits-3.4.tar.gz 1692414 SHA256 ce0319cf6ef40846c5915202e4c8bd8d293ad85af4b14aa5a60fb285b7538c4b SHA512 b569f871f26dcd9cb2fbe9d823d55c525e8101b0fcf83fff4bc3f3ec4bc7f680953a29634518ea19383f533f5e23b3703fffdb4e0d577b1023b4323254ef3a7e WHIRLPOOL a121ca9b4d7b4457d24e905e8506402043679800eddc5c5813b68612bae1ee80940eb723f03504c9136fc5c2bac1a419aa52f87394689ae1099bb5002e77417e diff --git a/dev-python/pyfits/pyfits-3.4.ebuild b/dev-python/pyfits/pyfits-3.4.ebuild new file mode 100644 index 0000000..dd6036d --- /dev/null +++ b/dev-python/pyfits/pyfits-3.4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) + +inherit distutils-r1 eutils multilib + +DESCRIPTION="Provides an interface to FITS formatted files under python" +HOMEPAGE="http://www.stsci.edu/resources/software_hardware/pyfits" +SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="doc test" + +RDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + sci-libs/cfitsio:0=" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/d2to1-0.2.5[${PYTHON_USEDEP}] + >=dev-python/stsci-distutils-0.3[${PYTHON_USEDEP}] + doc? ( + dev-python/matplotlib[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/numpydoc[${PYTHON_USEDEP}]' 'python*') + dev-python/sphinxcontrib-programoutput[${PYTHON_USEDEP}] + dev-python/stsci-sphinxext[${PYTHON_USEDEP}] + ) + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +PATCHES=( "${FILESDIR}"/${PN}-3.2.1-unbundle-cfitsio.patch ) + +python_prepare_all() { + sed -i \ + -e "s/\(hook_package_dir = \)lib/\1$(get_libdir)/g" \ + "${S}"/setup.cfg || die + + # https://github.com/spacetelescope/PyFITS/issues/95 + sed -e "s/except UserWarning, w/except UserWarning as w/" \ + -i pyfits/scripts/fitscheck.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + cd "${BUILD_DIR}"/lib* || die + nosetests --verbose || die +} + +python_install() { + distutils-r1_python_install + local binary + for binary in "${ED}"/usr/bin/* "${D}$(python_get_scriptdir)"/*; do + einfo "Renaming ${binary} to ${binary}-${PN}" + mv ${binary}{,-${PN}} || die "failed renaming" + done +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/build/html/. ) + DOCS=( FAQ.txt CHANGES.txt ) + distutils-r1_python_install_all +}