public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-util/fontmake/files/, dev-util/fontmake/
@ 2021-06-19  1:18 Alessandro Barbieri
  0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Barbieri @ 2021-06-19  1:18 UTC (permalink / raw
  To: gentoo-commits

commit:     8230fe668e7ee81203cbeb3e4905fe437a3a0e2c
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Jun 19 01:18:24 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sat Jun 19 01:18:24 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8230fe66

dev-util/fontmake: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-util/fontmake/Manifest                |  1 +
 dev-util/fontmake/files/defaults.diff     | 20 +++++++++++++
 dev-util/fontmake/files/instance_dir.diff | 12 ++++++++
 dev-util/fontmake/fontmake-2.4.0.ebuild   | 47 +++++++++++++++++++++++++++++++
 dev-util/fontmake/metadata.xml            |  5 ++++
 5 files changed, 85 insertions(+)

diff --git a/dev-util/fontmake/Manifest b/dev-util/fontmake/Manifest
new file mode 100644
index 000000000..9b977fa36
--- /dev/null
+++ b/dev-util/fontmake/Manifest
@@ -0,0 +1 @@
+DIST fontmake-2.4.0.tar.gz 116347 BLAKE2B d66eec918f60f5760616ce9fb3400da886c3d3448a98c77ae0bca3603b32e79ca1980c696f2eeb8910db7611514bfd1dbf9df3d63f8bb5c0aa4c8d45b4ed251a SHA512 752b9c7fe40383b7bf8ba04d6b8a5c25cad3dd45380a9874a90cf31c043013396512156042c4dff3e056fb1687503535aa3d8d7bb268570edd97c447748a8e58

diff --git a/dev-util/fontmake/files/defaults.diff b/dev-util/fontmake/files/defaults.diff
new file mode 100644
index 000000000..1b43a2ad3
--- /dev/null
+++ b/dev-util/fontmake/files/defaults.diff
@@ -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, "

diff --git a/dev-util/fontmake/files/instance_dir.diff b/dev-util/fontmake/files/instance_dir.diff
new file mode 100644
index 000000000..fb6a0830f
--- /dev/null
+++ b/dev-util/fontmake/files/instance_dir.diff
@@ -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)

diff --git a/dev-util/fontmake/fontmake-2.4.0.ebuild b/dev-util/fontmake/fontmake-2.4.0.ebuild
new file mode 100644
index 000000000..94e6b5391
--- /dev/null
+++ b/dev-util/fontmake/fontmake-2.4.0.ebuild
@@ -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%_*}"
+}

diff --git a/dev-util/fontmake/metadata.xml b/dev-util/fontmake/metadata.xml
new file mode 100644
index 000000000..6f49eba8f
--- /dev/null
+++ b/dev-util/fontmake/metadata.xml
@@ -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>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-util/fontmake/files/, dev-util/fontmake/
@ 2022-04-20 22:37 Alessandro Barbieri
  0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Barbieri @ 2022-04-20 22:37 UTC (permalink / raw
  To: gentoo-commits

commit:     d0d6b341125d6af7d8daf80b8a29a38b83375b11
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Wed Apr 20 22:31:51 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Wed Apr 20 22:37:06 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d0d6b341

dev-util/fontmake: new version

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-util/fontmake/Manifest                |  2 +-
 dev-util/fontmake/files/instance_dir.diff | 12 -------
 dev-util/fontmake/fontmake-2.4.0.ebuild   | 47 --------------------------
 dev-util/fontmake/fontmake-3.3.0.ebuild   | 56 +++++++++++++++++++++++++++++++
 4 files changed, 57 insertions(+), 60 deletions(-)

diff --git a/dev-util/fontmake/Manifest b/dev-util/fontmake/Manifest
index 2bd1ac5bb..c67bf7ff6 100644
--- a/dev-util/fontmake/Manifest
+++ b/dev-util/fontmake/Manifest
@@ -1,2 +1,2 @@
-DIST fontmake-2.4.0.tar.gz 116347 BLAKE2B d66eec918f60f5760616ce9fb3400da886c3d3448a98c77ae0bca3603b32e79ca1980c696f2eeb8910db7611514bfd1dbf9df3d63f8bb5c0aa4c8d45b4ed251a SHA512 752b9c7fe40383b7bf8ba04d6b8a5c25cad3dd45380a9874a90cf31c043013396512156042c4dff3e056fb1687503535aa3d8d7bb268570edd97c447748a8e58
 DIST fontmake-3.2.0.tar.gz 147581 BLAKE2B 1b8868b7e24581790999e1c7051c7ef0bd0e9bf07880b75bf966cca1856e81b6f1d85a408991d4fe254f05a5ca84dcaf2557073c53aa5be398877380f46aa0de SHA512 f228347f58052cc12cb491351e810dd2af35a0d0699a38fbb231aab7a8f12ce13370f9cf9688096b7c1658d3f904ada02c4908b1e1ce62880d3e34bb2bb69e8c
+DIST fontmake-3.3.0.tar.gz 148043 BLAKE2B a69d177fad5bab60b0fb305a2a6ff55bf95c32aee52ff55bc01d8d25b2c718ed52a4ea5042300430bab531e7d71d4899bbf096ed0844009dd5ca538f701a2eb2 SHA512 0b1544a86fce9096e4b81459268baf57df1d071b4e951b411f823e331867aaefaf08b4176cf79af3a9df28c410c5f81918e8b880c5c9769fe8637e307a67b0a3

diff --git a/dev-util/fontmake/files/instance_dir.diff b/dev-util/fontmake/files/instance_dir.diff
deleted file mode 100644
index fb6a0830f..000000000
--- a/dev-util/fontmake/files/instance_dir.diff
+++ /dev/null
@@ -1,12 +0,0 @@
---- 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)

