git: 45a0496cb1df - main - astro/py-astral: New port

Guangyuan Yang ygy at FreeBSD.org
Wed Jun 30 06:43:56 UTC 2021


The branch main has been updated by ygy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=45a0496cb1dfee43b1abf7f5bd95bbbdc05d1969

commit 45a0496cb1dfee43b1abf7f5bd95bbbdc05d1969
Author:     rozhuk.im <rozhuk.im at gmail.com>
AuthorDate: 2021-06-30 06:43:35 +0000
Commit:     Guangyuan Yang <ygy at FreeBSD.org>
CommitDate: 2021-06-30 06:43:35 +0000

    astro/py-astral: New port
    
    Calculations for the position of the sun and moon.
    
    PR:             252078
    Approved by:    lwhsu (mentor)
---
 astro/Makefile            |  1 +
 astro/py-astral/Makefile  | 19 +++++++++++++++++++
 astro/py-astral/distinfo  |  3 +++
 astro/py-astral/pkg-descr |  7 +++++++
 4 files changed, 30 insertions(+)

diff --git a/astro/Makefile b/astro/Makefile
index cce18cbe32a6..3ff584319b84 100644
--- a/astro/Makefile
+++ b/astro/Makefile
@@ -79,6 +79,7 @@
     SUBDIR += pp3
     SUBDIR += ptiger
     SUBDIR += py-astlib
+    SUBDIR += py-astral
     SUBDIR += py-astropy
     SUBDIR += py-astropy-helpers
     SUBDIR += py-ephem
diff --git a/astro/py-astral/Makefile b/astro/py-astral/Makefile
new file mode 100644
index 000000000000..f500330f99c5
--- /dev/null
+++ b/astro/py-astral/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	astral
+DISTVERSION=	2.2
+CATEGORIES=	astro python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME}-${PORTVERSION}
+
+MAINTAINER=	ygy at FreeBSD.org
+COMMENT=	Calculations for the position of the sun and moon
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+.include <bsd.port.mk>
diff --git a/astro/py-astral/distinfo b/astro/py-astral/distinfo
new file mode 100644
index 000000000000..ec0564484527
--- /dev/null
+++ b/astro/py-astral/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1624727522
+SHA256 (astral-2.2.tar.gz) = e41d9967d5c48be421346552f0f4dedad43ff39a83574f5ff2ad32b6627b6fbe
+SIZE (astral-2.2.tar.gz) = 578223
diff --git a/astro/py-astral/pkg-descr b/astro/py-astral/pkg-descr
new file mode 100644
index 000000000000..d6929d89f6af
--- /dev/null
+++ b/astro/py-astral/pkg-descr
@@ -0,0 +1,7 @@
+Astral is a python package for calculating the times of various
+aspects of the sun and phases of the moon. It can calculate times for
+various positions of the sun: dawn, sunrise, solar noon, sunset,
+dusk, solar elevation, solar azimuth and rahukaalam, as well as the
+phase of the moon for a specified date.
+
+WWW: https://github.com/sffjunkie/astral


More information about the dev-commits-ports-main mailing list