Date: Sun, 8 Dec 2019 16:49:43 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r519322 - in head/print: . py-ttfautohint-py py-ttfautohint-py/files Message-ID: <201912081649.xB8Gnhex054866@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Sun Dec 8 16:49:43 2019 New Revision: 519322 URL: https://svnweb.freebsd.org/changeset/ports/519322 Log: 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 Added: head/print/py-ttfautohint-py/ head/print/py-ttfautohint-py/Makefile (contents, props changed) head/print/py-ttfautohint-py/distinfo (contents, props changed) head/print/py-ttfautohint-py/files/ head/print/py-ttfautohint-py/files/patch-setup.py (contents, props changed) head/print/py-ttfautohint-py/pkg-descr (contents, props changed) Modified: head/print/Makefile Modified: head/print/Makefile ============================================================================== --- head/print/Makefile Sun Dec 8 16:49:37 2019 (r519321) +++ head/print/Makefile Sun Dec 8 16:49:43 2019 (r519322) @@ -198,6 +198,7 @@ SUBDIR += py-rtf SUBDIR += py-stapler SUBDIR += py-trml2pdf + SUBDIR += py-ttfautohint-py SUBDIR += py-weasyprint SUBDIR += qpdf SUBDIR += qpdfview Added: head/print/py-ttfautohint-py/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/py-ttfautohint-py/Makefile Sun Dec 8 16:49:43 2019 (r519322) @@ -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> Added: head/print/py-ttfautohint-py/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/py-ttfautohint-py/distinfo Sun Dec 8 16:49:43 2019 (r519322) @@ -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 Added: head/print/py-ttfautohint-py/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/py-ttfautohint-py/files/patch-setup.py Sun Dec 8 16:49:43 2019 (r519322) @@ -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'], Added: head/print/py-ttfautohint-py/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/py-ttfautohint-py/pkg-descr Sun Dec 8 16:49:43 2019 (r519322) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912081649.xB8Gnhex054866>