Files
guru/dev-python/pyfiglet/pyfiglet-9999.ebuild
Matthias Coppens c3ba925193 dev-python/pyfiglet: Tarballs from pypi instead of github
The tarballs on pypi are more up to date than the ones on github. The
versioning on pypi is kinda weird: X.Y.postZ. I used X.Y.Z for the
ebuilds.

Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Matthias Coppens <coppens.matthias.abc@gmail.com>
2020-09-02 18:56:13 +02:00

29 lines
696 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} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
DESCRIPTION="Pure-python FIGlet implementation"
HOMEPAGE="https://pypi.org/project/pyfiglet/ https://github.com/pwaller/pyfiglet"
if [[ "${PV}" == 9999 ]]
then
inherit git-r3
EGIT_REPO_URI="https://github.com/pwaller/pyfiglet.git"
else
MY_PV="$(ver_cut 1-2).post$(ver_cut 3)"
MY_P="${PN}-${MY_PV}"
S="${WORKDIR}/${MY_P}"
SRC_URI="https://files.pythonhosted.org/packages/source/p/pyfiglet/${MY_P}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="MIT"
SLOT="0"
RESTRICT="mirror test"