public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-misc/ponysay/
Date: Sun, 18 Dec 2016 13:00:40 +0000 (UTC)	[thread overview]
Message-ID: <1482066027.803ddbcb6f67c28f676148293b9bf9037020ddda.chewi@gentoo> (raw)

commit:     803ddbcb6f67c28f676148293b9bf9037020ddda
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 18 12:52:45 2016 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Dec 18 13:00:27 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=803ddbcb

games-misc/ponysay: New package to supersede one from aidstu-overlay

zsh-completion is broken in the latest release but I have included it
anyway.

Package-Manager: portage-2.3.3

 games-misc/ponysay/Manifest             |  1 +
 games-misc/ponysay/metadata.xml         | 12 +++++++
 games-misc/ponysay/ponysay-3.0.2.ebuild | 60 +++++++++++++++++++++++++++++++++
 3 files changed, 73 insertions(+)

diff --git a/games-misc/ponysay/Manifest b/games-misc/ponysay/Manifest
new file mode 100644
index 00000000..d4de299
--- /dev/null
+++ b/games-misc/ponysay/Manifest
@@ -0,0 +1 @@
+DIST ponysay-3.0.2.tar.gz 2110382 SHA256 69e98a7966353de2f232cbdaccd8ef7dbc5d0bcede9bf7280a676793e8625b0d SHA512 47d5c584b3b8c233567eff534b5109548c92075f69776703bc303929ba4278f67fd599987ef4a098aa871c2af0efd89186f96fa28565e73b4672abeb0c23fa45 WHIRLPOOL 9ba79521c95948498cffb3fa8c921dfeab9188d215ddd57c777517e54453979ea4f40ec1faea894a8a967fce78fe08767bf915d7bdeca4807a337099e7d8c265

diff --git a/games-misc/ponysay/metadata.xml b/games-misc/ponysay/metadata.xml
new file mode 100644
index 00000000..c45d7ec
--- /dev/null
+++ b/games-misc/ponysay/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>games@gentoo.org</email>
+		<name>Gentoo Games Project</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>
+</pkgmetadata>

diff --git a/games-misc/ponysay/ponysay-3.0.2.ebuild b/games-misc/ponysay/ponysay-3.0.2.ebuild
new file mode 100644
index 00000000..9617690
--- /dev/null
+++ b/games-misc/ponysay/ponysay-3.0.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5} )
+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"
+
+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}
+}


             reply	other threads:[~2016-12-18 13:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-18 13:00 James Le Cuirot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-06-26 19:04 [gentoo-commits] repo/gentoo:master commit in: games-misc/ponysay/ Pacho Ramos
2019-02-18 19:45 James Le Cuirot
2019-02-18 19:45 James Le Cuirot
2020-02-03 23:14 James Le Cuirot
2022-01-28 22:36 James Le Cuirot
2022-01-30 14:52 James Le Cuirot
2022-11-26 14:46 James Le Cuirot
2023-01-15 16:51 James Le Cuirot
2025-01-19 15:05 James Le Cuirot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1482066027.803ddbcb6f67c28f676148293b9bf9037020ddda.chewi@gentoo \
    --to=chewi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox