# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{1..11} ) inherit distutils-r1 DESCRIPTION="Pure-python FIGlet implementation" HOMEPAGE="https://github.com/pwaller/pyfiglet" SRC_URI="https://github.com/pwaller/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" REQUIRED_USE="${PYTHON_REQUIRED_USE}" IUSE="test" RESTRICT="!test? ( test ) primaryuri" RDEPEND="" BDEPEND="test? ( app-misc/toilet app-misc/figlet )" DOCS=( README LICENSE doc/figfont.txt ) python_test() { "${PYTHON}" pyfiglet/test.py || die "Testing failed with ${EPYTHON}" } src_install() { distutils-r1_src_install doman doc/pyfiglet.1 }