FreeBSD Bugzilla – Attachment 209701 Details for
Bug 240736
[NEW PORT] astro/py-ephem: Compute positions of the planets and stars
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
diff based on svn copy astro/pyephem -> astro/py-ephem
patch-pyephem_py-ephem.diff (text/plain), 3.78 KB, created by
Rainer Hurling
on 2019-12-04 17:47:05 UTC
(
hide
)
Description:
diff based on svn copy astro/pyephem -> astro/py-ephem
Filename:
MIME Type:
Creator:
Rainer Hurling
Created:
2019-12-04 17:47:05 UTC
Size:
3.78 KB
patch
obsolete
>diff -urN pyephem/Makefile py-ephem/Makefile >--- pyephem/Makefile 2019-09-06 08:31:45.287021000 +0200 >+++ py-ephem/Makefile 2019-09-21 18:31:58.640218000 +0200 >@@ -1,20 +1,23 @@ >-# Created by: db >-# $FreeBSD: head/astro/pyephem/Makefile 511276 2019-09-06 01:25:46Z wen $ >+# Created by: rhurlin >+# $FreeBSD$ > >-PORTNAME= pyephem >+PORTNAME= ephem > PORTVERSION= 3.7.7.0 >-PORTEPOCH= 1 >-CATEGORIES= astro math hamradio >+CATEGORIES= astro math > 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 > > USES= python > USE_PYTHON= autoplist distutils >+ >+#PLIST_SUB= PORTVER=${PORTVERSION} >+ >+post-install: >+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/ephem/_libastro.so > > .include <bsd.port.mk> >diff -urN pyephem/distinfo py-ephem/distinfo >--- pyephem/distinfo 2019-09-06 08:31:45.201628000 +0200 >+++ py-ephem/distinfo 2019-09-21 17:04:54.423018000 +0200 >@@ -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 = 1569078294 >+SHA256 (ephem-3.7.7.0.tar.gz) = 607148429f85412915e32265779c0cf6d09f73aa97cf1ff0d101ac22c69c4436 >+SIZE (ephem-3.7.7.0.tar.gz) = 745041 >diff -urN pyephem/files/patch-setup.py py-ephem/files/patch-setup.py >--- pyephem/files/patch-setup.py 1970-01-01 01:00:00.000000000 +0100 >+++ py-ephem/files/patch-setup.py 2019-09-21 17:59:13.776964000 +0200 >@@ -0,0 +1,24 @@ >+--- setup.py.orig 2019-08-17 17:39:14 UTC >++++ setup.py >+@@ -1,5 +1,6 @@ >+ import os >+ import sys >++import io >+ from distutils.core import setup, Extension >+ from glob import glob >+ >+@@ -23,8 +24,13 @@ libastro_version = '3.7.7' >+ libastro_files = glob('libastro-%s/*.c' % libastro_version) >+ libastro_data = glob('extensions/data/*.c') >+ >++# 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, >++# use io.open() which works on both 2 and 3. >++ >+ 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', >diff -urN pyephem/pkg-descr py-ephem/pkg-descr >--- pyephem/pkg-descr 2016-03-03 07:18:27.000000000 +0100 >+++ py-ephem/pkg-descr 2019-09-21 18:29:47.594729000 +0200 >@@ -1,10 +1,9 @@ >-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://pypi.org/project/ephem/ >\ No newline at end of file
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240736
:
207700
| 209701