logo

overlay

My (experimental) gentoo overlay
commit: a04d4ae752987cddfda4ceb3d7d85860d1396469
parent: 0f36cfda41f9d0f90978fae69cecb2d5f0db6f2b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 10 Nov 2018 21:20:41 +0100

games-misc/ponysay: Bump to 3.0.3, from ::gentoo

Diffstat:

Agames-misc/ponysay/Manifest1+
Agames-misc/ponysay/metadata.xml15+++++++++++++++
Agames-misc/ponysay/ponysay-3.0.3.ebuild60++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 76 insertions(+), 0 deletions(-)

diff --git a/games-misc/ponysay/Manifest b/games-misc/ponysay/Manifest @@ -0,0 +1 @@ +DIST ponysay-3.0.3.tar.gz 2139074 BLAKE2B 3ba477268d68ff9a92bad8028d0b960a2a6152057146368723fea432100a71517c0c343d34b2b1c580fcfa1945bdc273fed276cf4a10c702514e6699cda87a2c SHA512 d6ff905404192bdc207952a4a914458d7f25ddcfcea95763ae277a2a3bc7ab33e86a0a229c1b10ff7295b7a89d6e1b61406feefb6bdf9026f4076d0ed70dbe93 diff --git a/games-misc/ponysay/metadata.xml b/games-misc/ponysay/metadata.xml @@ -0,0 +1,15 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> + <use> + <flag name="fish-completion">Enable fish completion support</flag> + <flag name="non-free">Install non-free ponies (i.e. from the MLP franchise)</flag> + </use> + <upstream> + <remote-id type="github">erkin/ponysay</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-misc/ponysay/ponysay-3.0.3.ebuild b/games-misc/ponysay/ponysay-3.0.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_{4,5,6} ) +inherit bash-completion-r1 python-single-r1 + +DESCRIPTION="cowsay reimplemention for ponies" +HOMEPAGE="https://github.com/erkin/ponysay" +SRC_URI="https://github.com/erkin/ponysay/archive/3.0.2.tar.gz -> ${P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc +non-free bash-completion fish-completion zsh-completion" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${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} +}