commit: e3e953d45ed6e2e2fe0dd7f425c05efca3834a9f Author: Joseph Jon Booker <joe <AT> neoturbine <DOT> net> AuthorDate: Fri Aug 8 19:55:39 2014 +0000 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> CommitDate: Fri Aug 8 19:55:39 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e3e953d4
dev-python/imageutils: Add imageutils package Package-Manager: portage-2.2.11-r1 --- dev-python/imageutils/ChangeLog | 9 +++++ dev-python/imageutils/imageutils-9999.ebuild | 58 ++++++++++++++++++++++++++++ dev-python/imageutils/metadata.xml | 10 +++++ 3 files changed, 77 insertions(+) diff --git a/dev-python/imageutils/ChangeLog b/dev-python/imageutils/ChangeLog new file mode 100644 index 0000000..133e250 --- /dev/null +++ b/dev-python/imageutils/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for dev-python/imageutils +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*imageutils-9999 (08 Aug 2014) + + 08 Aug 2014; Joseph Jon Booker <j...@neoturbine.net> +imageutils-9999.ebuild, + +metadata.xml: + dev-python/imageutils: Add imageutils package diff --git a/dev-python/imageutils/imageutils-9999.ebuild b/dev-python/imageutils/imageutils-9999.ebuild new file mode 100644 index 0000000..a8c9a8a --- /dev/null +++ b/dev-python/imageutils/imageutils-9999.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/aplpy/aplpy-0.9.11.ebuild,v 1.1 2014/01/28 17:53:13 bicatali Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7,3_3,3_4} ) +inherit distutils-r1 + +if [ ${PV} == "9999" ] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/astropy/${PN}.git" +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="Image processing utilities for Astropy" +HOMEPAGE="https://github.com/astropy/imageutils" + +LICENSE="BSD" +SLOT="0" +IUSE="doc" + +DOCS=( README.rst ) + +RDEPEND=" + >=dev-python/astropy-0.4[${PYTHON_USEDEP}] + dev-python/astropy-helpers[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" + +python_prepare_all() { + distutils-r1_python_prepare_all + sed -e '/import ah_bootstrap/d' -i setup.py || die "Removing ah_bootstrap failed" +} + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}" || die + "${EPYTHON}" -c "import ${PN}, sys;r = ${PN}.test(verbose=True);sys.exit(r)" \ + || die "tests fail with ${EPYTHON}" +} + +python_compile_all() { + if use doc; then + python_export_best + VARTEXFONTS="${T}"/fonts \ + MPLCONFIGDIR="${BUILD_DIR}" \ + PYTHONPATH="${BUILD_DIR}"/lib \ + esetup.py build_sphinx + fi +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/imageutils/metadata.xml b/dev-python/imageutils/metadata.xml new file mode 100644 index 0000000..281f12f --- /dev/null +++ b/dev-python/imageutils/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci-astronomy</herd> + <longdescription lang="en"> + imageutils is a collection of image processing utilities that are generally + useful to astronomers. These will likely become part of the core AstroPy + package before the 1.0 release. + </longdescription> +</pkgmetadata>