From 30a29ba34a21dddfccce9b3b183cf6724d261864 Mon Sep 17 00:00:00 2001 From: Sebastien Fabbro Date: Tue, 28 Jan 2014 18:05:57 +0000 Subject: Version bump (Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360) --- sci-astronomy/pyephem/ChangeLog | 9 ++++- sci-astronomy/pyephem/pyephem-3.7.5.2.ebuild | 56 ++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 sci-astronomy/pyephem/pyephem-3.7.5.2.ebuild (limited to 'sci-astronomy') diff --git a/sci-astronomy/pyephem/ChangeLog b/sci-astronomy/pyephem/ChangeLog index 772d43168fc2..479b23ddc7ac 100644 --- a/sci-astronomy/pyephem/ChangeLog +++ b/sci-astronomy/pyephem/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-astronomy/pyephem -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/ChangeLog,v 1.21 2013/09/05 19:44:45 mgorny Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/ChangeLog,v 1.22 2014/01/28 18:05:57 bicatali Exp $ + +*pyephem-3.7.5.2 (28 Jan 2014) + + 28 Jan 2014; Sébastien Fabbro +pyephem-3.7.5.2.ebuild: + Version bump 05 Sep 2013; Michał Górny pyephem-3.7.5.1.ebuild: Clean up PYTHON_COMPAT from old implementations. diff --git a/sci-astronomy/pyephem/pyephem-3.7.5.2.ebuild b/sci-astronomy/pyephem/pyephem-3.7.5.2.ebuild new file mode 100644 index 000000000000..414ebb120a8f --- /dev/null +++ b/sci-astronomy/pyephem/pyephem-3.7.5.2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/pyephem-3.7.5.2.ebuild,v 1.1 2014/01/28 18:05:57 bicatali Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7} ) + +inherit distutils-r1 + +DESCRIPTION="Astronomical routines for the python programming language" +HOMEPAGE="http://rhodesmill.org/pyephem/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc test" + +DEPEND=" + doc? ( dev-python/sphinx ) + test? ( virtual/python-unittest2[${PYTHON_USEDEP}] )" +RDEPEND="" + +src_prepare() { + # don't install rst files + sed -i -e "s:'doc/\*\.rst',::" setup.py || die + distutils-r1_src_prepare +} + +src_compile() { + distutils-r1_src_compile + if use doc; then + PYTHONPATH=. emake -C src/ephem/doc html + fi +} + +python_test() { + if [[ ${PYTHON_ABI} == "2.7" ]]; then + PYTHONPATH="$(ls -d ${BUILD_DIR}/lib*)" \ + ${EPYTHON} -m unittest discover -s src/ephem + else + PYTHONPATH="$(ls -d ${BUILD_DIR}/lib*)" \ + unit2 discover -s src/ephem + fi +} + +src_install() { + distutils-r1_src_install + use doc && dohtml -r src/ephem/doc/_build/html/* + + delete_tests() { + rm -r "${D}$(python_get_sitedir)/ephem/tests" || die + } + python_foreach_impl delete_tests +} -- cgit v1.2.3-65-gdbad