summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2016-09-01 17:13:26 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2016-09-01 18:03:38 +0000
commitcad0589d9c5ee200f37ca54cd7392ef8a32b7b42 (patch)
tree7d6a1d17aec99d7b600600092e4a538839a08125 /dev-python/photutils
parentdev-python/glueviz: version bump (diff)
downloadgentoo-cad0589d9c5ee200f37ca54cd7392ef8a32b7b42.tar.gz
gentoo-cad0589d9c5ee200f37ca54cd7392ef8a32b7b42.tar.bz2
gentoo-cad0589d9c5ee200f37ca54cd7392ef8a32b7b42.zip
dev-python/photutils: version bump
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-python/photutils')
-rw-r--r--dev-python/photutils/Manifest1
-rw-r--r--dev-python/photutils/photutils-0.2.2.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/photutils/Manifest b/dev-python/photutils/Manifest
index df67f695b3d1..168849b5261f 100644
--- a/dev-python/photutils/Manifest
+++ b/dev-python/photutils/Manifest
@@ -1 +1,2 @@
DIST photutils-0.2.1.tar.gz 570535 SHA256 b430dedee5d68eef8aa069f5d033010d8e11544330a172de3f3d9678f93adeee SHA512 0fae893a16e49aecaedac5c0ff7afbfc49d8a3fbca6263edba455ad5fbbdee022d8120406a868c326e416012cfe765d187a48843fc6f6270f20391fa809955bf WHIRLPOOL 31677b0021502c0ec40904f7f0288cfaa40e5abf0e78bd3081108259b99721e8fe65fa94903ba05f5f8f4141e14022607f01ddc43a7588158341227699eedc01
+DIST photutils-0.2.2.tar.gz 558662 SHA256 c64aef453a9be4d1d90bb6a498ca8021a2d7929fca705dbd6636c82ca46eb17f SHA512 b8a071e8d6722b3e174bf89adcc9696aa7556dfb85b21cf8c6acd37bda1f829b79a9a9d93320d70889d6df458a238ed6c4dda7e9b831284f3b52f948ddb268e8 WHIRLPOOL f56ae82c9d54780c319270cec845c953bfa213e7a4d05b5aa5242aaa2e898e9acabe3d27ec76e655a0cba787c991fc91024ee14cc92a1c945af0639436f005e2
diff --git a/dev-python/photutils/photutils-0.2.2.ebuild b/dev-python/photutils/photutils-0.2.2.ebuild
new file mode 100644
index 000000000000..dd9e406e4787
--- /dev/null
+++ b/dev-python/photutils/photutils-0.2.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+inherit distutils-r1 virtualx
+
+DESCRIPTION="Python package for image astronomical photometry"
+HOMEPAGE="https://photutils.readthedocs.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="doc test"
+DOCS=( README.rst )
+
+RDEPEND="
+ dev-python/astropy[${PYTHON_USEDEP}]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ sci-libs/scikits_image[${PYTHON_USEDEP}]
+ sci-libs/scipy[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/astropy-helpers[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+python_prepare_all() {
+ sed -i -e '/auto_use/s/True/False/' setup.cfg || die
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ if use doc; then
+ python_setup
+ VARTEXFONTS="${T}"/fonts \
+ MPLCONFIGDIR="${BUILD_DIR}" \
+ PYTHONPATH="${BUILD_DIR}"/lib \
+ esetup.py build_sphinx
+ fi
+}
+
+python_test() {
+ virtx esetup.py test
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+ distutils-r1_python_install_all
+}