commit: e43d618b843664d9feb49b0437b5e0979ef32ba3
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 23 08:22:53 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Sep 23 08:24:53 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e43d618b
dev-python/html5-parser: Bump to 0.4.10
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/html5-parser/Manifest | 1 +
dev-python/html5-parser/html5-parser-0.4.10.ebuild | 37 ++++++++++++++++++++++
2 files changed, 38 insertions(+)
diff --git a/dev-python/html5-parser/Manifest b/dev-python/html5-parser/Manifest
index 5816d1ff523..38a8fca8294 100644
--- a/dev-python/html5-parser/Manifest
+++ b/dev-python/html5-parser/Manifest
@@ -1 +1,2 @@
+DIST html5-parser-0.4.10.tar.gz 272814 BLAKE2B
5759c872e65080ea059b81e632ed70a94e6677ef01af1e50ab1822128cc75ccbd3361c9d4e5e94fc4cc78996b3dbde97ffe435f083c492df2815c67d929cabc7
SHA512
45accb891261e1b82185de1cb0e06915e0ff487fe2cfc81b79f5653c8e9d7b9848349ab94657f8fb5eb116311b1d2b0d19f504f841ee8af0cf4a23601a5000aa
DIST html5-parser-0.4.9.tar.gz 274597 BLAKE2B
7744798d74db1d591490c75eabae5333e90f053a8ba1c5517f08c1b9c253042796e42618ae0a674e1b1cfa97390448ffc595e861234f5b980a1f7c0b9056cc88
SHA512
0fce4b1a18b29a9fa94e3769e2443601a502158056be1c93c1c1ddd5fe84d11d5d6dcae6338ac0a21aae7972625f28c0ba66099fc51081f504cb596626de990e
diff --git a/dev-python/html5-parser/html5-parser-0.4.10.ebuild
b/dev-python/html5-parser/html5-parser-0.4.10.ebuild
new file mode 100644
index 00000000000..b51af758c58
--- /dev/null
+++ b/dev-python/html5-parser/html5-parser-0.4.10.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1 toolchain-funcs
+
+DESCRIPTION="Fast C based HTML 5 parsing for python"
+HOMEPAGE="https://github.com/kovidgoyal/html5-parser/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+BDEPEND="
+ virtual/pkgconfig
+"
+DEPEND="dev-libs/libxml2:="
+RDEPEND="${DEPEND}
+ dev-python/chardet[${PYTHON_USEDEP}]
+ >=dev-python/lxml-3.8.0[${PYTHON_USEDEP}]"
+
+distutils_enable_tests setup.py
+
+src_prepare() {
+ # Soup is not used when lxml is available.
+ rm test/soup.py || die
+ sed -i -e 's:-O3::' setup.py build.py || die
+ distutils-r1_src_prepare
+}
+
+src_configure() {
+ export PKGCONFIG_EXE=$(tc-getPKG_CONFIG)
+}