git: 3e6ee0d240a4 - main - devel/py-xstatic-pygments: New port

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 02 Oct 2024 16:17:37 UTC
The branch main has been updated by bofh:

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

commit 3e6ee0d240a4a5a956131c12c62685dc5e1c8673
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-10-02 05:03:44 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-10-02 16:17:11 +0000

    devel/py-xstatic-pygments: New port
    
    Pygments 2.9.0 (XStatic packaging standard)
    
    Pygments’ builtin CSS packaged for setuptools (easy_install)/pip.
    
    This package is intended to be used by any project that needs these
    files.
    
    It intentionally does not provide any extra code except some metadata
    nor has any extra requirements. You MAY use some minimal support code
    from the XStatic base package, if you like.
    
    WWW:    https://pygments.org/
---
 devel/Makefile                      |  1 +
 devel/py-xstatic-pygments/Makefile  | 23 +++++++++++++++++++++++
 devel/py-xstatic-pygments/distinfo  |  3 +++
 devel/py-xstatic-pygments/pkg-descr |  8 ++++++++
 4 files changed, 35 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 2046c081e2c1..47784a6e5051 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6117,6 +6117,7 @@
     SUBDIR += py-xstatic-jsencrypt
     SUBDIR += py-xstatic-mdi
     SUBDIR += py-xstatic-objectpath
+    SUBDIR += py-xstatic-pygments
     SUBDIR += py-xstatic-rickshaw
     SUBDIR += py-xstatic-roboto-fontface
     SUBDIR += py-xstatic-smart-table
diff --git a/devel/py-xstatic-pygments/Makefile b/devel/py-xstatic-pygments/Makefile
new file mode 100644
index 000000000000..a688a855e3d8
--- /dev/null
+++ b/devel/py-xstatic-pygments/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	xstatic-pygments
+DISTVERSION=	2.9.0.1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	XStatic-Pygments-${DISTVERSION}
+
+MAINTAINER=	bofh@FreeBSD.org
+COMMENT=	Pygments 2.9.0 (XStatic packaging standard)
+WWW=		https://pygments.org/
+
+LICENSE=	BSD2CLAUSE
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+post-patch:
+	@${REINPLACE_CMD} -e "s|xs.PACKAGE_NAME|'xstatic-pygments'|g" \
+		${WRKSRC}/setup.py
+
+.include <bsd.port.mk>
diff --git a/devel/py-xstatic-pygments/distinfo b/devel/py-xstatic-pygments/distinfo
new file mode 100644
index 000000000000..701ab7536b0a
--- /dev/null
+++ b/devel/py-xstatic-pygments/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1727845089
+SHA256 (XStatic-Pygments-2.9.0.1.tar.gz) = 082c1e9fe606fbbef474f78b6fdb19e9a2efcc7a9b7d94163cf66f7bfae75762
+SIZE (XStatic-Pygments-2.9.0.1.tar.gz) = 12293
diff --git a/devel/py-xstatic-pygments/pkg-descr b/devel/py-xstatic-pygments/pkg-descr
new file mode 100644
index 000000000000..1e38a4ffe8c8
--- /dev/null
+++ b/devel/py-xstatic-pygments/pkg-descr
@@ -0,0 +1,8 @@
+Pygments’ builtin CSS packaged for setuptools (easy_install)/pip.
+
+This package is intended to be used by any project that needs these
+files.
+
+It intentionally does not provide any extra code except some metadata
+nor has any extra requirements. You MAY use some minimal support code
+from the XStatic base package, if you like.