36 lines
762 B
Bash
36 lines
762 B
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="Library to provide an easy API to file locking"
|
|
HOMEPAGE="https://github.com/WoLpH/portalocker"
|
|
SRC_URI="https://github.com/WoLpH/portalocker/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="PSF-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~x86"
|
|
IUSE="doc"
|
|
|
|
RDEPEND=""
|
|
DEPEND="${RDEPEND}
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
|
|
|
python_compile_all() {
|
|
if use doc; then
|
|
cd docs || die
|
|
emake html
|
|
fi
|
|
}
|
|
|
|
python_install_all() {
|
|
distutils-r1_python_install_all
|
|
|
|
dodoc README.rst CHANGELOG.rst
|
|
use doc && dodoc -r docs/_build/html
|
|
}
|