git: 6fd1f92762f0 - main - astro/py-kosmorrolib: repocopy from astro/kosmorro
Thierry Thomas
thierry at FreeBSD.org
Tue Jun 1 20:09:26 UTC 2021
The branch main has been updated by thierry:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6fd1f92762f09efa7677a4007dc798ebf160e5c8
commit 6fd1f92762f09efa7677a4007dc798ebf160e5c8
Author: Thierry Thomas <thierry at FreeBSD.org>
AuthorDate: 2021-05-31 20:33:55 +0000
Commit: Thierry Thomas <thierry at FreeBSD.org>
CommitDate: 2021-06-01 20:08:58 +0000
astro/py-kosmorrolib: repocopy from astro/kosmorro
Adding Kosmorrolib, a library to compute your ephemerides.
---
astro/py-kosmorrolib/Makefile | 65 +++++++++++++++++++++++++++++
astro/py-kosmorrolib/distinfo | 3 ++
astro/py-kosmorrolib/pkg-descr | 17 ++++++++
astro/py-kosmorrolib/pkg-plist | 92 ++++++++++++++++++++++++++++++++++++++++++
4 files changed, 177 insertions(+)
diff --git a/astro/py-kosmorrolib/Makefile b/astro/py-kosmorrolib/Makefile
new file mode 100644
index 000000000000..508c8af6502a
--- /dev/null
+++ b/astro/py-kosmorrolib/Makefile
@@ -0,0 +1,65 @@
+# Created by: thierry at pompo.net
+
+PORTNAME= kosmorro
+PORTVERSION= 0.9.0
+DISTVERSIONPREFIX= v
+CATEGORIES= astro python
+
+MAINTAINER= thierry at FreeBSD.org
+COMMENT= Ephemerides computation
+
+LICENSE= AGPLv3
+
+BUILD_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}skyfield>0:astro/py-skyfield@${PY_FLAVOR}\
+ ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR}\
+ ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR}\
+ ${PYTHON_PKGNAMEPREFIX}termcolor>0:devel/py-termcolor@${PY_FLAVOR}
+RUN_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}skyfield>0:astro/py-skyfield@${PY_FLAVOR}\
+ ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR}\
+ ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR}\
+ ${PYTHON_PKGNAMEPREFIX}termcolor>0:devel/py-termcolor@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pipenv>0:devel/py-pipenv@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR}\
+ ${PYTHON_PKGNAMEPREFIX}unittest2>0:devel/py-unittest2@${PY_FLAVOR}
+
+USE_GITHUB= yes
+
+USES= python:3.7+ shebangfix
+USE_PYTHON= distutils noflavors
+SHEBANG_FILES= ${PORTNAME}
+
+OPTIONS_DEFINE= PDF
+OPTIONS_DEFAULT=PDF
+PDF_DESC= Exporting to PDF
+PDF_RUN_DEPENDS=pdflatex:print/tex-formats
+
+NO_ARCH= yes
+
+.include <bsd.port.pre.mk>
+
+# ronn is broken on 11.x => do not build manpages
+.if ${OSVERSION} < 1200000
+PLIST_SUB+= MAN="@comment "
+.else
+BUILD_DEPENDS+= ronn:textproc/rubygem-ronn
+PLIST_SUB+= MAN=""
+.endif
+
+pre-configure:
+ ${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|' ${WRKSRC}/Makefile
+.if ${OSVERSION} < 1200000
+ ${REINPLACE_CMD} -e 's|i18n manpages|manpages|' ${WRKSRC}/Makefile
+ ${REINPLACE_CMD} -e '/manpage\/kosmorro/d' ${WRKSRC}/setup.py
+.else
+
+post-build:
+ (cd ${WRKSRC} && LC_ALL=C.UTF-8 ${MAKE} manpages)
+.endif
+
+do-test: install
+ #(cd ${WRKSRC} && ${MAKE} test)
+ ${DO_NADA} # It uses unittest-data-provider which is deprecated
+
+.include <bsd.port.post.mk>
diff --git a/astro/py-kosmorrolib/distinfo b/astro/py-kosmorrolib/distinfo
new file mode 100644
index 000000000000..54f9e679ae17
--- /dev/null
+++ b/astro/py-kosmorrolib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1613319434
+SHA256 (kosmorro-kosmorro-v0.9.0_GH0.tar.gz) = c875c5f31946e0ebc23e9a8b0564f318f5c752fc43d17f412105133920f79620
+SIZE (kosmorro-kosmorro-v0.9.0_GH0.tar.gz) = 532125
diff --git a/astro/py-kosmorrolib/pkg-descr b/astro/py-kosmorrolib/pkg-descr
new file mode 100644
index 000000000000..c56f07facbe1
--- /dev/null
+++ b/astro/py-kosmorrolib/pkg-descr
@@ -0,0 +1,17 @@
+A program that calculates your astronomical ephemerides.
+
+By default, it will give you the current Moon phase and, if any, the events that
+will occur today. To get the rise, culmination and set of the objects of the
+Solar system, you will need to give it your position on Earth: get your current
+coordinates (with OpenStreetMap for instance), and give them to Kosmorro by
+invoking it with the following parameters: --latitude=X --longitude=Y (replace X
+by the latitude and Y by the longitude).
+
+Kosmorro has a lot of available options. To get a list of them, run kosmorro
+--help, or read its manual with man kosmorro.
+
+Note: the first time it runs, Kosmorro will download some important files needed
+to make the computations. They are stored in a cache folder named
+~/.kosmorro-cache .
+
+WWW: http://kosmorro.space/
diff --git a/astro/py-kosmorrolib/pkg-plist b/astro/py-kosmorrolib/pkg-plist
new file mode 100644
index 000000000000..0b767fc388dd
--- /dev/null
+++ b/astro/py-kosmorrolib/pkg-plist
@@ -0,0 +1,92 @@
+bin/kosmorro
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__init__.py
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/core.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/core.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/data.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/data.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/dateutil.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/dateutil.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/dumper.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/dumper.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/enum.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/enum.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/ephemerides.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/ephemerides.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/events.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/events.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/exceptions.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/exceptions.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/i18n.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/i18n.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/main.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/main.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/version.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/version.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/png/first-quarter.png
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/png/full-moon.png
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/png/last-quarter.png
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/png/new-moon.png
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/png/unknown.png
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/png/waning-crescent.png
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/png/waning-gibbous.png
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/png/waxing-crescent.png
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/png/waxing-gibbous.png
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/svg/first-quarter.svg
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/svg/full-moon.svg
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/svg/last-quarter.svg
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/svg/new-moon.svg
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/svg/unknown.svg
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/svg/waning-crescent.svg
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/svg/waning-gibbous.svg
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/svg/waxing-crescent.svg
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/moonphases/svg/waxing-gibbous.svg
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/pdf/kosmorro.sty
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/pdf/template.tex
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/png/kosmorro-icon-white.png
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/png/kosmorro-icon.png
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/png/kosmorro-logo-white.png
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/png/kosmorro-logo.png
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/svg/kosmorro-icon-white.svg
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/svg/kosmorro-icon.svg
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/svg/kosmorro-logo-white.svg
+%%PYTHON_SITELIBDIR%%/kosmorrolib/assets/svg/kosmorro-logo.svg
+%%PYTHON_SITELIBDIR%%/kosmorrolib/core.py
+%%PYTHON_SITELIBDIR%%/kosmorrolib/data.py
+%%PYTHON_SITELIBDIR%%/kosmorrolib/dateutil.py
+%%PYTHON_SITELIBDIR%%/kosmorrolib/dumper.py
+%%PYTHON_SITELIBDIR%%/kosmorrolib/enum.py
+%%PYTHON_SITELIBDIR%%/kosmorrolib/ephemerides.py
+%%PYTHON_SITELIBDIR%%/kosmorrolib/events.py
+%%PYTHON_SITELIBDIR%%/kosmorrolib/exceptions.py
+%%PYTHON_SITELIBDIR%%/kosmorrolib/i18n.py
+%%PYTHON_SITELIBDIR%%/kosmorrolib/locales/messages.pot
+%%PYTHON_SITELIBDIR%%/kosmorrolib/main.py
+%%PYTHON_SITELIBDIR%%/kosmorrolib/version.py
+%%PYTHON_SITELIBDIR%%/test/__init__.py
+%%PYTHON_SITELIBDIR%%/test/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/core.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/core.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/data.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/data.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/dateutil.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/dateutil.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/dumper.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/dumper.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/ephemerides.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/ephemerides.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/events.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/events.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/testutils.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/test/__pycache__/testutils.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/test/core.py
+%%PYTHON_SITELIBDIR%%/test/data.py
+%%PYTHON_SITELIBDIR%%/test/dateutil.py
+%%PYTHON_SITELIBDIR%%/test/dumper.py
+%%PYTHON_SITELIBDIR%%/test/ephemerides.py
+%%PYTHON_SITELIBDIR%%/test/events.py
+%%PYTHON_SITELIBDIR%%/test/testutils.py
+%%MAN%%man/man1/kosmorro.1.gz
+%%MAN%%man/man7/kosmorro.7.gz
More information about the dev-commits-ports-all
mailing list