Date: Sun, 15 Dec 2019 09:24:44 +0000 (UTC) From: Kubilay Kocak <koobs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r520162 - in head/astro: . py-ephem py-ephem/files Message-ID: <201912150924.xBF9OiPC010968@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: koobs Date: Sun Dec 15 09:24:44 2019 New Revision: 520162 URL: https://svnweb.freebsd.org/changeset/ports/520162 Log: [NEW PORT] astro/py-ephem: Compute positions of the planets and stars PyEphem provides an ephem Python package for performing high-precision astronomy computations. The underlying numeric routines are coded in C and are the same ones that drive the popular XEphem astronomy application, whose author, Elwood Charles Downey, generously gave permission for their use in PyEphem. The name ephem is short for the word ephemeris, which is the traditional term for a table giving the position of a planet, asteroid, or comet for a series of dates. WWW: https://rhodesmill.org/pyephem/ WWW: https://pypi.org/project/ephem/ [1] Based on astro/pyephem PR: 240736 Submitted by: Rainer Hurling <rhurlin gwdg de> MFH: 2019Q4 (required for fixing pyephem, unbreaking gnuradio et al) Added: head/astro/py-ephem/ - copied from r520153, head/astro/pyephem/ head/astro/py-ephem/files/ head/astro/py-ephem/files/patch-setup.py (contents, props changed) Modified: head/astro/Makefile head/astro/py-ephem/Makefile head/astro/py-ephem/distinfo head/astro/py-ephem/pkg-descr Modified: head/astro/Makefile ============================================================================== --- head/astro/Makefile Sun Dec 15 08:40:02 2019 (r520161) +++ head/astro/Makefile Sun Dec 15 09:24:44 2019 (r520162) @@ -81,6 +81,7 @@ SUBDIR += py-RO SUBDIR += py-astLib SUBDIR += py-astropy + SUBDIR += py-ephem SUBDIR += py-horoscopegenerator SUBDIR += py-metar SUBDIR += py-metpy Modified: head/astro/py-ephem/Makefile ============================================================================== --- head/astro/pyephem/Makefile Sun Dec 15 02:37:02 2019 (r520153) +++ head/astro/py-ephem/Makefile Sun Dec 15 09:24:44 2019 (r520162) @@ -1,20 +1,25 @@ # Created by: db # $FreeBSD$ -PORTNAME= pyephem +PORTNAME= ephem PORTVERSION= 3.7.7.0 -PORTEPOCH= 1 -CATEGORIES= astro math hamradio +CATEGORIES= astro math python MASTER_SITES= CHEESESHOP -# XXX rename the directory too. PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= wen@FreeBSD.org -COMMENT= Scientific-grade astronomical computations for Python +MAINTAINER= rhurlin@gwdg.de +COMMENT= Compute positions of the planets and stars LICENSE= LGPL3 +LICENSE_FILE= ${WRKSRC}/COPYING USES= python USE_PYTHON= autoplist distutils + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/ephem/_libastro.so + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test .include <bsd.port.mk> Modified: head/astro/py-ephem/distinfo ============================================================================== --- head/astro/pyephem/distinfo Sun Dec 15 02:37:02 2019 (r520153) +++ head/astro/py-ephem/distinfo Sun Dec 15 09:24:44 2019 (r520162) @@ -1,3 +1,3 @@ -TIMESTAMP = 1567729453 -SHA256 (pyephem-3.7.7.0.tar.gz) = e1f3d455a780abe8afa7f2c7a76f70449f53c9147a20285c3c708cebeea63bf4 -SIZE (pyephem-3.7.7.0.tar.gz) = 1266 +TIMESTAMP = 1576382931 +SHA256 (ephem-3.7.7.0.tar.gz) = 607148429f85412915e32265779c0cf6d09f73aa97cf1ff0d101ac22c69c4436 +SIZE (ephem-3.7.7.0.tar.gz) = 745041 Added: head/astro/py-ephem/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/astro/py-ephem/files/patch-setup.py Sun Dec 15 09:24:44 2019 (r520162) @@ -0,0 +1,31 @@ +--- setup.py.orig 2019-08-17 17:39:14 UTC ++++ setup.py +@@ -1,4 +1,13 @@ ++# Currently ephem fails if the text files contain unicode characters. ++# To fix this we need to open the files as utf-8 explicitly. ++# Since open() in Python 2 doesn't support an encoding parameter, ++# TODO: Upstream ++# ++# Add setup.py test command support to run tests ++# TODO: Upstream ++ + import os ++import io + import sys + from distutils.core import setup, Extension + from glob import glob +@@ -24,7 +33,7 @@ libastro_files = glob('libastro-%s/*.c' % libastro_ver + libastro_data = glob('extensions/data/*.c') + + def read(*filenames): +- return open(os.path.join(os.path.dirname(__file__), *filenames)).read() ++ return io.open(os.path.join(os.path.dirname(__file__), *filenames), encoding="utf-8").read() + + extensions = [ + Extension('ephem._libastro', +@@ -62,4 +71,5 @@ setup(name = 'ephem', + 'tests/usno/*.txt', + ],}, + ext_modules = extensions, ++ test_suite='ephem.tests', + ) Modified: head/astro/py-ephem/pkg-descr ============================================================================== --- head/astro/pyephem/pkg-descr Sun Dec 15 02:37:02 2019 (r520153) +++ head/astro/py-ephem/pkg-descr Sun Dec 15 09:24:44 2019 (r520162) @@ -1,10 +1,10 @@ -PyEphem provides scientific-grade astronomical computations for the Python -programming language. Given a date and location on the Earth's surface, it can -compute the positions of the Sun and Moon, of the planets and their moons, and -of any asteroids, comets, or earth satellites whose orbital elements the user -can provide. Additional functions are provided to compute the angular -separation between two objects in the sky, to determine the constellation in -which an object lies, and to find the times at which an object rises, transits, -and sets on a particular day. +PyEphem provides an ephem Python package for performing high-precision +astronomy computations. The underlying numeric routines are coded in C +and are the same ones that drive the popular XEphem astronomy application, +whose author, Elwood Charles Downey, generously gave permission for their +use in PyEphem. The name ephem is short for the word ephemeris, which is +the traditional term for a table giving the position of a planet, asteroid, +or comet for a series of dates. -WWW: http://www.rhodesmill.org/brandon/projects/pyephem.html +WWW: https://rhodesmill.org/pyephem/ +WWW: https://pypi.org/project/ephem/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912150924.xBF9OiPC010968>