git: 5031dce7f265 - main - devel/py-backports.zoneinfo: Add TZDATA option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 15 Sep 2024 20:16:19 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5031dce7f265b5d264f92c542268364fd875bfe4
commit 5031dce7f265b5d264f92c542268364fd875bfe4
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-15 19:43:13 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-15 20:09:43 +0000
devel/py-backports.zoneinfo: Add TZDATA option
- Update WWW
- Convert to USE_PYTHON=pep517
- Strip shared library
- Bump PORTREVISION for dependency and package change
---
devel/py-backports.zoneinfo/Makefile | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/devel/py-backports.zoneinfo/Makefile b/devel/py-backports.zoneinfo/Makefile
index 3ef21f10f732..2874a8623050 100644
--- a/devel/py-backports.zoneinfo/Makefile
+++ b/devel/py-backports.zoneinfo/Makefile
@@ -1,20 +1,34 @@
PORTNAME= backports.zoneinfo
DISTVERSION= 0.2.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Backport of the standard library module zoneinfo
-WWW= https://github.com/pganssle/zoneinfo
+WWW= https://zoneinfo.readthedocs.io/en/latest/ \
+ https://github.com/pganssle/zoneinfo
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=40.8.0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
USES= python
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent pep517
+
# We already have Python 3.7 as minimal supported release, force positive checks
CFLAGS+= -DATLEAST_37
+OPTIONS_DEFINE= TZDATA
+OPTIONS_DEFAULT=TZDATA
+TZDATA_DESC= IANA time zone data support
+
+TZDATA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tzdata>=0:devel/py-tzdata@${PY_FLAVOR}
+
+post-install:
+ ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
+
.include <bsd.port.mk>