1 |
commit: 5b99b9a480ac665132cc8de8a9bf5e7310213f51 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jul 3 03:39:50 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Jul 3 03:39:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5b99b9a4 |
7 |
|
8 |
dev-python/uharfbuzz: initial import |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-python/uharfbuzz/Manifest | 1 + |
13 |
.../files/uharfbuzz-0.16.1-system-harfbuzz.patch | 23 +++++++++++++ |
14 |
dev-python/uharfbuzz/metadata.xml | 14 ++++++++ |
15 |
dev-python/uharfbuzz/uharfbuzz-0.16.1.ebuild | 38 ++++++++++++++++++++++ |
16 |
4 files changed, 76 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/uharfbuzz/Manifest b/dev-python/uharfbuzz/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..3c49d7b52 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/uharfbuzz/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST uharfbuzz-0.16.1.tar.gz 33252 BLAKE2B 63c036b0884303d724cfc64acb0f44b2705c3ddb35e8132c399535ae0db54744ee8f244aac9e68e73b39969328cbee63d094f4e97908f5e5a007d995176c53cb SHA512 d1c08135a4cc470278726aa6c8c6da7ccac04ab6d0c718c7576c81233834d182c7428c1123abc4f05f094fac2fe4dbb1dd8d264e752cadb3030f7045721ae1ee |
25 |
|
26 |
diff --git a/dev-python/uharfbuzz/files/uharfbuzz-0.16.1-system-harfbuzz.patch b/dev-python/uharfbuzz/files/uharfbuzz-0.16.1-system-harfbuzz.patch |
27 |
new file mode 100644 |
28 |
index 000000000..66b11c996 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/uharfbuzz/files/uharfbuzz-0.16.1-system-harfbuzz.patch |
31 |
@@ -0,0 +1,23 @@ |
32 |
+--- a/setup.py |
33 |
++++ b/setup.py |
34 |
+@@ -13,7 +13,7 @@ |
35 |
+ with open(os.path.join(here, 'README.md'), encoding='utf-8') as f: |
36 |
+ long_description = f.read() |
37 |
+ |
38 |
+-define_macros = [('HB_NO_MT', '1'), ('HB_EXPERIMENTAL_API', '1')] |
39 |
++define_macros = [] |
40 |
+ linetrace = False |
41 |
+ if int(os.environ.get('CYTHON_LINETRACE', '0')): |
42 |
+ linetrace = True |
43 |
+@@ -30,8 +30,9 @@ |
44 |
+ extension = Extension( |
45 |
+ 'uharfbuzz._harfbuzz', |
46 |
+ define_macros=define_macros, |
47 |
+- include_dirs=['harfbuzz/src'], |
48 |
+- sources=['src/uharfbuzz/_harfbuzz.pyx', 'harfbuzz/src/harfbuzz.cc'], |
49 |
++ include_dirs=['/usr/include/harfbuzz'], |
50 |
++ libraries=['harfbuzz'], |
51 |
++ sources=['src/uharfbuzz/_harfbuzz.pyx'], |
52 |
+ language='c++', |
53 |
+ extra_compile_args=extra_compile_args, |
54 |
+ extra_link_args=extra_link_args, |
55 |
|
56 |
diff --git a/dev-python/uharfbuzz/metadata.xml b/dev-python/uharfbuzz/metadata.xml |
57 |
new file mode 100644 |
58 |
index 000000000..d27e3cb7d |
59 |
--- /dev/null |
60 |
+++ b/dev-python/uharfbuzz/metadata.xml |
61 |
@@ -0,0 +1,14 @@ |
62 |
+<?xml version="1.0" encoding="UTF-8"?> |
63 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
64 |
+<pkgmetadata> |
65 |
+ <maintainer type="person"> |
66 |
+ <description>co-maintainers welcome</description> |
67 |
+ <email>lssndrbarbieri@×××××.com</email> |
68 |
+ <name>Alessandro Barbieri</name> |
69 |
+ </maintainer> |
70 |
+ <upstream> |
71 |
+ <bugs-to>https://github.com/harfbuzz/uharfbuzz/issues</bugs-to> |
72 |
+ <remote-id type="github">harfbuzz/uharfbuzz</remote-id> |
73 |
+ <remote-id type="pypi">uharfbuzz</remote-id> |
74 |
+ </upstream> |
75 |
+</pkgmetadata> |
76 |
|
77 |
diff --git a/dev-python/uharfbuzz/uharfbuzz-0.16.1.ebuild b/dev-python/uharfbuzz/uharfbuzz-0.16.1.ebuild |
78 |
new file mode 100644 |
79 |
index 000000000..96fa0ed49 |
80 |
--- /dev/null |
81 |
+++ b/dev-python/uharfbuzz/uharfbuzz-0.16.1.ebuild |
82 |
@@ -0,0 +1,38 @@ |
83 |
+# Copyright 1999-2021 Gentoo Authors |
84 |
+# Distributed under the terms of the GNU General Public License v2 |
85 |
+ |
86 |
+EAPI=8 |
87 |
+ |
88 |
+DISTUTILS_USE_SETUPTOOLS="pyproject.toml" |
89 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
90 |
+ |
91 |
+inherit distutils-r1 |
92 |
+ |
93 |
+SRC_URI="https://github.com/harfbuzz/uharfbuzz/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
94 |
+KEYWORDS="" |
95 |
+DESCRIPTION="Streamlined Cython bindings for the HarfBuzz shaping engine" |
96 |
+HOMEPAGE="https://github.com/harfbuzz/uharfbuzz" |
97 |
+LICENSE="Apache-2.0" |
98 |
+SLOT="0" |
99 |
+ |
100 |
+RDEPEND=">=media-libs/harfbuzz-2.8.1[experimental]" |
101 |
+DEPEND="${RDEPEND}" |
102 |
+BDEPEND=" |
103 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
104 |
+ dev-python/cython[${PYTHON_USEDEP}] |
105 |
+" |
106 |
+ |
107 |
+PATCHES=( "${FILESDIR}/${P}-system-harfbuzz.patch" ) |
108 |
+ |
109 |
+distutils_enable_tests pytest |
110 |
+ |
111 |
+python_prepare_all() { |
112 |
+ distutils-r1_python_prepare_all |
113 |
+ export SETUPTOOLS_SCM_PRETEND_VERSION="${PV%_*}" |
114 |
+ export USE_SYSTEM_HARFBUZZ=1 |
115 |
+} |
116 |
+ |
117 |
+python_install() { |
118 |
+ distutils-r1_python_install |
119 |
+ python_optimize "$(python_get_sitedir)/${PN}" |
120 |
+} |