Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/utidylib/
Date: Thu, 22 Mar 2018 13:06:39
Message-Id: 1521723957.0f13b7a2337180605615397d5c914290c6ccd41c.monsieurp@gentoo
1 commit: 0f13b7a2337180605615397d5c914290c6ccd41c
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 21 22:42:27 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 22 13:05:57 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f13b7a2
7
8 dev-python/utidylib: remove app-text/htmltidy dependency.
9
10 Bug: https://bugs.gentoo.org/564884
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 dev-python/utidylib/utidylib-0.3-r2.ebuild | 47 ++++++++++++++++++++++++++++++
14 1 file changed, 47 insertions(+)
15
16 diff --git a/dev-python/utidylib/utidylib-0.3-r2.ebuild b/dev-python/utidylib/utidylib-0.3-r2.ebuild
17 new file mode 100644
18 index 00000000000..180247a06a1
19 --- /dev/null
20 +++ b/dev-python/utidylib/utidylib-0.3-r2.ebuild
21 @@ -0,0 +1,47 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
28 +
29 +inherit distutils-r1
30 +
31 +MY_P="uTidylib-${PV}"
32 +
33 +DESCRIPTION="TidyLib Python wrapper"
34 +HOMEPAGE="https://cihar.com/software/utidylib/"
35 +SRC_URI="http://dl.cihar.com/${PN}/${MY_P}.tar.bz2"
36 +
37 +LICENSE="MIT"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
40 +IUSE="doc test"
41 +
42 +RDEPEND="
43 + app-text/tidy-html5
44 + dev-python/six[${PYTHON_USEDEP}]"
45 +
46 +DEPEND="${RDEPEND}
47 + dev-python/setuptools[${PYTHON_USEDEP}]
48 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
49 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
50 +
51 +RESTRICT="test" # 1/11 tests fail
52 +
53 +S="${WORKDIR}/${MY_P}"
54 +
55 +python_compile_all() {
56 + if use doc; then
57 + ${EPYTHON} setup.py build_sphinx || die
58 + fi
59 +}
60 +
61 +python_test() {
62 + py.test || die "testsuite failed under ${EPYTHON}"
63 +}
64 +
65 +python_install_all() {
66 + use doc && local HTML_DOCS=( build/sphinx/html/. )
67 + distutils-r1_python_install_all
68 +}