1 |
commit: 01497dc698cf49d2169d2bddc94539581b83e1a7 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jun 19 18:36:08 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Jun 19 21:53:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=01497dc6 |
7 |
|
8 |
dev-python/ots-python: initial import |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-python/ots-python/Manifest | 1 + |
13 |
.../files/ots-python-8.1.4-ots-sanitize.patch | 21 +++++++++++++++++ |
14 |
dev-python/ots-python/metadata.xml | 5 ++++ |
15 |
dev-python/ots-python/ots-python-8.1.4.ebuild | 27 ++++++++++++++++++++++ |
16 |
4 files changed, 54 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/ots-python/Manifest b/dev-python/ots-python/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..a2e7dd576 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/ots-python/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST ots-python-8.1.4.tar.gz 10830 BLAKE2B f75e4e71c942a2214d9995184dd70505800a9a58d6238fc2321afde0efe17ee4e24906edb01f0690e12e245c5316f80fb313ae416d8a64e30c23c239c9929409 SHA512 466efae7d40dc24e0af22cb29d03d7c8bb5beb592c65c36a8e2d1678c141dd9b591184cbc01bc4879705a99cbf13e61c35bb51e878fdf866e82f82cbed75099d |
25 |
|
26 |
diff --git a/dev-python/ots-python/files/ots-python-8.1.4-ots-sanitize.patch b/dev-python/ots-python/files/ots-python-8.1.4-ots-sanitize.patch |
27 |
new file mode 100644 |
28 |
index 000000000..5eae00dbd |
29 |
--- /dev/null |
30 |
+++ b/dev-python/ots-python/files/ots-python-8.1.4-ots-sanitize.patch |
31 |
@@ -0,0 +1,21 @@ |
32 |
+--- a/setup.py |
33 |
++++ b/setup.py |
34 |
+@@ -236,7 +236,6 @@ |
35 |
+ platforms=["posix", "nt"], |
36 |
+ package_dir={"": "src/python"}, |
37 |
+ packages=find_packages("src/python"), |
38 |
+- ext_modules=[ots_sanitize], |
39 |
+ zip_safe=False, |
40 |
+ cmdclass=cmdclass, |
41 |
+ setup_requires=["setuptools_scm"], |
42 |
+--- a/src/python/ots/__init__.py |
43 |
++++ b/src/python/ots/__init__.py |
44 |
+@@ -3,7 +3,7 @@ |
45 |
+ import sys |
46 |
+ import os |
47 |
+ |
48 |
+-OTS_SANITIZE = os.path.join(os.path.dirname(__file__), "ots-sanitize") |
49 |
++OTS_SANITIZE = "ots-sanitize" |
50 |
+ |
51 |
+ __all__ = ["sanitize", "OTSError", "CalledProcessError"] |
52 |
+ |
53 |
|
54 |
diff --git a/dev-python/ots-python/metadata.xml b/dev-python/ots-python/metadata.xml |
55 |
new file mode 100644 |
56 |
index 000000000..6f49eba8f |
57 |
--- /dev/null |
58 |
+++ b/dev-python/ots-python/metadata.xml |
59 |
@@ -0,0 +1,5 @@ |
60 |
+<?xml version="1.0" encoding="UTF-8"?> |
61 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
62 |
+<pkgmetadata> |
63 |
+<!-- maintainer-needed --> |
64 |
+</pkgmetadata> |
65 |
|
66 |
diff --git a/dev-python/ots-python/ots-python-8.1.4.ebuild b/dev-python/ots-python/ots-python-8.1.4.ebuild |
67 |
new file mode 100644 |
68 |
index 000000000..42a215919 |
69 |
--- /dev/null |
70 |
+++ b/dev-python/ots-python/ots-python-8.1.4.ebuild |
71 |
@@ -0,0 +1,27 @@ |
72 |
+# Copyright 1999-2021 Gentoo Authors |
73 |
+# Distributed under the terms of the GNU General Public License v2 |
74 |
+ |
75 |
+EAPI=7 |
76 |
+ |
77 |
+PYTHON_COMPAT=( python3_{8..9} pypy3 ) |
78 |
+ |
79 |
+inherit distutils-r1 |
80 |
+ |
81 |
+SRC_URI="https://github.com/googlefonts/ots-python/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
82 |
+KEYWORDS="~amd64 ~x86" |
83 |
+DESCRIPTION="A Python wrapper for OpenType Sanitizer" |
84 |
+HOMEPAGE="https://github.com/googlefonts/ots-python" |
85 |
+LICENSE="BSD" |
86 |
+SLOT="0" |
87 |
+ |
88 |
+RDEPEND=">=dev-util/ots-${PV}" |
89 |
+ |
90 |
+PATCHES=( "${FILESDIR}/${P}-ots-sanitize.patch" ) |
91 |
+ |
92 |
+distutils_enable_tests pytest |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ export SETUPTOOLS_SCM_PRETEND_VERSION="${PV/_p/.post}" |
96 |
+ mkdir -p src/c/ots || die |
97 |
+ default |
98 |
+} |