diff options
author | James Le Cuirot <chewi@gentoo.org> | 2019-02-18 19:32:07 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2019-02-18 19:45:35 +0000 |
commit | a36e1f729a7d825aa96ba1e5c75991d3b4154602 (patch) | |
tree | 08abfe24e208f65dca00abd9ec91c23034ba56e7 /games-misc/ponysay | |
parent | app-misc/openastro: use HTTPS. (diff) | |
download | gentoo-a36e1f729a7d825aa96ba1e5c75991d3b4154602.tar.gz gentoo-a36e1f729a7d825aa96ba1e5c75991d3b4154602.tar.bz2 gentoo-a36e1f729a7d825aa96ba1e5c75991d3b4154602.zip |
games-misc/ponysay: Version bump to 3.0.3
Package-Manager: Portage-2.3.61, Repoman-2.3.12
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-misc/ponysay')
-rw-r--r-- | games-misc/ponysay/Manifest | 1 | ||||
-rw-r--r-- | games-misc/ponysay/ponysay-3.0.3.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/games-misc/ponysay/Manifest b/games-misc/ponysay/Manifest index f0269b3bf87f..58abce44b799 100644 --- a/games-misc/ponysay/Manifest +++ b/games-misc/ponysay/Manifest @@ -1 +1,2 @@ DIST ponysay-3.0.2.tar.gz 2110382 BLAKE2B eb547ca62315c1aff227bec5e71328b1e333ba6aa14061b262d1130997ec2de2d54665fd498c8c571eacce15757030ca84d29d82a40b9fc82675d63e62617118 SHA512 47d5c584b3b8c233567eff534b5109548c92075f69776703bc303929ba4278f67fd599987ef4a098aa871c2af0efd89186f96fa28565e73b4672abeb0c23fa45 +DIST ponysay-3.0.3.tar.gz 2139074 BLAKE2B 3ba477268d68ff9a92bad8028d0b960a2a6152057146368723fea432100a71517c0c343d34b2b1c580fcfa1945bdc273fed276cf4a10c702514e6699cda87a2c SHA512 d6ff905404192bdc207952a4a914458d7f25ddcfcea95763ae277a2a3bc7ab33e86a0a229c1b10ff7295b7a89d6e1b61406feefb6bdf9026f4076d0ed70dbe93 diff --git a/games-misc/ponysay/ponysay-3.0.3.ebuild b/games-misc/ponysay/ponysay-3.0.3.ebuild new file mode 100644 index 000000000000..137ae77544b2 --- /dev/null +++ b/games-misc/ponysay/ponysay-3.0.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{4,5,6,7} ) +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 ~x86" +IUSE="doc +non-free bash-completion fish-completion zsh-completion" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +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} +} |