commit:     bb17912e7e080046deba04fa1d9f030a31d72c79
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Mar 26 00:08:26 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sat Mar 26 00:09:37 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bb17912e

dev-python/fontFeatures: initial import

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

 dev-python/fontFeatures/Manifest                  |  1 +
 dev-python/fontFeatures/fontFeatures-1.6.4.ebuild | 26 +++++++++++++++++
 dev-python/fontFeatures/metadata.xml              | 35 +++++++++++++++++++++++
 3 files changed, 62 insertions(+)

diff --git a/dev-python/fontFeatures/Manifest b/dev-python/fontFeatures/Manifest
new file mode 100644
index 000000000..346796d56
--- /dev/null
+++ b/dev-python/fontFeatures/Manifest
@@ -0,0 +1 @@
+DIST fontFeatures-1.6.4.tar.gz 1236722 BLAKE2B 
0efcda0175de36d5e3d78c02fc6e835f3f39a14e6d050340d23dbf391ecf6cee9385822e8a005ed45d783bb467f25b087c1b473f4af1186dff98d7d9502c6b4e
 SHA512 
fef775845b1d6dbd2b81a7f44429586ba63bdbcc3f2a5124e4dda41e8af62ac81b143e6d7e1443c3bb90e12f7f592b512bcd90bcbdc18e5eb07de195956cc196

diff --git a/dev-python/fontFeatures/fontFeatures-1.6.4.ebuild 
b/dev-python/fontFeatures/fontFeatures-1.6.4.ebuild
new file mode 100644
index 000000000..7d6d5a20b
--- /dev/null
+++ b/dev-python/fontFeatures/fontFeatures-1.6.4.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python library for manipulating OpenType font features"
+HOMEPAGE="https://github.com/simoncozens/fontFeatures";
+SRC_URI="https://github.com/simoncozens/fontFeatures/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="
+       dev-python/fs[${PYTHON_USEDEP}]
+       dev-python/lxml[${PYTHON_USEDEP}]
+       >=dev-python/fonttools-4.28.0[${PYTHON_USEDEP}]
+       >=dev-python/glyphtools-0.7.0[${PYTHON_USEDEP}]
+       >=dev-python/beziers-0.1.0[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+
+distutils_enable_tests pytest

diff --git a/dev-python/fontFeatures/metadata.xml 
b/dev-python/fontFeatures/metadata.xml
new file mode 100644
index 000000000..17f0c7151
--- /dev/null
+++ b/dev-python/fontFeatures/metadata.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+    <maintainer type="person">
+      <email>[email protected]</email>
+      <name>Alessandro Barbieri</name>
+    </maintainer>
+    <upstream>
+        <bugs-to>https://github.com/simoncozens/fontFeatures/issues</bugs-to>
+        <remote-id type="github">simoncozens/fontFeatures</remote-id>
+        <remote-id type="pypi">fontFeatures</remote-id>
+    </upstream>
+    <longdescription lang="en">
+fontFeatures library
+The purpose of this library is to provide a middle ground for representing 
features in a machine-manipulable format, kind of like the abstract syntax tree 
of a computer programmer. This is so that:
+
+    features can be represented in a structured human-readable and 
machine-readable way, analogous to the XML files of the Unified Font Object 
format.
+    features can be more directly authored by programs (such as font editors), 
rather than them having to output AFDKO feature file format.
+    features can be easily manipulated by programs - for example, features 
from two files merged together, or lookups moved between languages.
+
+Components
+
+fontFeatures consists of the following components:
+
+    fontFeatures itself, which is an abstract representation of the different 
layout operations inside a font.
+    fontFeatures.feaLib (included as a mixin) which translates between Adobe 
feature syntax and fontFeatures representation.
+    fontFeatures.ttLib, which translates between OpenType binary fonts and 
fontFeatures representation. (Currently only OTF -> fontFeatures is partially 
implemented; there is no fontFeatures -> OTF compiler yet.)
+    fontFeatures.fontDameLib which translate FontDame text files into 
fontFeatures objects.
+
+And the following utilities:
+
+    otf2fea: translates an OTF file into Adobe features syntax.
+    txt2fea: translates a FontDame txt file into Adobe features syntax.
+    </longdescription>
+</pkgmetadata>

Reply via email to