git: d16f34bd07d3 - main - x11-fonts/py-fclist-cffi: Add new port

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Fri, 04 Oct 2024 21:04:20 UTC
The branch main has been updated by nivit:

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

commit d16f34bd07d3d2e48248b5b3ae8eeebf3cc6b844
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2024-10-04 21:01:24 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2024-10-04 21:04:09 +0000

    x11-fonts/py-fclist-cffi: Add new port
    
    Python cffi bridge to fontconfig's FcFontList/FcFontMatch.
    
    Useful for python programs that need to query information about fonts
    installed in the system (use this instead of parsing fc-list output).
    Requires the fontconfig shared library installed in a directory that
    the cffi module can find.
    
    https://github.com/MonsieurV/python-fclist
---
 x11-fonts/Makefile                 |  1 +
 x11-fonts/py-fclist-cffi/Makefile  | 20 ++++++++++++++++++++
 x11-fonts/py-fclist-cffi/distinfo  |  3 +++
 x11-fonts/py-fclist-cffi/pkg-descr |  6 ++++++
 4 files changed, 30 insertions(+)

diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index c7a5ba85323d..8f3de42181e3 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -288,6 +288,7 @@
     SUBDIR += py-compreffor
     SUBDIR += py-cu2qu
     SUBDIR += py-defcon
+    SUBDIR += py-fclist-cffi
     SUBDIR += py-fontMath
     SUBDIR += py-fontfeatures
     SUBDIR += py-fontmake
diff --git a/x11-fonts/py-fclist-cffi/Makefile b/x11-fonts/py-fclist-cffi/Makefile
new file mode 100644
index 000000000000..012d4caa4084
--- /dev/null
+++ b/x11-fonts/py-fclist-cffi/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	fclist-cffi
+DISTVERSION=	1.1.2
+CATEGORIES=	x11-fonts python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	nivit@FreeBSD.org
+COMMENT=	Python cffi bridge to fontconfig's FcFontList/FcFontMatch
+WWW=		https://github.com/MonsieurV/python-fclist
+
+LICENSE=	MIT
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.17.1:devel/py-cffi@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/py-fclist-cffi/distinfo b/x11-fonts/py-fclist-cffi/distinfo
new file mode 100644
index 000000000000..608767a7bd5d
--- /dev/null
+++ b/x11-fonts/py-fclist-cffi/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1727165846
+SHA256 (fclist-cffi-1.1.2.tar.gz) = 1bb3c039156b8b1913b9e582d4a8f1a48b3d8ea56e5152d604c020874a7e779a
+SIZE (fclist-cffi-1.1.2.tar.gz) = 3691
diff --git a/x11-fonts/py-fclist-cffi/pkg-descr b/x11-fonts/py-fclist-cffi/pkg-descr
new file mode 100644
index 000000000000..11e89a2faa72
--- /dev/null
+++ b/x11-fonts/py-fclist-cffi/pkg-descr
@@ -0,0 +1,6 @@
+Python cffi bridge to fontconfig's FcFontList/FcFontMatch.
+
+Useful for python programs that need to query information about fonts installed
+in the system (use this instead of parsing fc-list output). Requires the
+fontconfig shared library installed in a directory that the cffi module can
+find.