1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

astro/py-astral: Fix RUN_DEPENDS

- Remove DISTNAME
- Convert to USE_PYTHON=pep517
- Add NO_ARCH
- Update pkg-descr
- Bump PORTREVISION for dependency and package change
This commit is contained in:
Po-Chuan Hsieh 2024-09-18 13:56:14 +08:00
parent ae53a94055
commit f09fbaea96
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
2 changed files with 19 additions and 10 deletions

View File

@ -1,20 +1,29 @@
PORTNAME= astral
DISTVERSION= 3.2
PORTREVISION= 1
CATEGORIES= astro python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Calculations for the position of the sun and moon
WWW= https://github.com/sffjunkie/astral
WWW= https://sffjunkie.github.io/astral/ \
https://github.com/sffjunkie/astral
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR}
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=0:devel/py-poetry-core@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent distutils
USE_PYTHON= autoplist concurrent pep517
.include <bsd.port.mk>
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 30900
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}backports.zoneinfo>=0:devel/py-backports.zoneinfo@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>

View File

@ -1,5 +1,5 @@
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.
Astral is a Python module which calculates:
- Times for various positions of the sun: dawn, sunrise, solar noon, sunset,
dusk, solar elevation, solar azimuth and rahukaalam.
- Moon rise, set, azimuth and zenith.
- The phase of the moon.