diff options
author | Sébastien Fabbro <bicatali@gentoo.org> | 2016-10-24 22:36:45 +0000 |
---|---|---|
committer | Sébastien Fabbro <bicatali@gentoo.org> | 2016-10-24 22:51:36 +0000 |
commit | dd506961916fb05a4e19b4340b77d7d45a0cd788 (patch) | |
tree | ec7c342f772a79c02b2a2bf676a5c8288b4c83dd /dev-python/aplpy | |
parent | dev-python/pytest-mpl: initial import (diff) | |
download | gentoo-dd506961916fb05a4e19b4340b77d7d45a0cd788.tar.gz gentoo-dd506961916fb05a4e19b4340b77d7d45a0cd788.tar.bz2 gentoo-dd506961916fb05a4e19b4340b77d7d45a0cd788.zip |
dev-python/aplpy: version bump
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-python/aplpy')
-rw-r--r-- | dev-python/aplpy/Manifest | 1 | ||||
-rw-r--r-- | dev-python/aplpy/aplpy-1.1.1.ebuild | 59 |
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/aplpy/Manifest b/dev-python/aplpy/Manifest index bbbae148c9da..9ec253528378 100644 --- a/dev-python/aplpy/Manifest +++ b/dev-python/aplpy/Manifest @@ -1 +1,2 @@ DIST APLpy-1.0.tar.gz 1169280 SHA256 09a8a24b46b93a1eacdbc0e6fd480fa38e4dd890a24963136d76185924602ff0 SHA512 658b626c2a94c73cc8ba45fde86409659555ed3ec065d07313f08b67c0bcdc596c8dc94562c924de2f3f32d6884051e6756e22384d9594c4538578b482fa7590 WHIRLPOOL 0c884cecbbc9a7cd4ca4ba48cee4e03f039fa2edf4aa5aa4ac945b58c889084acb762f9cff2014911b383b0b14ebd2e51d2ce28b01b87eb0053ba06c3cc6c5c3 +DIST APLpy-1.1.1.tar.gz 938943 SHA256 1c3bc9972da5f738435449e5e8483824129f2a18e7426f0a8c2c06a1ef3b4b4b SHA512 accc355fb56145db33a931b77b9d5b56e5e0f5a486a3a8d776b0645991883df4b78fae58cfe87c1575dad7f02baa5c68c95427c1de18c2435abd13c4a85eee93 WHIRLPOOL 38539eb997fb804717553988eddbebbe15b5fc74d61f8a87153ed27560b0e4bc0671053f0c0fa829ded6c81ea651c798f09bcadc223c8d7c5c09aa7de943717d diff --git a/dev-python/aplpy/aplpy-1.1.1.ebuild b/dev-python/aplpy/aplpy-1.1.1.ebuild new file mode 100644 index 000000000000..6508cbd080f6 --- /dev/null +++ b/dev-python/aplpy/aplpy-1.1.1.ebuild @@ -0,0 +1,59 @@ +# 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 xdg-utils + +MYPN=APLpy +MYP=${MYPN}-${PV} + +DESCRIPTION="Astronomical Plotting Library in Python" +HOMEPAGE="https://aplpy.github.com/" +SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + dev-python/astropy[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/astropy-helpers[${PYTHON_USEDEP}] + test? ( dev-python/pytest-mpl[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MYP}" + +PATCHES=( + "${FILESDIR}/${PN}-1.0-fix-dependencies.patch" +) + +python_prepare_all() { + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + xdg_environment_reset + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile --use-system-libraries +} + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}" || die + echo "backend: Agg" > matplotlibrc + virtx "${EPYTHON}" -c "import aplpy, sys;r = aplpy.test();sys.exit(r)" +} + +pkg_postinst() { + optfeature "Interact with Montage" dev-python/montage-wrapper + optfeature "Read DS9 regions files" dev-python/pyregion + optfeature "Extend image i/o formats" dev-python/pillow + optfeature "Astronomy Visualization Metadata tagging" dev-python/pyavm +} |