dev-util/fontmake: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-06-19 03:18:24 +02:00
parent 7fda19020e
commit 8230fe668e
5 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST fontmake-2.4.0.tar.gz 116347 BLAKE2B d66eec918f60f5760616ce9fb3400da886c3d3448a98c77ae0bca3603b32e79ca1980c696f2eeb8910db7611514bfd1dbf9df3d63f8bb5c0aa4c8d45b4ed251a SHA512 752b9c7fe40383b7bf8ba04d6b8a5c25cad3dd45380a9874a90cf31c043013396512156042c4dff3e056fb1687503535aa3d8d7bb268570edd97c447748a8e58

View File

@@ -0,0 +1,20 @@
--- a/Lib/fontmake/__main__.py
+++ b/Lib/fontmake/__main__.py
@@ -238,7 +238,7 @@ def main(args=None):
dest="overlaps_backend",
metavar="BACKEND",
choices=("booleanOperations", "pathops"),
- default="booleanOperations",
+ default="pathops",
help="Select library to remove overlaps. Choose between: %(choices)s "
"(default: %(default)s)",
)
@@ -291,7 +291,7 @@ def main(args=None):
)
contourGroup.add_argument(
"--subroutinizer",
- default=None,
+ default="cffsubr",
choices=["compreffor", "cffsubr"],
help="name of the library to use for compressing CFF charstrings. "
"Choose between: %(choices)s. By default compreffor is used for CFF 1, "

View File

@@ -0,0 +1,12 @@
--- a/Lib/fontmake/font_project.py
+++ b/Lib/fontmake/font_project.py
@@ -149,8 +149,7 @@ class FontProject:
os.mkdir(master_dir)
if instance_dir is None:
instance_dir = self._output_dir("ufo", is_instance=True)
+ instance_dir = os.path.join("..",instance_dir)
- if not os.path.isdir(instance_dir):
- os.mkdir(instance_dir)
try:
font = glyphsLib.GSFont(glyphs_path)

View File

@@ -0,0 +1,47 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_8 )
inherit distutils-r1
SRC_URI="https://github.com/googlefonts/fontmake/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
DESCRIPTION="A wrapper for several Python libraries to compile fonts from sources"
HOMEPAGE="https://github.com/googlei18n/fontmake"
LICENSE="Apache-2.0"
SLOT="0"
RDEPEND="
>=dev-python/attrs-20.2[${PYTHON_USEDEP}]
>=dev-python/booleanOperations-0.9[${PYTHON_USEDEP}]
>=dev-python/defcon-0.8.1[${PYTHON_USEDEP}]
>=dev-python/cu2qu-1.6.7[${PYTHON_USEDEP}]
>=dev-python/fontMath-0.6[${PYTHON_USEDEP}]
>=dev-python/fonttools-4.21.1[${PYTHON_USEDEP}]
>=dev-python/glyphsLib-5.3.2[${PYTHON_USEDEP}]
>=dev-python/MutatorMath-3.0.1[${PYTHON_USEDEP}]
dev-python/skia-pathops[${PYTHON_USEDEP}]
>=dev-python/ufo2ft-2.20[${PYTHON_USEDEP}]
>=dev-python/ufoLib2-0.8[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
media-gfx/fontdiff
dev-python/mock[${PYTHON_USEDEP}]
)
"
PATCHES=(
"${FILESDIR}/defaults.diff"
"${FILESDIR}/instance_dir.diff"
)
distutils_enable_tests pytest
pkg_setup() {
export SETUPTOOLS_SCM_PRETEND_VERSION="${PV%_*}"
}

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
</pkgmetadata>