git: f09fbaea96bf - main - astro/py-astral: Fix RUN_DEPENDS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 18 Sep 2024 06:19:12 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f09fbaea96bf8df12fd1979946e1ef37c34520be commit f09fbaea96bf8df12fd1979946e1ef37c34520be Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-09-18 05:56:14 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-09-18 06:13:11 +0000 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 --- astro/py-astral/Makefile | 19 ++++++++++++++----- astro/py-astral/pkg-descr | 10 +++++----- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/astro/py-astral/Makefile b/astro/py-astral/Makefile index 5e95a4052374..4f008ae7bfbc 100644 --- a/astro/py-astral/Makefile +++ b/astro/py-astral/Makefile @@ -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> diff --git a/astro/py-astral/pkg-descr b/astro/py-astral/pkg-descr index 7852eab1049f..ee3a9e425496 100644 --- a/astro/py-astral/pkg-descr +++ b/astro/py-astral/pkg-descr @@ -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.