public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alessandro Barbieri" <lssndrbarbieri@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/ttfautohint-py/, dev-python/ttfautohint-py/files/
Date: Sun, 20 Jun 2021 17:51:49 +0000 (UTC)	[thread overview]
Message-ID: <1624211507.2a7cbea23382aa01e9d280721398008b314b46a4.Alessandro-Barbieri@gentoo> (raw)

commit:     2a7cbea23382aa01e9d280721398008b314b46a4
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sun Jun 20 17:32:05 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sun Jun 20 17:51:47 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2a7cbea2

dev-python/ttfautohint-py: initial import

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

 dev-python/ttfautohint-py/Manifest                 |  1 +
 .../ttfautohint-py-0.4.3-no-ext_modules.patch      | 10 +++++++
 dev-python/ttfautohint-py/metadata.xml             | 10 +++++++
 .../ttfautohint-py/ttfautohint-py-0.4.3.ebuild     | 32 ++++++++++++++++++++++
 4 files changed, 53 insertions(+)

diff --git a/dev-python/ttfautohint-py/Manifest b/dev-python/ttfautohint-py/Manifest
new file mode 100644
index 000000000..29df1e941
--- /dev/null
+++ b/dev-python/ttfautohint-py/Manifest
@@ -0,0 +1 @@
+DIST ttfautohint-py-0.4.3.tar.gz 186488 BLAKE2B cc5de63faf4a5d213a14eda9b092c48e2e67c59b04ad1580d680e22bf691d915a74f7a465cc37cd0ce907874f3fdb0312224e647bb8e18e5741f886e69e7d075 SHA512 2f21af2a4ffffb59c9e83e4c5aa77ce15d97d4391894537e87727fd05f47b8f007e3ddf1fcf98d195a880b2a4e22586ce9faab4d8dc33f6c6eaa1623dcfd3aab

diff --git a/dev-python/ttfautohint-py/files/ttfautohint-py-0.4.3-no-ext_modules.patch b/dev-python/ttfautohint-py/files/ttfautohint-py-0.4.3-no-ext_modules.patch
new file mode 100644
index 000000000..84dee04cc
--- /dev/null
+++ b/dev-python/ttfautohint-py/files/ttfautohint-py-0.4.3-no-ext_modules.patch
@@ -0,0 +1,10 @@
+--- a/setup.py
++++ b/setup.py
+@@ -120,7 +120,6 @@
+     platforms=["posix", "nt"],
+     package_dir={"": "src/python"},
+     packages=find_packages("src/python"),
+-    ext_modules=[libttfautohint],
+     zip_safe=False,
+     cmdclass=cmdclass,
+     setup_requires=['setuptools_scm'],

diff --git a/dev-python/ttfautohint-py/metadata.xml b/dev-python/ttfautohint-py/metadata.xml
new file mode 100644
index 000000000..a35f50345
--- /dev/null
+++ b/dev-python/ttfautohint-py/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+    <!-- maintainer-needed -->
+    <upstream>
+        <bugs-to>https://github.com/fonttools/ttfautohint-py/issues</bugs-to>
+        <remote-id type="github">fonttools/ttfautohint-py</remote-id>
+        <remote-id type="pypi">ttfautohint-py</remote-id>
+    </upstream>
+</pkgmetadata>

diff --git a/dev-python/ttfautohint-py/ttfautohint-py-0.4.3.ebuild b/dev-python/ttfautohint-py/ttfautohint-py-0.4.3.ebuild
new file mode 100644
index 000000000..31466327d
--- /dev/null
+++ b/dev-python/ttfautohint-py/ttfautohint-py-0.4.3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2021 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/fonttools/ttfautohint-py/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+DESCRIPTION="A Python wrapper for ttfautohint"
+HOMEPAGE="https://github.com/fonttools/ttfautohint-py"
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="media-gfx/ttfautohint"
+DEPEND="
+	test? (
+		dev-python/fonttools[${PYTHON_USEDEP}]
+	)
+"
+
+PATCHES=( "${FILESDIR}/${P}-no-ext_modules.patch" )
+
+distutils_enable_tests pytest
+
+src_prepare() {
+	rm -r src/c || die
+	export SETUPTOOLS_SCM_PRETEND_VERSION="${PV%_*}"
+	default
+}


                 reply	other threads:[~2021-06-20 17:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1624211507.2a7cbea23382aa01e9d280721398008b314b46a4.Alessandro-Barbieri@gentoo \
    --to=lssndrbarbieri@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox