summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--x11-fonts/Makefile1
-rw-r--r--x11-fonts/py-vfblib/Makefile27
-rw-r--r--x11-fonts/py-vfblib/distinfo3
-rw-r--r--x11-fonts/py-vfblib/files/patch-setup.cfg9
-rw-r--r--x11-fonts/py-vfblib/pkg-descr8
5 files changed, 48 insertions, 0 deletions
diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile
index f2d7e4bb92bb..0f23e622cf90 100644
--- a/x11-fonts/Makefile
+++ b/x11-fonts/Makefile
@@ -295,6 +295,7 @@
SUBDIR += py-ufolint
SUBDIR += py-ufonormalizer
SUBDIR += py-ufoprocessor
+ SUBDIR += py-vfblib
SUBDIR += raleway
SUBDIR += roboto-fonts-ttf
SUBDIR += sgifonts
diff --git a/x11-fonts/py-vfblib/Makefile b/x11-fonts/py-vfblib/Makefile
new file mode 100644
index 000000000000..223d06b9f823
--- /dev/null
+++ b/x11-fonts/py-vfblib/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= vfblib
+PORTVERSION= 0.6.5
+CATEGORIES= x11-fonts python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Tools for converting FontLab Studio 5 (VFB) files
+WWW= https://github.com/LucasFonts/vfbLib
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=45:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}defcon>=0.10.2:x11-fonts/py-defcon@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}fonttools>=4.45.1:print/py-fonttools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.8.0:devel/py-typing-extensions@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}ufolib2>=0.16.0:print/py-ufolib2@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}ufonormalizer>=0.6.1:x11-fonts/py-ufonormalizer@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/x11-fonts/py-vfblib/distinfo b/x11-fonts/py-vfblib/distinfo
new file mode 100644
index 000000000000..b2f07719778f
--- /dev/null
+++ b/x11-fonts/py-vfblib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1715842488
+SHA256 (vfblib-0.6.5.tar.gz) = 8b9832a16b414c42e8d096b55dd8ee0e7548335b8f9bef0f397664ede42306dd
+SIZE (vfblib-0.6.5.tar.gz) = 66418
diff --git a/x11-fonts/py-vfblib/files/patch-setup.cfg b/x11-fonts/py-vfblib/files/patch-setup.cfg
new file mode 100644
index 000000000000..f78592632a0a
--- /dev/null
+++ b/x11-fonts/py-vfblib/files/patch-setup.cfg
@@ -0,0 +1,9 @@
+--- setup.cfg.orig 2024-05-08 13:54:41 UTC
++++ setup.cfg
+@@ -1,5 +1,5 @@
+ [metadata]
+-name = vfbLib
++name = vfblib
+ version = 0.6.5
+ description = Tools for converting FontLab Studio 5 (VFB) files.
+ long_description = file: DESCRIPTION.md
diff --git a/x11-fonts/py-vfblib/pkg-descr b/x11-fonts/py-vfblib/pkg-descr
new file mode 100644
index 000000000000..16949f981904
--- /dev/null
+++ b/x11-fonts/py-vfblib/pkg-descr
@@ -0,0 +1,8 @@
+vfbLib is a converter and deserializer for FontLab Studio 5 VFB files.
+
+FontLab's own vfb2ufo converter is from 2015, only outputs UFO v2, and contains
+serious bugs that are never going to be fixed. Its support on macOS is subject
+to Apple's mercy (no native support for Apple Silicon).
+
+That's why a single determined programmer with a hex editor set out to rectify
+this situation.