diff --git a/dev-util/fontmake/fontmake-2.4.0.ebuild b/dev-util/fontmake/fontmake-2.4.0.ebuild
deleted file mode 100644
index ee30177cb..000000000
--- a/dev-util/fontmake/fontmake-2.4.0.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{8,9} )
-
-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/googlefonts/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%_*}"
-}

diff --git a/dev-util/fontmake/fontmake-3.3.0.ebuild b/dev-util/fontmake/fontmake-3.3.0.ebuild
new file mode 100644
index 000000000..fa80122fb
--- /dev/null
+++ b/dev-util/fontmake/fontmake-3.3.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8,9} )
+
+inherit distutils-r1 optfeature
+
+DESCRIPTION="A wrapper for several Python libraries to compile fonts from sources"
+HOMEPAGE="https://github.com/googlefonts/fontmake"
+SRC_URI="https://github.com/googlefonts/fontmake/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="~amd64"
+LICENSE="Apache-2.0"
+SLOT="0"
+
+# lxml, compreffor and unicodedata2 are an indirect dependency
+RDEPEND="
+	>=dev-python/fonttools-4.32.0[${PYTHON_USEDEP}]
+	>=dev-python/glyphsLib-6.0.4[${PYTHON_USEDEP}]
+	>=dev-python/ufo2ft-2.27.0[${PYTHON_USEDEP}]
+	>=dev-python/fontMath-0.9.1[${PYTHON_USEDEP}]
+	>=dev-python/ufoLib2-0.13.0[${PYTHON_USEDEP}]
+	>=dev-python/attrs-19[${PYTHON_USEDEP}]
+
+	>=dev-python/lxml-4.2.4[${PYTHON_USEDEP}]
+	dev-python/compreffor[${PYTHON_USEDEP}]
+	>=dev-python/unicodedata2-14[${PYTHON_USEDEP}]
+"
+DEPEND="
+	${RDEPEND}
+	dev-python/setuptools_scm[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	test? (
+		media-gfx/fontdiff
+		dev-python/mock[${PYTHON_USEDEP}]
+	)
+"
+PATCHES=(
+	"${FILESDIR}/defaults.diff"
+)
+
+distutils_enable_tests pytest
+
+pkg_setup() {
+	export SETUPTOOLS_SCM_PRETEND_VERSION="${PV%_*}"
+}
+
+pkg_postinst() {
+	optfeature "mutatormath support" >=dev-python/MutatorMath-3.0.1[${PYTHON_USEDEP}]
+	optfeature "pathops support" >=dev-python/skia-pathops-0.3.0[${PYTHON_USEDEP}]
+	optfeature "autohint support" >=dev-python/ttfautohint-0.5.0[${PYTHON_USEDEP}]
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-20 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-19  1:18 [gentoo-commits] repo/proj/guru:dev commit in: dev-util/fontmake/files/, dev-util/fontmake/ Alessandro Barbieri
  -- strict thread matches above, loose matches on Subject: below --
2022-04-20 22:37 Alessandro Barbieri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox