diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-09-21 18:00:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-09-21 18:00:10 +0100 |
commit | 265dbe5dbc14c199299496c6db8fce3f76647015 (patch) | |
tree | ab18b5617d138f6684566b619405090989d55a2c /dev-python/asciimatics/asciimatics-1.10.0.ebuild | |
parent | 586819755b4dbfdffdc8a725ab7c0f86095b8489 (diff) |
gentoo resync : 21.09.2018
Diffstat (limited to 'dev-python/asciimatics/asciimatics-1.10.0.ebuild')
-rw-r--r-- | dev-python/asciimatics/asciimatics-1.10.0.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/asciimatics/asciimatics-1.10.0.ebuild b/dev-python/asciimatics/asciimatics-1.10.0.ebuild new file mode 100644 index 000000000000..7b98702a75ff --- /dev/null +++ b/dev-python/asciimatics/asciimatics-1.10.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="Pythonic library to create text UIs and ASCII art animations" +HOMEPAGE="https://github.com/peterbrittain/asciimatics" +SRC_URI="https://github.com/peterbrittain/asciimatics/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples" + +DEPEND=" + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/future[${PYTHON_USEDEP}] + dev-python/wcwidth[${PYTHON_USEDEP}] + dev-python/pyfiglet[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +src_prepare() { + sed -i -e "s/use_scm_version.*/version='${PV}',/g;" setup.py || die + distutils-r1_src_prepare +} + +python_compile_all() { + if use doc; then + sed -i -e 's/base_version = .*//g;' doc/source/conf.py || die + sed -i -e 's/release = .*//g;' doc/source/conf.py || die + sed -i -e 's/version = .*//g;' doc/source/conf.py || die + sphinx-build -b html doc/source doc/_build/ || die + HTML_DOCS=( doc/_build/. ) + fi +} + +python_install_all() { + use examples && dodoc -r samples + distutils-r1_python_install_all +} |