git: ab1f1dc93817 - main - chinese/py-chinese-calendar: New port: Check if some day is holiday in China

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 19 Jun 2026 06:37:10 UTC
The branch main has been updated by yuri:

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

commit ab1f1dc93817b97e683b7cf34e658dde7eccda0f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-19 05:14:23 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-19 06:36:58 +0000

    chinese/py-chinese-calendar: New port: Check if some day is holiday in China
---
 chinese/Makefile                      |  1 +
 chinese/py-chinese-calendar/Makefile  | 22 ++++++++++++++++++++++
 chinese/py-chinese-calendar/distinfo  |  3 +++
 chinese/py-chinese-calendar/pkg-descr |  4 ++++
 4 files changed, 30 insertions(+)

diff --git a/chinese/Makefile b/chinese/Makefile
index 8fefd1d64a93..e83d21c027db 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -89,6 +89,7 @@
     SUBDIR += pcmanx
     SUBDIR += php-opencc
     SUBDIR += phpbb3-tw
+    SUBDIR += py-chinese-calendar
     SUBDIR += py-rjieba
     SUBDIR += pycangjie
     SUBDIR += pyzy
diff --git a/chinese/py-chinese-calendar/Makefile b/chinese/py-chinese-calendar/Makefile
new file mode 100644
index 000000000000..90594c9eefab
--- /dev/null
+++ b/chinese/py-chinese-calendar/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	chinese-calendar
+PORTVERSION=	1.11.0
+CATEGORIES=	chinese python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	chinese_calendar-${PORTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Check if some day is holiday in China
+WWW=		https://github.com/liriansu-opus/chinese-calendar
+
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 concurrent autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/chinese/py-chinese-calendar/distinfo b/chinese/py-chinese-calendar/distinfo
new file mode 100644
index 000000000000..729bb01e3bbe
--- /dev/null
+++ b/chinese/py-chinese-calendar/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1781842763
+SHA256 (chinese_calendar-1.11.0.tar.gz) = 931d9187cbf7bb1dc09685dedb5013e74678bbe03a173d71d46b76afc37f2597
+SIZE (chinese_calendar-1.11.0.tar.gz) = 16607
diff --git a/chinese/py-chinese-calendar/pkg-descr b/chinese/py-chinese-calendar/pkg-descr
new file mode 100644
index 000000000000..0a01807c6d66
--- /dev/null
+++ b/chinese/py-chinese-calendar/pkg-descr
@@ -0,0 +1,4 @@
+Check if some day is holiday in China.
+
+Determines whether a given date is a workday or holiday in China,
+covering 2004 through 2026.