1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

print/py-glyphsets: Add py-glyphsets 0.2.1

glyphsets helps evaluate coverage of glyph sets in font projects

If you are a font developer or typeface designer, see the
"Lib/glyphsets/encodings/GF Glyph Sets" subdirectory which provides glyph set
definition "standards" that are typically useful sets to draw.

On the other hand, the nam files on the "Lib/glyphsets/encodings" directory are
probably more useful for expert web developers. Those files explain how the
Unicode Range subsets are defined, typically per script (writing system), in the
Google Fonts css API.

WWW: https://github.com/googlefonts/glyphsets
This commit is contained in:
Po-Chuan Hsieh 2022-01-29 07:09:22 +08:00
parent 40159dc4fb
commit 7ae57c3925
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
5 changed files with 65 additions and 0 deletions

View File

@ -181,6 +181,7 @@
SUBDIR += py-fonttools
SUBDIR += py-fpdf
SUBDIR += py-frescobaldi
SUBDIR += py-glyphsets
SUBDIR += py-glyphtools
SUBDIR += py-pdf
SUBDIR += py-pdf2

View File

@ -0,0 +1,29 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
PORTNAME= glyphsets
PORTVERSION= 0.2.1
DISTVERSIONPREFIX= v
CATEGORIES= print python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Python API for evaluating coverage of glyph sets in font projects
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=4:devel/py-setuptools_scm@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fonttools>=0:print/py-fonttools@${PY_FLAVOR}
USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
GH_ACCOUNT= googlefonts
USE_GITHUB= yes
post-patch:
@${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${WRKSRC}/setup.py
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1643382486
SHA256 (googlefonts-glyphsets-v0.2.1_GH0.tar.gz) = dab3c915f1137eb5a16ea22b679b9e1408d1184134946b1905d90268fe46fe82
SIZE (googlefonts-glyphsets-v0.2.1_GH0.tar.gz) = 1265612

View File

@ -0,0 +1,20 @@
--- setup.py.orig 2021-12-17 07:16:14 UTC
+++ setup.py
@@ -24,7 +24,7 @@ with open('README.md') as f:
setup(
name="glyphsets",
- use_scm_version={"write_to": "Lib/glyphsets/_version.py"},
+ use_scm_version={"fallback_version": "%%PORTVERSION%%", "write_to": "Lib/glyphsets/_version.py"},
url='https://github.com/googlefonts/glyphsets/',
description='A python API for evaluating coverage of glyph sets in font projects.',
long_description=long_description,
@@ -52,7 +52,7 @@ setup(
'Programming Language :: Python :: 3'
],
python_requires=">=3.7",
- setup_requires=['setuptools_scm>=4,<6.1'],
+ setup_requires=['setuptools_scm>=4'],
install_requires=[
'setuptools',
'FontTools[ufo]',

View File

@ -0,0 +1,12 @@
glyphsets helps evaluate coverage of glyph sets in font projects
If you are a font developer or typeface designer, see the
"Lib/glyphsets/encodings/GF Glyph Sets" subdirectory which provides glyph set
definition "standards" that are typically useful sets to draw.
On the other hand, the nam files on the "Lib/glyphsets/encodings" directory are
probably more useful for expert web developers. Those files explain how the
Unicode Range subsets are defined, typically per script (writing system), in the
Google Fonts css API.
WWW: https://github.com/googlefonts/glyphsets