Date: Wed, 21 Feb 2024 15:17:32 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 8433ea805d59 - main - x11-fonts/py-gfsubsets: Add py-gfsubsets 2024.2.5 Message-ID: <202402211517.41LFHWto012850@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=8433ea805d592c329c7cd3ffa5429b63c561aab1 commit 8433ea805d592c329c7cd3ffa5429b63c561aab1 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-02-21 14:13:48 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-02-21 15:06:11 +0000 x11-fonts/py-gfsubsets: Add py-gfsubsets 2024.2.5 This is the collection of nam files (codepoint subsets) that are used to subset fonts before serving on the Google Fonts CSS API. The Python module gfsubsets provides an interface to these subset definitions. It exports the following functions: - CodepointsInFont(filename): Lists the Unicode codepoints supported by the font - ListSubsets(): Returns the name of all defined subsets. - SubsetsForCodepoint(cp): Returns the names of all subsets including the codepoint. - SubsetForCodepoint(cp): Returns the name of the "most relevant" subset including the codepoint. - CodepointsInSubset(subset): Returns a set of codepoints included in the subset. - SubsetsInFont(filename, min_pct, ext_min_pct): Returns the name of subsets "well" supported by a font. --- x11-fonts/Makefile | 1 + x11-fonts/py-gfsubsets/Makefile | 23 +++++++++++++++++++++++ x11-fonts/py-gfsubsets/distinfo | 3 +++ x11-fonts/py-gfsubsets/files/patch-pyproject.toml | 9 +++++++++ x11-fonts/py-gfsubsets/pkg-descr | 15 +++++++++++++++ 5 files changed, 51 insertions(+) diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile index e34986bf6483..a3f390fda88d 100644 --- a/x11-fonts/Makefile +++ b/x11-fonts/Makefile @@ -243,6 +243,7 @@ SUBDIR += py-fontfeatures SUBDIR += py-fontmake SUBDIR += py-gflanguages + SUBDIR += py-gfsubsets SUBDIR += py-glyphsLib SUBDIR += py-opentype-sanitizer SUBDIR += py-opentypespec diff --git a/x11-fonts/py-gfsubsets/Makefile b/x11-fonts/py-gfsubsets/Makefile new file mode 100644 index 000000000000..393a503fe365 --- /dev/null +++ b/x11-fonts/py-gfsubsets/Makefile @@ -0,0 +1,23 @@ +PORTNAME= gfsubsets +PORTVERSION= 2024.2.5 +CATEGORIES= x11-fonts python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Codepoint definitions for the Google Fonts subsetter +WWW= https://github.com/googlefonts/nam-files + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.0:devel/py-setuptools_scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python:3.9+ +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/x11-fonts/py-gfsubsets/distinfo b/x11-fonts/py-gfsubsets/distinfo new file mode 100644 index 000000000000..19b7af04aed1 --- /dev/null +++ b/x11-fonts/py-gfsubsets/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1708448864 +SHA256 (gfsubsets-2024.2.5.tar.gz) = 83d4312dadc1d4c313b3e8e68f80b2272499454d33a0535875b399c078ca3da4 +SIZE (gfsubsets-2024.2.5.tar.gz) = 1369868 diff --git a/x11-fonts/py-gfsubsets/files/patch-pyproject.toml b/x11-fonts/py-gfsubsets/files/patch-pyproject.toml new file mode 100644 index 000000000000..94611a76ae8d --- /dev/null +++ b/x11-fonts/py-gfsubsets/files/patch-pyproject.toml @@ -0,0 +1,9 @@ +--- pyproject.toml.orig 2024-02-05 09:16:01 UTC ++++ pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools >= 61.0", "setuptools-scm>=8.0"] ++requires = ["setuptools >= 61.0", "setuptools-scm>=6.0"] + build-backend = "setuptools.build_meta" + + [tool.setuptools_scm] diff --git a/x11-fonts/py-gfsubsets/pkg-descr b/x11-fonts/py-gfsubsets/pkg-descr new file mode 100644 index 000000000000..98d4a9069c36 --- /dev/null +++ b/x11-fonts/py-gfsubsets/pkg-descr @@ -0,0 +1,15 @@ +This is the collection of nam files (codepoint subsets) that are used to subset +fonts before serving on the Google Fonts CSS API. + +The Python module gfsubsets provides an interface to these subset definitions. +It exports the following functions: +- CodepointsInFont(filename): Lists the Unicode codepoints supported by the font +- ListSubsets(): Returns the name of all defined subsets. +- SubsetsForCodepoint(cp): Returns the names of all subsets including the + codepoint. +- SubsetForCodepoint(cp): Returns the name of the "most relevant" subset + including the codepoint. +- CodepointsInSubset(subset): Returns a set of codepoints included in the + subset. +- SubsetsInFont(filename, min_pct, ext_min_pct): Returns the name of subsets + "well" supported by a font.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402211517.41LFHWto012850>