Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/fontFeatures/
Date: Sat, 26 Mar 2022 00:09:47
Message-Id: 1648253377.bb17912e7e080046deba04fa1d9f030a31d72c79.Alessandro-Barbieri@gentoo
1 commit: bb17912e7e080046deba04fa1d9f030a31d72c79
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sat Mar 26 00:08:26 2022 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sat Mar 26 00:09:37 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bb17912e
7
8 dev-python/fontFeatures: initial import
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-python/fontFeatures/Manifest | 1 +
13 dev-python/fontFeatures/fontFeatures-1.6.4.ebuild | 26 +++++++++++++++++
14 dev-python/fontFeatures/metadata.xml | 35 +++++++++++++++++++++++
15 3 files changed, 62 insertions(+)
16
17 diff --git a/dev-python/fontFeatures/Manifest b/dev-python/fontFeatures/Manifest
18 new file mode 100644
19 index 000000000..346796d56
20 --- /dev/null
21 +++ b/dev-python/fontFeatures/Manifest
22 @@ -0,0 +1 @@
23 +DIST fontFeatures-1.6.4.tar.gz 1236722 BLAKE2B 0efcda0175de36d5e3d78c02fc6e835f3f39a14e6d050340d23dbf391ecf6cee9385822e8a005ed45d783bb467f25b087c1b473f4af1186dff98d7d9502c6b4e SHA512 fef775845b1d6dbd2b81a7f44429586ba63bdbcc3f2a5124e4dda41e8af62ac81b143e6d7e1443c3bb90e12f7f592b512bcd90bcbdc18e5eb07de195956cc196
24
25 diff --git a/dev-python/fontFeatures/fontFeatures-1.6.4.ebuild b/dev-python/fontFeatures/fontFeatures-1.6.4.ebuild
26 new file mode 100644
27 index 000000000..7d6d5a20b
28 --- /dev/null
29 +++ b/dev-python/fontFeatures/fontFeatures-1.6.4.ebuild
30 @@ -0,0 +1,26 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..9} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Python library for manipulating OpenType font features"
41 +HOMEPAGE="https://github.com/simoncozens/fontFeatures"
42 +SRC_URI="https://github.com/simoncozens/fontFeatures/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
43 +KEYWORDS="~amd64"
44 +LICENSE="MIT"
45 +SLOT="0"
46 +
47 +RDEPEND="
48 + dev-python/fs[${PYTHON_USEDEP}]
49 + dev-python/lxml[${PYTHON_USEDEP}]
50 + >=dev-python/fonttools-4.28.0[${PYTHON_USEDEP}]
51 + >=dev-python/glyphtools-0.7.0[${PYTHON_USEDEP}]
52 + >=dev-python/beziers-0.1.0[${PYTHON_USEDEP}]
53 +"
54 +DEPEND="${RDEPEND}"
55 +
56 +distutils_enable_tests pytest
57
58 diff --git a/dev-python/fontFeatures/metadata.xml b/dev-python/fontFeatures/metadata.xml
59 new file mode 100644
60 index 000000000..17f0c7151
61 --- /dev/null
62 +++ b/dev-python/fontFeatures/metadata.xml
63 @@ -0,0 +1,35 @@
64 +<?xml version="1.0" encoding="UTF-8"?>
65 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
66 +<pkgmetadata>
67 + <maintainer type="person">
68 + <email>lssndrbarbieri@×××××.com</email>
69 + <name>Alessandro Barbieri</name>
70 + </maintainer>
71 + <upstream>
72 + <bugs-to>https://github.com/simoncozens/fontFeatures/issues</bugs-to>
73 + <remote-id type="github">simoncozens/fontFeatures</remote-id>
74 + <remote-id type="pypi">fontFeatures</remote-id>
75 + </upstream>
76 + <longdescription lang="en">
77 +fontFeatures library
78 +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:
79 +
80 + features can be represented in a structured human-readable and machine-readable way, analogous to the XML files of the Unified Font Object format.
81 + features can be more directly authored by programs (such as font editors), rather than them having to output AFDKO feature file format.
82 + features can be easily manipulated by programs - for example, features from two files merged together, or lookups moved between languages.
83 +
84 +Components
85 +
86 +fontFeatures consists of the following components:
87 +
88 + fontFeatures itself, which is an abstract representation of the different layout operations inside a font.
89 + fontFeatures.feaLib (included as a mixin) which translates between Adobe feature syntax and fontFeatures representation.
90 + 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.)
91 + fontFeatures.fontDameLib which translate FontDame text files into fontFeatures objects.
92 +
93 +And the following utilities:
94 +
95 + otf2fea: translates an OTF file into Adobe features syntax.
96 + txt2fea: translates a FontDame txt file into Adobe features syntax.
97 + </longdescription>
98 +</pkgmetadata>