1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 python3_6 )
9 DESCRIPTION="Copy your docs directly to the gh-pages branch"
10 HOMEPAGE="https://github.com/davisp/ghp-import"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
18 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
21 python_prepare_all() {
22 ebegin 'patching setup.py'
24 -e '4ifrom codecs import open\n' \
25 -e '/LONG_DESC/s/))/), encoding = "utf-8")/' \
29 [[ ${STATUS} -gt 0 ]] && die
31 distutils-r1_python_prepare_all