You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
974 B
50 lines
974 B
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
3 years ago
|
PYTHON_COMPAT=( python3_{8,9} )
|
||
5 years ago
|
|
||
|
MY_P="uTidylib-${PV}"
|
||
|
inherit distutils-r1
|
||
|
|
||
|
DESCRIPTION="TidyLib Python wrapper"
|
||
|
HOMEPAGE="https://cihar.com/software/utidylib/ https://pypi.org/project/uTidylib/"
|
||
|
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${MY_P}.tar.gz"
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="amd64 arm64 ppc ppc64 x86"
|
||
5 years ago
|
IUSE="doc test"
|
||
|
|
||
4 years ago
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
5 years ago
|
|
||
|
BDEPEND="
|
||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||
|
doc? ( dev-python/sphinx )
|
||
4 years ago
|
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
|
||
5 years ago
|
"
|
||
|
DEPEND="
|
||
|
dev-python/six[${PYTHON_USEDEP}]
|
||
|
"
|
||
|
RDEPEND="
|
||
3 years ago
|
|| ( app-text/tidy-html5 >=app-text/htmltidy-5.0.0 )
|
||
5 years ago
|
"
|
||
|
|
||
4 years ago
|
RESTRICT="!test? ( test )"
|
||
5 years ago
|
|
||
|
S="${WORKDIR}/${MY_P}"
|
||
|
|
||
|
python_compile_all() {
|
||
|
use doc && emake -C docs html
|
||
|
}
|
||
|
|
||
|
python_test() {
|
||
|
esetup.py test
|
||
|
}
|
||
|
|
||
|
python_install_all() {
|
||
|
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||
|
distutils-r1_python_install_all
|
||
|
}
|