1 |
commit: 69a090471376b40d7eb0fee8b735c7ca9b8f9462 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 8 12:50:52 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 8 12:52:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69a09047 |
7 |
|
8 |
dev-python/html5-parser: pep517, enable py3.11 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
.../html5-parser/html5-parser-0.4.10-r1.ebuild | 36 ++++++++++++++++++++++ |
13 |
1 file changed, 36 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/html5-parser/html5-parser-0.4.10-r1.ebuild b/dev-python/html5-parser/html5-parser-0.4.10-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..211165d5baa8 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/html5-parser/html5-parser-0.4.10-r1.ebuild |
20 |
@@ -0,0 +1,36 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+PYTHON_COMPAT=( python3_{8..11} ) |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+inherit distutils-r1 toolchain-funcs |
28 |
+ |
29 |
+DESCRIPTION="Fast C based HTML 5 parsing for python" |
30 |
+HOMEPAGE="https://github.com/kovidgoyal/html5-parser/" |
31 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="Apache-2.0" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~arm ~x86" |
36 |
+ |
37 |
+BDEPEND=" |
38 |
+ virtual/pkgconfig |
39 |
+" |
40 |
+DEPEND="dev-libs/libxml2:=" |
41 |
+RDEPEND="${DEPEND} |
42 |
+ dev-python/chardet[${PYTHON_USEDEP}] |
43 |
+ >=dev-python/lxml-3.8.0[${PYTHON_USEDEP}]" |
44 |
+ |
45 |
+distutils_enable_tests setup.py |
46 |
+ |
47 |
+src_prepare() { |
48 |
+ # Soup is not used when lxml is available. |
49 |
+ rm test/soup.py || die |
50 |
+ sed -i -e 's:-O3::' setup.py build.py || die |
51 |
+ distutils-r1_src_prepare |
52 |
+} |
53 |
+ |
54 |
+src_configure() { |
55 |
+ export PKGCONFIG_EXE=$(tc-getPKG_CONFIG) |
56 |
+} |