FreeBSD Bugzilla – Attachment 207700 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]
New port astro/py-ephem 3.7.7.0
py-ephem.shar (text/plain), 2.98 KB, created by
Rainer Hurling
on 2019-09-21 17:35:21 UTC
(
hide
)
Description:
New port astro/py-ephem 3.7.7.0
Filename:
MIME Type:
Creator:
Rainer Hurling
Created:
2019-09-21 17:35:21 UTC
Size:
2.98 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># py-ephem ># py-ephem/pkg-descr ># py-ephem/Makefile ># py-ephem/distinfo ># py-ephem/files ># py-ephem/files/patch-setup.py ># >echo c - py-ephem >mkdir -p py-ephem > /dev/null 2>&1 >echo x - py-ephem/pkg-descr >sed 's/^X//' >py-ephem/pkg-descr << 'f0c78acdc79f04346e603b9e9cc8bd62' >XPyEphem provides an ephem Python package for performing high-precision >Xastronomy computations. The underlying numeric routines are coded in C >Xand are the same ones that drive the popular XEphem astronomy application, >Xwhose author, Elwood Charles Downey, generously gave permission for their >Xuse in PyEphem. The name ephem is short for the word ephemeris, which is >Xthe traditional term for a table giving the position of a planet, asteroid, >Xor comet for a series of dates. >X >XWWW: https://pypi.org/project/ephem/f0c78acdc79f04346e603b9e9cc8bd62 >echo x - py-ephem/Makefile >sed 's/^X//' >py-ephem/Makefile << 'da55d7ce32ed74a9cc1a5b14bc123e8d' >X# Created by: rhurlin >X# $FreeBSD$ >X >XPORTNAME= ephem >XPORTVERSION= 3.7.7.0 >XCATEGORIES= astro math >XMASTER_SITES= CHEESESHOP >XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >X >XMAINTAINER= rhurlin@gwdg.de >XCOMMENT= Compute positions of the planets and stars >X >XLICENSE= LGPL3 >X >XUSES= python >XUSE_PYTHON= autoplist distutils >X >X#PLIST_SUB= PORTVER=${PORTVERSION} >X >Xpost-install: >X @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/ephem/_libastro.so >X >X.include <bsd.port.mk> >da55d7ce32ed74a9cc1a5b14bc123e8d >echo x - py-ephem/distinfo >sed 's/^X//' >py-ephem/distinfo << 'e4a54e1ded70d56900ede64d0fa56e3d' >XTIMESTAMP = 1569078294 >XSHA256 (ephem-3.7.7.0.tar.gz) = 607148429f85412915e32265779c0cf6d09f73aa97cf1ff0d101ac22c69c4436 >XSIZE (ephem-3.7.7.0.tar.gz) = 745041 >e4a54e1ded70d56900ede64d0fa56e3d >echo c - py-ephem/files >mkdir -p py-ephem/files > /dev/null 2>&1 >echo x - py-ephem/files/patch-setup.py >sed 's/^X//' >py-ephem/files/patch-setup.py << 'cbfdeac2a9c19c822e166ef8be4f3110' >X--- setup.py.orig 2019-08-17 17:39:14 UTC >X+++ setup.py >X@@ -1,5 +1,6 @@ >X import os >X import sys >X+import io >X from distutils.core import setup, Extension >X from glob import glob >X >X@@ -23,8 +24,13 @@ libastro_version = '3.7.7' >X libastro_files = glob('libastro-%s/*.c' % libastro_version) >X libastro_data = glob('extensions/data/*.c') >X >X+# Currently ephem fails if the text files contain unicode characters. >X+# To fix this we need to open the files as utf-8 explicitly. >X+# Since open() in Python 2 doesn't support an encoding parameter, >X+# use io.open() which works on both 2 and 3. >X+ >X def read(*filenames): >X- return open(os.path.join(os.path.dirname(__file__), *filenames)).read() >X+ return io.open(os.path.join(os.path.dirname(__file__), *filenames), encoding="utf-8").read() >X >X extensions = [ >X Extension('ephem._libastro', >cbfdeac2a9c19c822e166ef8be4f3110 >exit >
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 Raw
Actions:
View
Attachments on
bug 240736
:
207700
|
209701