1 |
commit: 7261cceb706a70adc39dddc65cb218035d0f8e71 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Mon Feb 27 00:29:06 2023 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 27 00:29:06 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7261cceb |
7 |
|
8 |
dev-python/uharfbuzz: cleanups |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
dev-python/uharfbuzz/Manifest | 2 +- |
13 |
.../files/uharfbuzz-0.23.0-system-harfbuzz.patch | 34 ---------------------- |
14 |
...zz-0.33.0.ebuild => uharfbuzz-0.33.0-r1.ebuild} | 24 +++++++-------- |
15 |
3 files changed, 13 insertions(+), 47 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/uharfbuzz/Manifest b/dev-python/uharfbuzz/Manifest |
18 |
index cec68ddd5..b68ec9b56 100644 |
19 |
--- a/dev-python/uharfbuzz/Manifest |
20 |
+++ b/dev-python/uharfbuzz/Manifest |
21 |
@@ -1 +1 @@ |
22 |
-DIST uharfbuzz-0.33.0.gh.tar.gz 38023 BLAKE2B 5cf2d8afc8174d5fb679a38fb4147ea15d753a4b2f745c194d6f75868f878a6ae22a0a3bb77b823eeafcdcda325f89ac69539767e2bc1217b88d594c561ea385 SHA512 dc1afdfd39750284544aa8bc244c36a4b60a99423d11d568759ac908fcc34eeb39e97089eba00524bc9dbe1604aab8c35bd40b98f7913016ad022832266e7145 |
23 |
+DIST uharfbuzz-0.33.0.zip 1364513 BLAKE2B 668a9b7083d1a75c6845b2177b876447a25e28b15bc14e52518f1bf158ca4e23f01a0d42eb1aea02dce65c64496101ea00c8fd4d68e5ba7c1d149d920ba6624a SHA512 923ade6a4cefca9d1cfdee19fbf7b769480072695da67a1b6b75738172dad1c3236ff7d2263eeaeb6f08c235ff6efd952f095c63957549c589fafde31ca604eb |
24 |
|
25 |
diff --git a/dev-python/uharfbuzz/files/uharfbuzz-0.23.0-system-harfbuzz.patch b/dev-python/uharfbuzz/files/uharfbuzz-0.23.0-system-harfbuzz.patch |
26 |
deleted file mode 100644 |
27 |
index 8ff591bb1..000000000 |
28 |
--- a/dev-python/uharfbuzz/files/uharfbuzz-0.23.0-system-harfbuzz.patch |
29 |
+++ /dev/null |
30 |
@@ -1,34 +0,0 @@ |
31 |
---- a/setup.py |
32 |
-+++ b/setup.py |
33 |
-@@ -13,7 +13,7 @@ |
34 |
- with open(os.path.join(here, 'README.md'), encoding='utf-8') as f: |
35 |
- long_description = f.read() |
36 |
- |
37 |
--define_macros = [('HB_NO_MT', '1'), ('HB_EXPERIMENTAL_API', '1')] |
38 |
-+define_macros = [('HB_EXPERIMENTAL_API', '1')] |
39 |
- linetrace = False |
40 |
- if int(os.environ.get('CYTHON_LINETRACE', '0')): |
41 |
- linetrace = True |
42 |
-@@ -21,7 +21,7 @@ |
43 |
- |
44 |
- extra_compile_args = [] |
45 |
- extra_link_args = [] |
46 |
--libraries = [] |
47 |
-+libraries = ['harfbuzz', 'harfbuzz-subset'] |
48 |
- if platform.system() != 'Windows': |
49 |
- extra_compile_args.append('-std=c++11') |
50 |
- define_macros.append(('HAVE_MMAP', '1')) |
51 |
-@@ -39,11 +39,9 @@ |
52 |
- extension = Extension( |
53 |
- 'uharfbuzz._harfbuzz', |
54 |
- define_macros=define_macros, |
55 |
-- include_dirs=['harfbuzz/src'], |
56 |
-+ include_dirs=['/usr/include/harfbuzz'], |
57 |
- sources=[ |
58 |
-- 'src/uharfbuzz/_harfbuzz.pyx', |
59 |
-- 'harfbuzz/src/harfbuzz.cc', |
60 |
-- 'harfbuzz/src/hb-subset-repacker.cc', |
61 |
-+ 'src/uharfbuzz/_harfbuzz.pyx' |
62 |
- ], |
63 |
- language='c++', |
64 |
- libraries=libraries, |
65 |
|
66 |
diff --git a/dev-python/uharfbuzz/uharfbuzz-0.33.0.ebuild b/dev-python/uharfbuzz/uharfbuzz-0.33.0-r1.ebuild |
67 |
similarity index 53% |
68 |
rename from dev-python/uharfbuzz/uharfbuzz-0.33.0.ebuild |
69 |
rename to dev-python/uharfbuzz/uharfbuzz-0.33.0-r1.ebuild |
70 |
index 2ea5af628..391950497 100644 |
71 |
--- a/dev-python/uharfbuzz/uharfbuzz-0.33.0.ebuild |
72 |
+++ b/dev-python/uharfbuzz/uharfbuzz-0.33.0-r1.ebuild |
73 |
@@ -3,33 +3,33 @@ |
74 |
|
75 |
EAPI=8 |
76 |
|
77 |
+PYTHON_COMPAT=( python3_{9..11} pypy3 ) |
78 |
DISTUTILS_USE_PEP517=setuptools |
79 |
-PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
80 |
- |
81 |
-inherit distutils-r1 |
82 |
+inherit distutils-r1 pypi |
83 |
|
84 |
DESCRIPTION="Streamlined Cython bindings for the HarfBuzz shaping engine" |
85 |
-HOMEPAGE="https://github.com/harfbuzz/uharfbuzz" |
86 |
-SRC_URI="https://github.com/harfbuzz/uharfbuzz/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" |
87 |
+HOMEPAGE=" |
88 |
+ https://pypi.org/project/uharfbuzz/ |
89 |
+ https://github.com/harfbuzz/uharfbuzz |
90 |
+" |
91 |
+SRC_URI="$(pypi_sdist_url ${PN} ${PV} .zip)" |
92 |
|
93 |
KEYWORDS="~amd64" |
94 |
LICENSE="Apache-2.0" |
95 |
SLOT="0" |
96 |
|
97 |
-RDEPEND=">=media-libs/harfbuzz-4.3.0[experimental(-)]" |
98 |
-DEPEND=" |
99 |
- ${RDEPEND} |
100 |
+RDEPEND=">=media-libs/harfbuzz-4.3.0:=[experimental(-)]" |
101 |
+BDEPEND=" |
102 |
+ app-arch/unzip |
103 |
>=dev-python/cython-0.28.1[${PYTHON_USEDEP}] |
104 |
>=dev-python/setuptools_scm-2.1[${PYTHON_USEDEP}] |
105 |
- >=dev-python/wheel-0.31[${PYTHON_USEDEP}] |
106 |
" |
107 |
|
108 |
PATCHES=( "${FILESDIR}/${PN}-0.33.0-system-harfbuzz.patch" ) |
109 |
|
110 |
distutils_enable_tests pytest |
111 |
|
112 |
-python_prepare_all() { |
113 |
- distutils-r1_python_prepare_all |
114 |
- export SETUPTOOLS_SCM_PRETEND_VERSION="${PV%_*}" |
115 |
+src_configure() { |
116 |
+ export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} |
117 |
export USE_SYSTEM_HARFBUZZ=1 |
118 |
} |