* [gentoo-commits] repo/proj/guru:master commit in: dev-python/uharfbuzz/, dev-python/uharfbuzz/files/
@ 2021-07-03 9:59 Andrew Ammerlaan
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2021-07-03 9:59 UTC (permalink / raw
To: gentoo-commits
commit: 5b99b9a480ac665132cc8de8a9bf5e7310213f51
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Jul 3 03:39:50 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sat Jul 3 03:39:50 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5b99b9a4
dev-python/uharfbuzz: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/uharfbuzz/Manifest | 1 +
.../files/uharfbuzz-0.16.1-system-harfbuzz.patch | 23 +++++++++++++
dev-python/uharfbuzz/metadata.xml | 14 ++++++++
dev-python/uharfbuzz/uharfbuzz-0.16.1.ebuild | 38 ++++++++++++++++++++++
4 files changed, 76 insertions(+)
diff --git a/dev-python/uharfbuzz/Manifest b/dev-python/uharfbuzz/Manifest
new file mode 100644
index 000000000..3c49d7b52
--- /dev/null
+++ b/dev-python/uharfbuzz/Manifest
@@ -0,0 +1 @@
+DIST uharfbuzz-0.16.1.tar.gz 33252 BLAKE2B 63c036b0884303d724cfc64acb0f44b2705c3ddb35e8132c399535ae0db54744ee8f244aac9e68e73b39969328cbee63d094f4e97908f5e5a007d995176c53cb SHA512 d1c08135a4cc470278726aa6c8c6da7ccac04ab6d0c718c7576c81233834d182c7428c1123abc4f05f094fac2fe4dbb1dd8d264e752cadb3030f7045721ae1ee
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
new file mode 100644
index 000000000..66b11c996
--- /dev/null
+++ b/dev-python/uharfbuzz/files/uharfbuzz-0.16.1-system-harfbuzz.patch
@@ -0,0 +1,23 @@
+--- a/setup.py
++++ b/setup.py
+@@ -13,7 +13,7 @@
+ with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
+ long_description = f.read()
+
+-define_macros = [('HB_NO_MT', '1'), ('HB_EXPERIMENTAL_API', '1')]
++define_macros = []
+ linetrace = False
+ if int(os.environ.get('CYTHON_LINETRACE', '0')):
+ linetrace = True
+@@ -30,8 +30,9 @@
+ extension = Extension(
+ 'uharfbuzz._harfbuzz',
+ define_macros=define_macros,
+- include_dirs=['harfbuzz/src'],
+- sources=['src/uharfbuzz/_harfbuzz.pyx', 'harfbuzz/src/harfbuzz.cc'],
++ include_dirs=['/usr/include/harfbuzz'],
++ libraries=['harfbuzz'],
++ sources=['src/uharfbuzz/_harfbuzz.pyx'],
+ language='c++',
+ extra_compile_args=extra_compile_args,
+ extra_link_args=extra_link_args,
diff --git a/dev-python/uharfbuzz/metadata.xml b/dev-python/uharfbuzz/metadata.xml
new file mode 100644
index 000000000..d27e3cb7d
--- /dev/null
+++ b/dev-python/uharfbuzz/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <description>co-maintainers welcome</description>
+ <email>lssndrbarbieri@gmail.com</email>
+ <name>Alessandro Barbieri</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/harfbuzz/uharfbuzz/issues</bugs-to>
+ <remote-id type="github">harfbuzz/uharfbuzz</remote-id>
+ <remote-id type="pypi">uharfbuzz</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/uharfbuzz/uharfbuzz-0.16.1.ebuild b/dev-python/uharfbuzz/uharfbuzz-0.16.1.ebuild
new file mode 100644
index 000000000..96fa0ed49
--- /dev/null
+++ b/dev-python/uharfbuzz/uharfbuzz-0.16.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_SETUPTOOLS="pyproject.toml"
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+
+inherit distutils-r1
+
+SRC_URI="https://github.com/harfbuzz/uharfbuzz/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS=""
+DESCRIPTION="Streamlined Cython bindings for the HarfBuzz shaping engine"
+HOMEPAGE="https://github.com/harfbuzz/uharfbuzz"
+LICENSE="Apache-2.0"
+SLOT="0"
+
+RDEPEND=">=media-libs/harfbuzz-2.8.1[experimental]"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+ dev-python/cython[${PYTHON_USEDEP}]
+"
+
+PATCHES=( "${FILESDIR}/${P}-system-harfbuzz.patch" )
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+ export SETUPTOOLS_SCM_PRETEND_VERSION="${PV%_*}"
+ export USE_SYSTEM_HARFBUZZ=1
+}
+
+python_install() {
+ distutils-r1_python_install
+ python_optimize "$(python_get_sitedir)/${PN}"
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-python/uharfbuzz/, dev-python/uharfbuzz/files/
@ 2023-02-27 15:06 Florian Schmaus
0 siblings, 0 replies; 2+ messages in thread
From: Florian Schmaus @ 2023-02-27 15:06 UTC (permalink / raw
To: gentoo-commits
commit: 7261cceb706a70adc39dddc65cb218035d0f8e71
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Mon Feb 27 00:29:06 2023 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon Feb 27 00:29:06 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7261cceb
dev-python/uharfbuzz: cleanups
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/uharfbuzz/Manifest | 2 +-
.../files/uharfbuzz-0.23.0-system-harfbuzz.patch | 34 ----------------------
...zz-0.33.0.ebuild => uharfbuzz-0.33.0-r1.ebuild} | 24 +++++++--------
3 files changed, 13 insertions(+), 47 deletions(-)
diff --git a/dev-python/uharfbuzz/Manifest b/dev-python/uharfbuzz/Manifest
index cec68ddd5..b68ec9b56 100644
--- a/dev-python/uharfbuzz/Manifest
+++ b/dev-python/uharfbuzz/Manifest
@@ -1 +1 @@
-DIST uharfbuzz-0.33.0.gh.tar.gz 38023 BLAKE2B 5cf2d8afc8174d5fb679a38fb4147ea15d753a4b2f745c194d6f75868f878a6ae22a0a3bb77b823eeafcdcda325f89ac69539767e2bc1217b88d594c561ea385 SHA512 dc1afdfd39750284544aa8bc244c36a4b60a99423d11d568759ac908fcc34eeb39e97089eba00524bc9dbe1604aab8c35bd40b98f7913016ad022832266e7145
+DIST uharfbuzz-0.33.0.zip 1364513 BLAKE2B 668a9b7083d1a75c6845b2177b876447a25e28b15bc14e52518f1bf158ca4e23f01a0d42eb1aea02dce65c64496101ea00c8fd4d68e5ba7c1d149d920ba6624a SHA512 923ade6a4cefca9d1cfdee19fbf7b769480072695da67a1b6b75738172dad1c3236ff7d2263eeaeb6f08c235ff6efd952f095c63957549c589fafde31ca604eb
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
deleted file mode 100644
index 8ff591bb1..000000000
--- a/dev-python/uharfbuzz/files/uharfbuzz-0.23.0-system-harfbuzz.patch
+++ /dev/null
@@ -1,34 +0,0 @@
---- a/setup.py
-+++ b/setup.py
-@@ -13,7 +13,7 @@
- with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
- long_description = f.read()
-
--define_macros = [('HB_NO_MT', '1'), ('HB_EXPERIMENTAL_API', '1')]
-+define_macros = [('HB_EXPERIMENTAL_API', '1')]
- linetrace = False
- if int(os.environ.get('CYTHON_LINETRACE', '0')):
- linetrace = True
-@@ -21,7 +21,7 @@
-
- extra_compile_args = []
- extra_link_args = []
--libraries = []
-+libraries = ['harfbuzz', 'harfbuzz-subset']
- if platform.system() != 'Windows':
- extra_compile_args.append('-std=c++11')
- define_macros.append(('HAVE_MMAP', '1'))
-@@ -39,11 +39,9 @@
- extension = Extension(
- 'uharfbuzz._harfbuzz',
- define_macros=define_macros,
-- include_dirs=['harfbuzz/src'],
-+ include_dirs=['/usr/include/harfbuzz'],
- sources=[
-- 'src/uharfbuzz/_harfbuzz.pyx',
-- 'harfbuzz/src/harfbuzz.cc',
-- 'harfbuzz/src/hb-subset-repacker.cc',
-+ 'src/uharfbuzz/_harfbuzz.pyx'
- ],
- language='c++',
- libraries=libraries,
diff --git a/dev-python/uharfbuzz/uharfbuzz-0.33.0.ebuild b/dev-python/uharfbuzz/uharfbuzz-0.33.0-r1.ebuild
similarity index 53%
rename from dev-python/uharfbuzz/uharfbuzz-0.33.0.ebuild
rename to dev-python/uharfbuzz/uharfbuzz-0.33.0-r1.ebuild
index 2ea5af628..391950497 100644
--- a/dev-python/uharfbuzz/uharfbuzz-0.33.0.ebuild
+++ b/dev-python/uharfbuzz/uharfbuzz-0.33.0-r1.ebuild
@@ -3,33 +3,33 @@
EAPI=8
+PYTHON_COMPAT=( python3_{9..11} pypy3 )
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{8..11} pypy3 )
-
-inherit distutils-r1
+inherit distutils-r1 pypi
DESCRIPTION="Streamlined Cython bindings for the HarfBuzz shaping engine"
-HOMEPAGE="https://github.com/harfbuzz/uharfbuzz"
-SRC_URI="https://github.com/harfbuzz/uharfbuzz/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+HOMEPAGE="
+ https://pypi.org/project/uharfbuzz/
+ https://github.com/harfbuzz/uharfbuzz
+"
+SRC_URI="$(pypi_sdist_url ${PN} ${PV} .zip)"
KEYWORDS="~amd64"
LICENSE="Apache-2.0"
SLOT="0"
-RDEPEND=">=media-libs/harfbuzz-4.3.0[experimental(-)]"
-DEPEND="
- ${RDEPEND}
+RDEPEND=">=media-libs/harfbuzz-4.3.0:=[experimental(-)]"
+BDEPEND="
+ app-arch/unzip
>=dev-python/cython-0.28.1[${PYTHON_USEDEP}]
>=dev-python/setuptools_scm-2.1[${PYTHON_USEDEP}]
- >=dev-python/wheel-0.31[${PYTHON_USEDEP}]
"
PATCHES=( "${FILESDIR}/${PN}-0.33.0-system-harfbuzz.patch" )
distutils_enable_tests pytest
-python_prepare_all() {
- distutils-r1_python_prepare_all
- export SETUPTOOLS_SCM_PRETEND_VERSION="${PV%_*}"
+src_configure() {
+ export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
export USE_SYSTEM_HARFBUZZ=1
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-27 15:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-03 9:59 [gentoo-commits] repo/proj/guru:master commit in: dev-python/uharfbuzz/, dev-python/uharfbuzz/files/ Andrew Ammerlaan
-- strict thread matches above, loose matches on Subject: below --
2023-02-27 15:06 Florian Schmaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox