aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-05-16 15:12:46 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-05-16 15:23:46 +0000
commit0d58f5fdaaf0441f40dc94dc1d74c5efe831a3e2 (patch)
tree4e626dfeae5c208ee2bd0e8cd191ba910e301566
parent1f58d8b468b56dc1e51e32972c3d2cfc10dd85c8 (diff)
downloadports-0d58f5fdaaf0441f40dc94dc1d74c5efe831a3e2.tar.gz
ports-0d58f5fdaaf0441f40dc94dc1d74c5efe831a3e2.zip
print/py-dehinter: Add py-dehinter 3.1.0
dehinter is a Python command line application that removes TrueType instruction sets, global hinting tables, and other associated OpenType table data in font files. What it does - Removes OpenType glyf table instruction set bytecode data - Removes OpenType and other TTF hinting related tables - cvt table - fpgm table - hdmx table - LTSH table - prep table - TTFA table (not part of the OpenType specification) - VDMX table - Removes OpenType cvar table from variable fonts - Updates gasp table values - Updates maxp table values - Updates head table bit flags - Displays file sizes of the hinted and dehinted versions of the fonts WWW: https://github.com/source-foundry/dehinter
-rw-r--r--print/Makefile1
-rw-r--r--print/py-dehinter/Makefile22
-rw-r--r--print/py-dehinter/distinfo3
-rw-r--r--print/py-dehinter/pkg-descr16
4 files changed, 42 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile
index 44ad1d3cdfc5..cea14a49af20 100644
--- a/print/Makefile
+++ b/print/Makefile
@@ -170,6 +170,7 @@
SUBDIR += pstotext
SUBDIR += psutils
SUBDIR += py-collidoscope
+ SUBDIR += py-dehinter
SUBDIR += py-font-v
SUBDIR += py-fontaine
SUBDIR += py-fontbakery
diff --git a/print/py-dehinter/Makefile b/print/py-dehinter/Makefile
new file mode 100644
index 000000000000..b1e4efb95f12
--- /dev/null
+++ b/print/py-dehinter/Makefile
@@ -0,0 +1,22 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME= dehinter
+PORTVERSION= 3.1.0
+CATEGORIES= print python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Remove TrueType instruction sets (hints) in fonts
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fonttools>=0:print/py-fonttools@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/print/py-dehinter/distinfo b/print/py-dehinter/distinfo
new file mode 100644
index 000000000000..6a95b517c135
--- /dev/null
+++ b/print/py-dehinter/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1620928537
+SHA256 (dehinter-3.1.0.tar.gz) = 0654d06af0086e2d862fb426451a18c5f2aae52ae3afbb2e389ff30c6a9d493e
+SIZE (dehinter-3.1.0.tar.gz) = 16205
diff --git a/print/py-dehinter/pkg-descr b/print/py-dehinter/pkg-descr
new file mode 100644
index 000000000000..093b20d84d0d
--- /dev/null
+++ b/print/py-dehinter/pkg-descr
@@ -0,0 +1,16 @@
+dehinter is a Python command line application that removes TrueType instruction
+sets, global hinting tables, and other associated OpenType table data in font
+files.
+
+What it does
+- Removes OpenType glyf table instruction set bytecode data
+- Removes OpenType and other TTF hinting related tables - cvt table - fpgm table
+- hdmx table - LTSH table - prep table - TTFA table (not part of the OpenType
+ specification) - VDMX table
+- Removes OpenType cvar table from variable fonts
+- Updates gasp table values
+- Updates maxp table values
+- Updates head table bit flags
+- Displays file sizes of the hinted and dehinted versions of the fonts
+
+WWW: https://github.com/source-foundry/dehinter