commit:     66b0e00b6ac74af4b9cf3673e741bef3d6f4140d
Author:     Conrad Kostecki <conrad <AT> kostecki <DOT> com>
AuthorDate: Tue Aug  6 21:57:17 2019 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Aug  8 16:49:27 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66b0e00b

games-misc/xcowsay: bump to version 1.4 & take maintainership

Changes to ebuild:
- Updated homepage to https
- Project now on Github
- Corrected license
- Bumped to EAPI=7
- Dropped not needed depedencies
- Instead of deleting files after installation, disable compilation
- Taking ownership by myself

Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
Closes: https://github.com/gentoo/gentoo/pull/12628
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 games-misc/xcowsay/Manifest           |  1 +
 games-misc/xcowsay/metadata.xml       | 31 +++++++++++++++++---
 games-misc/xcowsay/xcowsay-1.4.ebuild | 55 +++++++++++++++++++++++++++++++++++
 3 files changed, 83 insertions(+), 4 deletions(-)

diff --git a/games-misc/xcowsay/Manifest b/games-misc/xcowsay/Manifest
index ee181b6ab1c..69ed9ca6032 100644
--- a/games-misc/xcowsay/Manifest
+++ b/games-misc/xcowsay/Manifest
@@ -1 +1,2 @@
 DIST xcowsay-1.3.tar.gz 269836 BLAKE2B 
40eea935eb8784c182c03cf68c89f790c826f5162bbed526facee4d7488fb833e55bbecb9824d0b5e98abf3f5bc77068e150a1817f9745fb8ace11b7d7fdbb00
 SHA512 
b6f6493a988d8e8036ba9f2a0434627ffbd28eacd3330b256d8e6754b7be02eeb41390b28a8160091eca87d142e284adf2e2a37f22d715bca3b58ef1db8cdcf1
+DIST xcowsay-1.4.tar.gz 100014 BLAKE2B 
59a82449bdefcfdb9f1fcf159e21374e36fb1e5af7db5bc61eb10166e5746bb0ce13f4321c904354f8e5b3bc8ae4625b0b12b339dd8013016e644c908f4b6ef0
 SHA512 
53370ba287ed2bf7d41cbf1bb8631e8da6933575956b38ee02f5aedae5bb49aede7e5e641fa7f93241f078a1a044920b387288ffbe2a10dd04fbe02932c67ca9

diff --git a/games-misc/xcowsay/metadata.xml b/games-misc/xcowsay/metadata.xml
index 6d3b8a61684..1ed004f6125 100644
--- a/games-misc/xcowsay/metadata.xml
+++ b/games-misc/xcowsay/metadata.xml
@@ -1,8 +1,31 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-<!-- maintainer-needed -->
-<use>
-       <flag name="fortune">Installs the fortune-mod xcow binary</flag>
-</use>
+       <maintainer type="person">
+               <email>ck+gen...@bl4ckb0x.de</email>
+               <name>Conrad Kostecki</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-ma...@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <longdescription>
+               xcowsay displays a cute cow and message on your desktop.
+               Inspired by the original cowsay. It includes all these amazing 
features:
+               - Fully configurable!
+               - Calculates display time from amount of text
+               - Dream mode - display images in the bubble
+               - Can draw thought and speech bubbles
+               - Daemon mode! Send your cow messages over DBus!
+               - Three different sized cows provided
+               - fortune(6) wrapper program: xcowfortune - cow will deliver 
pearls of wisdom!
+               - Replace the naffness that is xmessage(1)
+               - Should work with any window manager
+               - Supports UTF-8 characters properly
+               - Automatic word wrapping
+               - Use alternative non-cow images if you like
+       </longdescription>
+       <use>
+               <flag name="fortune">Enable support for fortune cookies via 
<pkg>games-misc/fortune-mod</pkg></flag>
+       </use>
 </pkgmetadata>

diff --git a/games-misc/xcowsay/xcowsay-1.4.ebuild 
b/games-misc/xcowsay/xcowsay-1.4.ebuild
new file mode 100644
index 00000000000..12288119e0c
--- /dev/null
+++ b/games-misc/xcowsay/xcowsay-1.4.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Displays a cute cow and message on your desktop"
+HOMEPAGE="
+       https://github.com/nickg/xcowsay
+       https://www.doof.me.uk/xcowsay/
+"
+SRC_URI="https://github.com/nickg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dbus fortune nls"
+
+RDEPEND="
+       dev-libs/glib:2
+       virtual/awk
+       x11-libs/gdk-pixbuf:2
+       x11-libs/gtk+:2
+       x11-libs/pango
+       dbus? ( dev-libs/dbus-glib )
+       fortune? ( games-misc/fortune-mod )
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+       sys-devel/gettext
+       virtual/pkgconfig
+"
+
+src_prepare() {
+       default
+
+       if ! use fortune; then
+               sed -e 's/xcowfortune//g' -i src/Makefile.am || die
+       fi
+
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               --disable-rpath
+               $(use_enable dbus)
+               $(use_enable nls)
+       )
+
+       econf ${myeconfargs[@]}
+}

Reply via email to