mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
Add py-ttfautohint-py 0.4.3
ttfautohint-py is a Python wrapper for ttfautohint, a free auto-hinter for TrueType fonts. It uses ctypes to load the libttfautohint shared library and call the TTF_autohint function. WWW: https://github.com/fonttools/ttfautohint-py
This commit is contained in:
parent
16c6eb52ca
commit
8c17e41a73
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=519322
@ -198,6 +198,7 @@
|
||||
SUBDIR += py-rtf
|
||||
SUBDIR += py-stapler
|
||||
SUBDIR += py-trml2pdf
|
||||
SUBDIR += py-ttfautohint-py
|
||||
SUBDIR += py-weasyprint
|
||||
SUBDIR += qpdf
|
||||
SUBDIR += qpdfview
|
||||
|
30
print/py-ttfautohint-py/Makefile
Normal file
30
print/py-ttfautohint-py/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= ttfautohint-py
|
||||
PORTVERSION= 0.4.3
|
||||
DISTVERSIONPREFIX= v
|
||||
CATEGORIES= print python
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
COMMENT= Python wrapper for ttfautohint
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
|
||||
LIB_DEPENDS= libttfautohint.so:print/ttfautohint
|
||||
|
||||
USES= gmake python
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
GH_ACCOUNT= fonttools
|
||||
USE_GITHUB= yes
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${WRKSRC}/setup.py
|
||||
|
||||
.include <bsd.port.mk>
|
3
print/py-ttfautohint-py/distinfo
Normal file
3
print/py-ttfautohint-py/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1575793791
|
||||
SHA256 (fonttools-ttfautohint-py-v0.4.3_GH0.tar.gz) = fba8e3e5e927f783b2e8e6db38807a69a0efb6fc1873533baa7caea57d41655a
|
||||
SIZE (fonttools-ttfautohint-py-v0.4.3_GH0.tar.gz) = 186488
|
45
print/py-ttfautohint-py/files/patch-setup.py
Normal file
45
print/py-ttfautohint-py/files/patch-setup.py
Normal file
@ -0,0 +1,45 @@
|
||||
--- setup.py.orig 2019-04-10 15:00:42 UTC
|
||||
+++ setup.py
|
||||
@@ -11,17 +11,6 @@ from io import open
|
||||
|
||||
|
||||
cmdclass = {}
|
||||
-try:
|
||||
- from wheel.bdist_wheel import bdist_wheel
|
||||
-except ImportError:
|
||||
- print("warning: wheel package is not installed", file=sys.stderr)
|
||||
-else:
|
||||
- class UniversalBdistWheel(bdist_wheel):
|
||||
-
|
||||
- def get_tag(self):
|
||||
- return ('py2.py3', 'none',) + bdist_wheel.get_tag(self)[2:]
|
||||
-
|
||||
- cmdclass['bdist_wheel'] = UniversalBdistWheel
|
||||
|
||||
|
||||
class SharedLibrary(Extension):
|
||||
@@ -74,7 +63,6 @@ class SharedLibBuildExt(build_ext):
|
||||
verbose=self.verbose, dry_run=self.dry_run)
|
||||
|
||||
|
||||
-cmdclass['build_ext'] = SharedLibBuildExt
|
||||
|
||||
env = dict(os.environ)
|
||||
if sys.platform == "win32":
|
||||
@@ -109,7 +97,7 @@ with open("README.rst", "r", encoding="u
|
||||
|
||||
setup(
|
||||
name="ttfautohint-py",
|
||||
- use_scm_version=True,
|
||||
+ use_scm_version={"fallback_version": "%%PORTVERSION%%"},
|
||||
description=("Python wrapper for ttfautohint, "
|
||||
"a free auto-hinter for TrueType fonts"),
|
||||
long_description=long_description,
|
||||
@@ -120,7 +108,6 @@ setup(
|
||||
platforms=["posix", "nt"],
|
||||
package_dir={"": "src/python"},
|
||||
packages=find_packages("src/python"),
|
||||
- ext_modules=[libttfautohint],
|
||||
zip_safe=False,
|
||||
cmdclass=cmdclass,
|
||||
setup_requires=['setuptools_scm'],
|
7
print/py-ttfautohint-py/pkg-descr
Normal file
7
print/py-ttfautohint-py/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
ttfautohint-py is a Python wrapper for ttfautohint, a free auto-hinter for
|
||||
TrueType fonts.
|
||||
|
||||
It uses ctypes to load the libttfautohint shared library and call the
|
||||
TTF_autohint function.
|
||||
|
||||
WWW: https://github.com/fonttools/ttfautohint-py
|
Loading…
Reference in New Issue
Block a user