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 7341613877A for ; Tue, 19 Aug 2014 21:51:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 200CFE087B; Tue, 19 Aug 2014 21:51:40 +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 8A761E087A for ; Tue, 19 Aug 2014 21:51:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8949434004B for ; Tue, 19 Aug 2014 21:51:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CD3CC3963 for ; Tue, 19 Aug 2014 21:51:35 +0000 (UTC) From: "Christoph Junghans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christoph Junghans" Message-ID: <1407528202.1b33de552f47a3ae177e3dc6bc8302c06d278c68.ottxor@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-python/photutils/ X-VCS-Repository: proj/sci X-VCS-Files: dev-python/photutils/ChangeLog dev-python/photutils/metadata.xml dev-python/photutils/photutils-9999.ebuild X-VCS-Directories: dev-python/photutils/ X-VCS-Committer: ottxor X-VCS-Committer-Name: Christoph Junghans X-VCS-Revision: 1b33de552f47a3ae177e3dc6bc8302c06d278c68 X-VCS-Branch: master Date: Tue, 19 Aug 2014 21:51:35 +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: 43b4d891-8a39-40c6-9a0e-e40927f51b83 X-Archives-Hash: f78e5578f3fbe045d9e1e3657ecc8d3b commit: 1b33de552f47a3ae177e3dc6bc8302c06d278c68 Author: Joseph Jon Booker neoturbine net> AuthorDate: Fri Aug 8 20:03:22 2014 +0000 Commit: Christoph Junghans gentoo org> CommitDate: Fri Aug 8 20:03:22 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=1b33de55 dev-python/photutils: Add photutils package Package-Manager: portage-2.2.11-r1 --- dev-python/photutils/ChangeLog | 9 +++++ dev-python/photutils/metadata.xml | 10 +++++ dev-python/photutils/photutils-9999.ebuild | 61 ++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+) diff --git a/dev-python/photutils/ChangeLog b/dev-python/photutils/ChangeLog new file mode 100644 index 0000000..fe8069d --- /dev/null +++ b/dev-python/photutils/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for dev-python/photutils +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*photutils-9999 (08 Aug 2014) + + 08 Aug 2014; Joseph Jon Booker +metadata.xml, + +photutils-9999.ebuild: + dev-python/photutils: Add photutils package diff --git a/dev-python/photutils/metadata.xml b/dev-python/photutils/metadata.xml new file mode 100644 index 0000000..9f819f6 --- /dev/null +++ b/dev-python/photutils/metadata.xml @@ -0,0 +1,10 @@ + + + + sci-astronomy + + photutils is a python package for determining photometric properties + of sources in astronomical images. This includes source detection, + centroid and shape parameters, and performing photometry. + + diff --git a/dev-python/photutils/photutils-9999.ebuild b/dev-python/photutils/photutils-9999.ebuild new file mode 100644 index 0000000..f152dde --- /dev/null +++ b/dev-python/photutils/photutils-9999.ebuild @@ -0,0 +1,61 @@ +# 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_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="Affiliated package for image photometry utilities" +HOMEPAGE="https://github.com/astropy/photutils" + +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/imageutils[${PYTHON_USEDEP}] + dev-python/matplotlib[${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 +}