From d94cf7dc7210ae70a71890b50f4160ebf9be75be Mon Sep 17 00:00:00 2001 From: dakkar Date: Sun, 13 Dec 2020 12:56:23 +0000 Subject: ponysay for python 3.8 --- games-misc/ponysay/ponysay-3.0.3-r1.ebuild | 64 ++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 games-misc/ponysay/ponysay-3.0.3-r1.ebuild (limited to 'games-misc/ponysay/ponysay-3.0.3-r1.ebuild') diff --git a/games-misc/ponysay/ponysay-3.0.3-r1.ebuild b/games-misc/ponysay/ponysay-3.0.3-r1.ebuild new file mode 100644 index 0000000..4f1ca71 --- /dev/null +++ b/games-misc/ponysay/ponysay-3.0.3-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_8 ) +inherit bash-completion-r1 python-single-r1 + +DESCRIPTION="cowsay reimplemention for ponies" +HOMEPAGE="https://github.com/erkin/ponysay" +SRC_URI="https://github.com/erkin/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="doc +non-free bash-completion fish-completion zsh-completion" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +PATCHES=( + "${FILESDIR}/ponysay-py38.patch" +) + +BDEPEND="${PYTHON_DEPS} + doc? ( sys-apps/texinfo )" + +RDEPEND="${PYTHON_DEPS} + fish-completion? ( app-shells/fish ) + zsh-completion? ( app-shells/zsh )" + +setup_py() { + "${PYTHON}" setup.py \ + --prefix="${EPREFIX}"/usr \ + --everything \ + --without-info-compression \ + --without-man-compression \ + --without-pdf-compression \ + --without-shared-cache \ + --freedom=$(usex non-free no yes) \ + $(use_with fish-completion) \ + $(use_with zsh-completion) \ + $(use_with doc info) \ + $(use_with doc pdf "${EPREFIX}"/usr/share/doc/${PF}) \ + "${@}" || die +} + +src_compile() { + setup_py \ + $(use_with bash-completion) \ + build +} + +src_install() { + setup_py \ + --without-bash-completion \ + --destdir="${D}" \ + prebuilt + + python_fix_shebang "${ED}"/usr/bin/${PN} + + rm -rv "${ED}"/usr/share/licenses || die + dodoc CHANGELOG CONTRIBUTING CREDITS README.md + + use bash-completion && + newbashcomp completion/bash-completion.${PN}.install ${PN} +} -- cgit v1.2.3