commit: 4807b3e1869c7ab0efb0a758c658bdbe64d7003f Author: Joseph Jon Booker <joe <AT> neoturbine <DOT> net> AuthorDate: Fri Aug 8 19:32:43 2014 +0000 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> CommitDate: Fri Aug 8 19:32:43 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=4807b3e1
dev-python/ccdproc: Add ccdproc package Package-Manager: portage-2.2.11-r1 --- dev-python/ccdproc/ChangeLog | 10 ++++++ dev-python/ccdproc/ccdproc-0.2.ebuild | 59 ++++++++++++++++++++++++++++++++++ dev-python/ccdproc/ccdproc-9999.ebuild | 59 ++++++++++++++++++++++++++++++++++ dev-python/ccdproc/metadata.xml | 10 ++++++ 4 files changed, 138 insertions(+) diff --git a/dev-python/ccdproc/ChangeLog b/dev-python/ccdproc/ChangeLog new file mode 100644 index 0000000..ffd4297 --- /dev/null +++ b/dev-python/ccdproc/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/ccdproc +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*ccdproc-0.2 (08 Aug 2014) +*ccdproc-9999 (08 Aug 2014) + + 08 Aug 2014; Joseph Jon Booker <[email protected]> +ccdproc-0.2.ebuild, + +ccdproc-9999.ebuild, +metadata.xml: + dev-python/ccdproc: Add ccdproc package diff --git a/dev-python/ccdproc/ccdproc-0.2.ebuild b/dev-python/ccdproc/ccdproc-0.2.ebuild new file mode 100644 index 0000000..dff455d --- /dev/null +++ b/dev-python/ccdproc/ccdproc-0.2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7,3_2,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="Astropy affiliated package for reducing optical/IR CCD data" +HOMEPAGE="https://github.com/astropy/ccdproc" + +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}] + sci-libs/scipy[${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_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_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_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/ccdproc/ccdproc-9999.ebuild b/dev-python/ccdproc/ccdproc-9999.ebuild new file mode 100644 index 0000000..dff455d --- /dev/null +++ b/dev-python/ccdproc/ccdproc-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7,3_2,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="Astropy affiliated package for reducing optical/IR CCD data" +HOMEPAGE="https://github.com/astropy/ccdproc" + +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}] + sci-libs/scipy[${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_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_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_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/ccdproc/metadata.xml b/dev-python/ccdproc/metadata.xml new file mode 100644 index 0000000..3cbb671 --- /dev/null +++ b/dev-python/ccdproc/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"> + ccdproc is a AstroPy-affliated package for the basic reduction of + CCD images. It provides a framework for accounting for error propagation + and bad pixel tracking through the reduction steps. + </longdescription> +</pkgmetadata>
