guru/dev-python/asciimatics/asciimatics-1.13.0.ebuild
Matthias Coppens 7cbd066097
dev-python/asciimatics: Set DISTUTILS_USE_SETUPTOOLS
Closes: https://bugs.gentoo.org/800091
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Matthias Coppens <coppens.matthias.abc@gmail.com>
2022-02-01 01:09:37 +01:00

38 lines
947 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_USE_SETUPTOOLS=bdepend
PYTHON_COMPAT=( python3_{8,9} )
inherit distutils-r1
DESCRIPTION="Package for curses-like operations, text UIs and ASCII art animations"
HOMEPAGE="https://pypi.org/project/asciimatics/ https://github.com/peterbrittain/asciimatics"
if [[ "${PV}" == 9999 ]]
then
inherit git-r3
EGIT_REPO_URI="https://github.com/peterbrittain/asciimatics.git"
else
SRC_URI="https://github.com/peterbrittain/asciimatics/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="Apache-2.0"
SLOT="0"
RESTRICT="mirror test"
RDEPEND="
>=dev-python/pyfiglet-0.7.2[${PYTHON_USEDEP}]
>=dev-python/pillow-2.7.0[${PYTHON_USEDEP}]
dev-python/wcwidth[${PYTHON_USEDEP}]
dev-python/future[${PYTHON_USEDEP}]
"
src_prepare() {
default
sed -i -e "s/use_scm_version={/\0'fallback_version': '${PV}',/" setup.py
}