summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-09-20 09:52:14 +0000
committerobache <obache@pkgsrc.org>2010-09-20 09:52:14 +0000
commit88299d97539bd6482f6f02fad9571ade7efb28a1 (patch)
treec36db69aca2da4172efdb0ebdbb7778a7aedfb43 /math
parentd98a4fb32de70d54417be2e40c9189011ca64753 (diff)
downloadpkgsrc-88299d97539bd6482f6f02fad9571ade7efb28a1.tar.gz
Update py-ephem to 3.7.3.4.
Based on PR#43737 by Kamel Derouiche. remove RESTRICTION, because COPYING file said GPL or LGPL, nothing for others. PyEphem CHANGELOG ================= Version 3.7.3.4 (2009 April 30) ------------------------------- - Added a new ``next_pass()`` method to ``Observer`` that searches for when a satellite next rises, culminates, and sets. - Added a ``compute_pressure()`` method to ``Observer`` which computes the standard atmospheric pressure at the observer's current elevation. This function now gets called automatically on new ``city()`` objects before they are returned to the user. - Corrected the altitude of San Francisco as returned by ``city()``. - Improved the copyright message so that two more authors are credited. Version 3.7.3.3 (2008 October 3) -------------------------------- - Added ``cmsI`` and ``cmsII`` attributes to ``Jupiter`` to provide the central meridian longitude in both System I and System II. - **Bugfix**: Saturn was returning the wrong values for its earthward and sunward angle tilt. Version 3.7.3.2 (2008 July 2) ----------------------------- - **Bugfix**: the rising and setting functions, if called repeatedly, would sometimes get hung up on a single answer which they would return over and over again instead of progressing to the next rising or setting. They should now always progress instead of getting stuck. Version 3.7.3.1 (2008 July 1) ----------------------------- - **Bugfix**: the rising and setting functions were attempting to achieve such high precision that users sometimes found circumstances under which they would not complete at all! They now stop and return an answer once they are withing a half-second of the real time of rising, transit, or setting, which solves the problem without damaging the quality of the results when tested against the Naval Observatory. - Upgraded to the libastro from XEphem 3.7.3. Version 3.7.2.4 (2008 June 12) ------------------------------ - **Incompatible Change**: After feedback from users, I have changed the ``Observer`` methods which find risings, settings, and transits, so that they do not change their Observer's ``.date`` attribute. So the sequence: .. code-block:: python r1 = boston.next_rising(mars) r2 = boston.next_rising(mars) now computes the same value twice! If you want a series of calls to each begin when the other left off, you can use the ``start=`` parameter described in the next item: .. code-block:: python r1 = boston.next_rising(mars) r2 = boston.next_rising(mars, start=r1) - Added an optional ``start=`` argument to the rising, setting, and transit ``Observer`` functions, that tells them from which date and time to begin their search. - **Bugfix**: Rewrote planetary moon routines so that moons of Mars, Jupiter, Saturn, and Uranus now return appropriate data for years 1999-2020. (Each moon had been returning the unmodified position of its planet, because I was unsure whether I could distribute the moon data with PyEphem.) - You can no longer create arbitrary attributes on an ``Observer``, to prevent users from accidentially saying things like ``here.longitude`` or ``here.lon`` when they mean ``here.long``. Create your own subclass of ``Observer`` if you need the power to set your own attributes. - The ephem module now provides a ``__version__`` symbol. - Added test suite that tests planet and planet moon positions against JPL ephemeris data (needs more work). Version 3.7.2.3 (2008 January 8) -------------------------------- - Three new classes ``Equatorial``, ``Ecliptic``, and ``Galactic`` allow coordinates to be transformed between the three systems (ability to transform coordinates was requested by Aaron Parsons). - Added constants for popular epochs ``B1900``, ``B1950``, and ``J2000``. - Added named functions for every solstice and equinox (before, only the vernal equinox could be asked for specifically). - Product tests have been moved inside of the ``ephem`` module itself, and can now be invoked simply by running: .. code-block:: bash $ python setup.py test - **Bugfix**: ``Angle()`` can no longer be directly instantiated. - **Bugfix**: San Francisco had the wrong coordinates in the cities database (pointed out by Randolph Bentson). Version 3.7.2.2 (2007 December 9) --------------------------------- - The phases of the moon can now be determined through the functions ``next_new_moon()``, ``next_full_moon()``, ``previous_new_moon()``, et cetera. - Added a modest database of world cities; the ``city()`` function returns a new Observer on each call: .. code-block:: python observer = ephem.city('Boston') - Using the old ``rise``, ``set``, and ``transit`` attributes on ``Body`` objects now causes a deprecation warning. - **Bugfix**: the last release of PyEphem omitted the constants ``meters_per_au``, ``earth_radius``, ``moon_radius``, and ``sun_radius``; the constant ``c`` (the speed of light) is also now available. Version 3.7.2.1 (2007 October 1) -------------------------------- - Functions now exist to find equinoxes and solstices. - Bodies now cleanly offer three different versions of their position, rather than making the user remember obscure rules for having each of these three values computed: * Astrometric geocetric right ascension and declination * Apparent geocentric right ascension and declination * Apparent topocentric right ascension and declination - Bodies can now find their next or previous times of transit, anti-transit, rising, and setting. - A ``localtime()`` function can convert PyEphem ``Date`` objects to local time. - Now ``ephem.angle`` instances can survive unary ``+`` and ``-`` without getting changed into plain floats. - The ``elev`` Observer attribute has been renamed to ``elevation``. - Observers now display useful information when printed. - Added a much more extensive test suite, which, among other things, now compares results with the United States Naval Observatory, insisting upon arcsecond agreement. - **Bugfix**: When a fixed body is repeatedly precessed to different dates, its original position will no longer accumulate error. Version 3.7.2a (2007 June) -------------------------- - Upgraded to the libastro from XEphem 3.7.2. - Should now compile under Windows! - **Bugfix**: rewrote date-and-time parsing to avoid the use of ``sscanf()``, which was breaking under Windows and requiring the insertion of a leading space to succeed. - Improved the error returned when a date string cannot be parsed, so that it now quotes the objectionable string (so you can tell which of several date strings on the same line gave an error!).
Diffstat (limited to 'math')
-rw-r--r--math/py-ephem/Makefile25
-rw-r--r--math/py-ephem/PLIST96
-rw-r--r--math/py-ephem/distinfo8
3 files changed, 105 insertions, 24 deletions
diff --git a/math/py-ephem/Makefile b/math/py-ephem/Makefile
index eafdf26df35..7bd6ce4c207 100644
--- a/math/py-ephem/Makefile
+++ b/math/py-ephem/Makefile
@@ -1,30 +1,21 @@
-# $NetBSD: Makefile,v 1.5 2009/05/19 08:59:23 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2010/09/20 09:52:14 obache Exp $
#
-DISTNAME= pyephem-3.7b
+DISTNAME= pyephem-3.7.3.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/pyephem/ephem/}
CATEGORIES= geography
-MASTER_SITES= http://www.rhodesmill.org/brandon/projects/
+MASTER_SITES= http://pypi.python.org/packages/source/p/pyephem/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.rhodesmill.org/brandon/projects/pyephem.html
COMMENT= Scientific-grade astronomical computations for Python
-# See ../../x11/xephem/Makefile.
-LICENSE= xephem-license
-
-RESTRICTED= Combined work is both GPL and non-Free
-NO_BIN_ON_FTP= ${RESTRICTED}
-NO_BIN_ON_CDROM= ${RESTRICTED}
+LICENSE= gnu-lgpl-v3 OR gnu-gpl-v3
PKG_DESTDIR_SUPPORT= user-destdir
-PYDISTUTILSPKG= true
-
-INSTALLATION_DIRS= share/doc/${PKGNAME}
-
-post-install:
- ${INSTALL} ${WRKSRC}/doc/pyephem-manual.html ${DESTDIR}${PREFIX}/share/doc/${PKGNAME}
+do-test:
+ (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${TEST_ENV} ${MAKE_ENV} \
+ ${PYTHONBIN} ${PYSETUP} ${PYSETUPARGS} "test")
-.include "../../lang/python/extension.mk"
-.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/math/py-ephem/PLIST b/math/py-ephem/PLIST
index 0647a22f67f..d1de482b500 100644
--- a/math/py-ephem/PLIST
+++ b/math/py-ephem/PLIST
@@ -1,3 +1,93 @@
-@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:05:47 joerg Exp $
-${PYSITELIB}/ephem.so
-share/doc/${PKGNAME}/pyephem-manual.html
+@comment $NetBSD: PLIST,v 1.3 2010/09/20 09:52:14 obache Exp $
+${PYSITELIB}/ephem/__init__.py
+${PYSITELIB}/ephem/__init__.pyc
+${PYSITELIB}/ephem/__init__.pyo
+${PYSITELIB}/ephem/_libastro.so
+${PYSITELIB}/ephem/cities.py
+${PYSITELIB}/ephem/cities.pyc
+${PYSITELIB}/ephem/cities.pyo
+${PYSITELIB}/ephem/doc/CHANGELOG.rst
+${PYSITELIB}/ephem/doc/angle.rst
+${PYSITELIB}/ephem/doc/catalogs.rst
+${PYSITELIB}/ephem/doc/coordinates.rst
+${PYSITELIB}/ephem/doc/date.rst
+${PYSITELIB}/ephem/doc/examples.rst
+${PYSITELIB}/ephem/doc/faq.rst
+${PYSITELIB}/ephem/doc/index.rst
+${PYSITELIB}/ephem/doc/newton.rst
+${PYSITELIB}/ephem/doc/quick.rst
+${PYSITELIB}/ephem/doc/radec.rst
+${PYSITELIB}/ephem/doc/tutorial.rst
+${PYSITELIB}/ephem/stars.py
+${PYSITELIB}/ephem/stars.pyc
+${PYSITELIB}/ephem/stars.pyo
+${PYSITELIB}/ephem/tests/__init__.py
+${PYSITELIB}/ephem/tests/__init__.pyc
+${PYSITELIB}/ephem/tests/__init__.pyo
+${PYSITELIB}/ephem/tests/ephem_test.py
+${PYSITELIB}/ephem/tests/ephem_test.pyc
+${PYSITELIB}/ephem/tests/ephem_test.pyo
+${PYSITELIB}/ephem/tests/jpl/europa.txt
+${PYSITELIB}/ephem/tests/jpl/hyperion.txt
+${PYSITELIB}/ephem/tests/jpl/jupiter.txt
+${PYSITELIB}/ephem/tests/jpl/mars.txt
+${PYSITELIB}/ephem/tests/jpl/neptune.txt
+${PYSITELIB}/ephem/tests/jpl/oberon.txt
+${PYSITELIB}/ephem/tests/jpl/phobos.txt
+${PYSITELIB}/ephem/tests/jpl/saturn.txt
+${PYSITELIB}/ephem/tests/jpl/uranus.txt
+${PYSITELIB}/ephem/tests/launchpad_236872.py
+${PYSITELIB}/ephem/tests/launchpad_236872.pyc
+${PYSITELIB}/ephem/tests/launchpad_236872.pyo
+${PYSITELIB}/ephem/tests/launchpad_244811.py
+${PYSITELIB}/ephem/tests/launchpad_244811.pyc
+${PYSITELIB}/ephem/tests/launchpad_244811.pyo
+${PYSITELIB}/ephem/tests/test_angles.py
+${PYSITELIB}/ephem/tests/test_angles.pyc
+${PYSITELIB}/ephem/tests/test_angles.pyo
+${PYSITELIB}/ephem/tests/test_bodies.py
+${PYSITELIB}/ephem/tests/test_bodies.pyc
+${PYSITELIB}/ephem/tests/test_bodies.pyo
+${PYSITELIB}/ephem/tests/test_constants.py
+${PYSITELIB}/ephem/tests/test_constants.pyc
+${PYSITELIB}/ephem/tests/test_constants.pyo
+${PYSITELIB}/ephem/tests/test_dates.py
+${PYSITELIB}/ephem/tests/test_dates.pyc
+${PYSITELIB}/ephem/tests/test_dates.pyo
+${PYSITELIB}/ephem/tests/test_jpl.py
+${PYSITELIB}/ephem/tests/test_jpl.pyc
+${PYSITELIB}/ephem/tests/test_jpl.pyo
+${PYSITELIB}/ephem/tests/test_observers.py
+${PYSITELIB}/ephem/tests/test_observers.pyc
+${PYSITELIB}/ephem/tests/test_observers.pyo
+${PYSITELIB}/ephem/tests/test_rst.py
+${PYSITELIB}/ephem/tests/test_rst.pyc
+${PYSITELIB}/ephem/tests/test_rst.pyo
+${PYSITELIB}/ephem/tests/test_satellite.py
+${PYSITELIB}/ephem/tests/test_satellite.pyc
+${PYSITELIB}/ephem/tests/test_satellite.pyo
+${PYSITELIB}/ephem/tests/test_usno.py
+${PYSITELIB}/ephem/tests/test_usno.pyc
+${PYSITELIB}/ephem/tests/test_usno.pyo
+${PYSITELIB}/ephem/tests/test_usno_equinoxes.py
+${PYSITELIB}/ephem/tests/test_usno_equinoxes.pyc
+${PYSITELIB}/ephem/tests/test_usno_equinoxes.pyo
+${PYSITELIB}/ephem/tests/usno/appgeo_deneb.txt
+${PYSITELIB}/ephem/tests/usno/appgeo_jupiter.txt
+${PYSITELIB}/ephem/tests/usno/appgeo_moon.txt
+${PYSITELIB}/ephem/tests/usno/appgeo_sun.txt
+${PYSITELIB}/ephem/tests/usno/apptopo_deneb.txt
+${PYSITELIB}/ephem/tests/usno/apptopo_moon.txt
+${PYSITELIB}/ephem/tests/usno/apptopo_sun.txt
+${PYSITELIB}/ephem/tests/usno/astrom_antares.txt
+${PYSITELIB}/ephem/tests/usno/astrom_mercury.txt
+${PYSITELIB}/ephem/tests/usno/astrom_neptune.txt
+${PYSITELIB}/ephem/tests/usno/moon_phases.txt
+${PYSITELIB}/ephem/tests/usno/riset_moon.txt
+${PYSITELIB}/ephem/tests/usno/riset_sun.txt
+${PYSITELIB}/ephem/tests/usno/risettran_moon.txt
+${PYSITELIB}/ephem/tests/usno/risettran_rigel.txt
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
diff --git a/math/py-ephem/distinfo b/math/py-ephem/distinfo
index b73ce78e044..f346973445e 100644
--- a/math/py-ephem/distinfo
+++ b/math/py-ephem/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/11/13 15:55:55 wulf Exp $
+$NetBSD: distinfo,v 1.2 2010/09/20 09:52:14 obache Exp $
-SHA1 (pyephem-3.7b.tar.gz) = 541346dbcad966bcc8be407722132304c3d2bc3a
-RMD160 (pyephem-3.7b.tar.gz) = bc1b1a8312dbc95735b6c1b82439d604992a942f
-Size (pyephem-3.7b.tar.gz) = 299901 bytes
+SHA1 (pyephem-3.7.3.4.tar.gz) = d1be94b2f0314a6ec572787c6d1b39ffbbb8ea5c
+RMD160 (pyephem-3.7.3.4.tar.gz) = 798b79bebf094bd3d5b22a598281c564e974e89e
+Size (pyephem-3.7.3.4.tar.gz) = 704097 bytes