Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/html5-parser/
Date: Fri, 11 Jan 2019 09:02:09
Message-Id: 1547197299.b4c99f8f901c4f96390c8b75f642a682970f3aa5.chewi@gentoo
1 commit: b4c99f8f901c4f96390c8b75f642a682970f3aa5
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 6 21:36:19 2018 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 11 09:01:39 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4c99f8f
7
8 dev-python/html5-parser: Version bump to 0.4.5, EAPI 7
9
10 Fixes cross-compiling by using the correct pkg-config.
11
12 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
13 Package-Manager: Portage-2.3.49, Repoman-2.3.10
14
15 dev-python/html5-parser/Manifest | 1 +
16 dev-python/html5-parser/html5-parser-0.4.5.ebuild | 36 +++++++++++++++++++++++
17 2 files changed, 37 insertions(+)
18
19 diff --git a/dev-python/html5-parser/Manifest b/dev-python/html5-parser/Manifest
20 index 9feb2fbcc43..091d7c86375 100644
21 --- a/dev-python/html5-parser/Manifest
22 +++ b/dev-python/html5-parser/Manifest
23 @@ -1 +1,2 @@
24 DIST html5-parser-0.4.4.tar.gz 267787 BLAKE2B 9fcaec9faa906914d43f2b19381fe3095d4cd009bfb534537d2eabb420195276b3690d760c1defc92ad00e4965b3eb34ce4700d54f4f0291dff88026d890c90d SHA512 3aaeb32f360d2c131ecbe11fa1dcd3dfcd62c9ca046fce7dd4ff8127d0e62216f666e83bb20c7809c6adc591e1fb2798e382e78a1cf6129b1f0a09a71377f8d4
25 +DIST html5-parser-0.4.5.tar.gz 275587 BLAKE2B e26db3b6c55d43e26eb08076c59012814c2dd8739d6cba591e34cf8e304aa78bdf3440405668875acece2c21425f26ed9a0edbc5bb1da55da09c17eb52fa74aa SHA512 3c0421dd228ba5f3544f188fde5391d6be0fe92b879cf1e7697b5e5612a9e5bf08863bcb76f4297a59bfbfc69010a95f5d97fff78a7e6d26c889e173b07e4ae5
26
27 diff --git a/dev-python/html5-parser/html5-parser-0.4.5.ebuild b/dev-python/html5-parser/html5-parser-0.4.5.ebuild
28 new file mode 100644
29 index 00000000000..7ca21bb61c3
30 --- /dev/null
31 +++ b/dev-python/html5-parser/html5-parser-0.4.5.ebuild
32 @@ -0,0 +1,36 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
38 +
39 +inherit distutils-r1 toolchain-funcs
40 +
41 +DESCRIPTION="Fast C based HTML 5 parsing for python"
42 +HOMEPAGE="https://github.com/kovidgoyal/html5-parser/"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~x86"
48 +IUSE=""
49 +
50 +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
51 +DEPEND="dev-libs/libxml2:="
52 +RDEPEND="${DEPEND}
53 + dev-python/chardet[${PYTHON_USEDEP}]
54 + >=dev-python/lxml-3.8.0[${PYTHON_USEDEP}]"
55 +
56 +src_prepare() {
57 + # Soup is not used when lxml is available.
58 + rm test/soup.py || die
59 + distutils-r1_src_prepare
60 +}
61 +
62 +src_configure() {
63 + export PKGCONFIG_EXE=$(tc-getPKG_CONFIG)
64 +}
65 +
66 +python_test() {
67 + esetup.py test || die "Tests failed under ${EPYTHON}"
68 +}