games-misc/xcowsay: bump to version 1.5
authorConrad Kostecki <conikost@gentoo.org>
Thu, 12 Mar 2020 22:26:56 +0000 (23:26 +0100)
committerConrad Kostecki <conikost@gentoo.org>
Thu, 12 Mar 2020 22:46:58 +0000 (23:46 +0100)
Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
games-misc/xcowsay/Manifest
games-misc/xcowsay/xcowsay-1.5.ebuild [new file with mode: 0644]

index a4cd3b231962ec8be721c5ac23aa06e8c718480b..2b7155b4d9fecccc1479a4c043f46bca0d9a2556 100644 (file)
@@ -1 +1,2 @@
 DIST xcowsay-1.4.tar.gz 100014 BLAKE2B 59a82449bdefcfdb9f1fcf159e21374e36fb1e5af7db5bc61eb10166e5746bb0ce13f4321c904354f8e5b3bc8ae4625b0b12b339dd8013016e644c908f4b6ef0 SHA512 53370ba287ed2bf7d41cbf1bb8631e8da6933575956b38ee02f5aedae5bb49aede7e5e641fa7f93241f078a1a044920b387288ffbe2a10dd04fbe02932c67ca9
+DIST xcowsay-1.5.tar.gz 100878 BLAKE2B 0763648cb808c44cf519c1e77506e8c35f8a71584f81eee406736e52322b7317937f558b4a6931ec293ea334ca45c8085a51dfc49803754bb734d96d7df04dbe SHA512 13b297a675ec02af6f5617db19abe05979be7137ff37437a64cb079749a69551d453f1a584cf3ca2be62ed0dc6363ebac4986b1f93807bba66b21d0e2ba8cf2c
diff --git a/games-misc/xcowsay/xcowsay-1.5.ebuild b/games-misc/xcowsay/xcowsay-1.5.ebuild
new file mode 100644 (file)
index 0000000..8010b4b
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2020 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
+       x11-libs/cairo
+       x11-libs/gtk+:3
+       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[@]}
+}