Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jun 2021 20:09:26 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 4f9f767e6c1f - main - astro/py-kosmorrolib: adding kosmorrolib-0.11.2
Message-ID:  <202106012009.151K9QB4018100@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4f9f767e6c1f370beafeaa8f3acc6a2763126f56

commit 4f9f767e6c1f370beafeaa8f3acc6a2763126f56
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2021-05-31 21:12:11 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2021-06-01 20:08:58 +0000

    astro/py-kosmorrolib: adding kosmorrolib-0.11.2
---
 astro/Makefile                 |   1 +
 astro/py-kosmorrolib/Makefile  |  66 +++++++-------------------
 astro/py-kosmorrolib/distinfo  |   6 +--
 astro/py-kosmorrolib/pkg-descr |  16 +------
 astro/py-kosmorrolib/pkg-plist | 105 ++++++++---------------------------------
 5 files changed, 43 insertions(+), 151 deletions(-)

diff --git a/astro/Makefile b/astro/Makefile
index 4aeb588765d4..cce18cbe32a6 100644
--- a/astro/Makefile
+++ b/astro/Makefile
@@ -85,6 +85,7 @@
     SUBDIR += py-horoscopegenerator
     SUBDIR += py-indiweb
     SUBDIR += py-jplephem
+    SUBDIR += py-kosmorrolib
     SUBDIR += py-metar
     SUBDIR += py-metpy
     SUBDIR += py-pykep
diff --git a/astro/py-kosmorrolib/Makefile b/astro/py-kosmorrolib/Makefile
index 508c8af6502a..5ae84f39eac5 100644
--- a/astro/py-kosmorrolib/Makefile
+++ b/astro/py-kosmorrolib/Makefile
@@ -1,65 +1,33 @@
 # Created by: thierry@pompo.net
 
-PORTNAME=	kosmorro
-PORTVERSION=	0.9.0
-DISTVERSIONPREFIX=	v
+PORTNAME=	kosmorrolib
+PORTVERSION=	0.11.2
 CATEGORIES=	astro python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	thierry@FreeBSD.org
-COMMENT=	Ephemerides computation
+COMMENT=	Library that computes the ephemerides
 
-LICENSE=	AGPLv3
+LICENSE=	CeCILL-C
+LICENSE_NAME=	${LICENSE}
+LICENSE_TEXT=	CeCILL-C Free Software License Agreement
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
 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}
+		${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${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}
+		${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR}
 
-USE_GITHUB=	yes
+#USE_GITHUB=	yes
+#GH_ACCOUNT=	Kosmorro
+#GH_PROJECT=	lib
 
-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
+USES=		python:3.7+
+USE_PYTHON=	distutils
 
 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>
+.include <bsd.port.mk>
diff --git a/astro/py-kosmorrolib/distinfo b/astro/py-kosmorrolib/distinfo
index 54f9e679ae17..3c3691710565 100644
--- a/astro/py-kosmorrolib/distinfo
+++ b/astro/py-kosmorrolib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1613319434
-SHA256 (kosmorro-kosmorro-v0.9.0_GH0.tar.gz) = c875c5f31946e0ebc23e9a8b0564f318f5c752fc43d17f412105133920f79620
-SIZE (kosmorro-kosmorro-v0.9.0_GH0.tar.gz) = 532125
+TIMESTAMP = 1622494504
+SHA256 (kosmorrolib-0.11.2.tar.gz) = ec1d252fc9ec5ab387f0b49d94a5e4dcb4f99cfb8f0661330c1ae23f2f2b1144
+SIZE (kosmorrolib-0.11.2.tar.gz) = 10510
diff --git a/astro/py-kosmorrolib/pkg-descr b/astro/py-kosmorrolib/pkg-descr
index c56f07facbe1..dc5d313ef53b 100644
--- a/astro/py-kosmorrolib/pkg-descr
+++ b/astro/py-kosmorrolib/pkg-descr
@@ -1,17 +1,5 @@
-A program that calculates your astronomical ephemerides.
+A library 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 .
+It can be used either from your program, or from astro/kosmorro.
 
 WWW: http://kosmorro.space/
diff --git a/astro/py-kosmorrolib/pkg-plist b/astro/py-kosmorrolib/pkg-plist
index 0b767fc388dd..00149e505799 100644
--- a/astro/py-kosmorrolib/pkg-plist
+++ b/astro/py-kosmorrolib/pkg-plist
@@ -1,92 +1,27 @@
-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/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/__version__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/__version__%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/core%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/core%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/dateutil%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/dateutil%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/enum%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/enum%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/ephemerides%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/ephemerides%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/events%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/events%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/exceptions%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/exceptions%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/model%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__pycache__/model%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/kosmorrolib/__version__.py
 %%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
+%%PYTHON_SITELIBDIR%%/kosmorrolib/model.py



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106012009.151K9QB4018100>