summaryrefslogtreecommitdiff
path: root/games-misc
diff options
context:
space:
mode:
Diffstat (limited to 'games-misc')
-rw-r--r--games-misc/Manifest.gzbin9108 -> 9109 bytes
-rw-r--r--games-misc/ballerburg/Manifest2
-rw-r--r--games-misc/ballerburg/ballerburg-1.2.0-r1.ebuild (renamed from games-misc/ballerburg/ballerburg-1.2.0.ebuild)14
-rw-r--r--games-misc/exult-sound/Manifest2
-rw-r--r--games-misc/exult-sound/exult-sound-0-r2.ebuild7
-rw-r--r--games-misc/sdljoytest/Manifest3
-rw-r--r--games-misc/sdljoytest/files/sdljoytest-11102003-no-common.patch11
-rw-r--r--games-misc/sdljoytest/sdljoytest-11102003.ebuild7
-rw-r--r--games-misc/typespeed/Manifest4
-rw-r--r--games-misc/typespeed/files/typespeed-0.6.5-link-tinfo.patch35
-rw-r--r--games-misc/typespeed/files/typespeed-0.6.5-use-extern.patch116
-rw-r--r--games-misc/typespeed/typespeed-0.6.5-r2.ebuild (renamed from games-misc/typespeed/typespeed-0.6.5-r1.ebuild)34
-rw-r--r--games-misc/xcowsay/Manifest4
-rw-r--r--games-misc/xcowsay/xcowsay-1.5.1.ebuild (renamed from games-misc/xcowsay/xcowsay-1.5.ebuild)6
14 files changed, 215 insertions, 30 deletions
diff --git a/games-misc/Manifest.gz b/games-misc/Manifest.gz
index 22c17f5e6707..f416271b4976 100644
--- a/games-misc/Manifest.gz
+++ b/games-misc/Manifest.gz
Binary files differ
diff --git a/games-misc/ballerburg/Manifest b/games-misc/ballerburg/Manifest
index 30d72dea8165..b3fc835b4c88 100644
--- a/games-misc/ballerburg/Manifest
+++ b/games-misc/ballerburg/Manifest
@@ -1,3 +1,3 @@
DIST ballerburg-1.2.0.tar.gz 99910 BLAKE2B cbc88ec39135847f9a339b37ae52a151880aafe4ef52659fe0a7c57f3a50b67d4cbb9d46226bf85871a9b7b9321aaad1b38c81d89ed159d07769f7a8be3ce9c3 SHA512 d9a911e811871604650df0224633c5338570ed5eee9a2f3eecb35bc012388b9296878b62b2459965c0766dd7e7cded9a23168f39346a2300aac9e9fe4f478760
-EBUILD ballerburg-1.2.0.ebuild 396 BLAKE2B e2d0a386f3a0567a275fc0be7f4d673068740783b8433da7c615d6c5fb54eb750415b1799daab374e06dd23bbac71c2e7e2cea792eeff26aff1fb12b41eb84ad SHA512 9d89b09cfe79e04fe40734ae8cd601287007648a2f9ec5d6ee0ab179383754793aad9c2bdcf8687adafd0783e5600b91daa8abeea5a81c48df8fa34aae60490f
+EBUILD ballerburg-1.2.0-r1.ebuild 593 BLAKE2B 38f4baa646839d85a7a24d151b5b330a382f441bc8a15925c3de0d8447cac13626bac59efbcd33aa308cb33274c16d47a8ab627465390aed57dca6a416206432 SHA512 6cec9578095b2587af1b1878c33798ccd8c5d7f1bff59a3c0746b6b5c2a54130dc7656c3911caed16d855f105c32cdd94d39ff4cf0b94a7132aa45f728298462
MISC metadata.xml 260 BLAKE2B 5eb8d87919aaab2f101cfc899ccb00b8efb723b67cb102ce580e0e69781639708cb8523b8967f9fb169e00455c548cff19d2827ce711c3f36d5ae58a1d3777ee SHA512 b6369aad1615446c9a4e1740a51a49d843868e114e49bc526e7b00cefdc795a601b9c508d866b065cc4ed750b85f48f136ee5925b9511a80f4056d7ef832eab2
diff --git a/games-misc/ballerburg/ballerburg-1.2.0.ebuild b/games-misc/ballerburg/ballerburg-1.2.0-r1.ebuild
index 3b9c55031ab1..e4a987433010 100644
--- a/games-misc/ballerburg/ballerburg-1.2.0.ebuild
+++ b/games-misc/ballerburg/ballerburg-1.2.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -15,3 +15,15 @@ KEYWORDS="~amd64"
DEPEND="media-libs/libsdl"
RDEPEND="${DEPEND}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DDOCDIR=share/doc/${PF}
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ gunzip "${ED}usr/share/man/man6/ballerburg.6.gz" || die
+}
diff --git a/games-misc/exult-sound/Manifest b/games-misc/exult-sound/Manifest
index 7f2492e3beca..228873dddff9 100644
--- a/games-misc/exult-sound/Manifest
+++ b/games-misc/exult-sound/Manifest
@@ -1,3 +1,3 @@
DIST exult_audio.zip 48439905 BLAKE2B ad8a230d9ba92cef94b22b669644a10ae6fcfe92c4dbfc5c3f89535534b4bddfe7d9b69dbf05220033df92b6d172e83340e6571920f42b5e63e66a5417ffa8f4 SHA512 70374a079935b063f41a37aeb90315d55abb584e5542f7fa12c707318db6365e989a5848bba9045a2c2cca1ccd902cc1d31fec8c95511a986de7a75d322d0919
-EBUILD exult-sound-0-r2.ebuild 597 BLAKE2B edbd6fda422db4274e75ccb53c5da420355f55dbbabe8a851341dab8c4b9cd814c7ea6c296f2894c5035ccb99ea2149b1278ce40fc601793ea8e350859f6f74e SHA512 e9f004590754917c1321ba2dc85f7feafe332682447b77a613d7675419de93dee2c2de3b8f3a684cbb2edfeda4d11320dce136f027ae3367247d06448204f3e5
+EBUILD exult-sound-0-r2.ebuild 593 BLAKE2B 8fe821a601cb9e29a7e2f99d5d31b920bb47700f21d17725d2e21d46232ba9bbfc21ca1d09012a0f44ec7a942e6a3ef828b113cb8a9a082c16b28cbd730698be SHA512 568db73a779495121bd725cba42356e6829d7ae8eea6bb0f4329a1dadb980b2f0444cdd07d45ac139ec82bc2dfce17dac886442f9dafe8d3b2a890d39e39bf12
MISC metadata.xml 328 BLAKE2B b895ccfad252cbbeb8fe092b4416086fd43420976392111a9ee7b0f714ee22e32d64b651f7e2370466b32c840b1eb0de8702a6714b9718e6bc90fa4524b84ed0 SHA512 bf9ebdd6a99230e6cb155d0dc42b0d94aa1d15b64afc93420210b6763a46a4c8ab3f18cbc83e54068dc7c62df73baf28ee3cbc13a34c7824a724041ac13be16e
diff --git a/games-misc/exult-sound/exult-sound-0-r2.ebuild b/games-misc/exult-sound/exult-sound-0-r2.ebuild
index 4f3b978a614a..e10508635718 100644
--- a/games-misc/exult-sound/exult-sound-0-r2.ebuild
+++ b/games-misc/exult-sound/exult-sound-0-r2.ebuild
@@ -1,18 +1,17 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
DESCRIPTION="Sound data for games-engines/exult"
HOMEPAGE="http://exult.sourceforge.net/"
-SRC_URI="mirror://sourceforge/exult/exult_audio.zip"
+SRC_URI="https://downloads.sourceforge.net/exult/exult-data/exult_audio.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-DEPEND="!<games-engines/exult-9999
- app-arch/unzip"
+DEPEND="app-arch/unzip"
S="${WORKDIR}"
diff --git a/games-misc/sdljoytest/Manifest b/games-misc/sdljoytest/Manifest
index 5a65deded699..47adb8b1eee3 100644
--- a/games-misc/sdljoytest/Manifest
+++ b/games-misc/sdljoytest/Manifest
@@ -1,3 +1,4 @@
+AUX sdljoytest-11102003-no-common.patch 238 BLAKE2B fecf305d2bc4534c515c5bc8e81d45489c1e14efc0afe34d5f20b06f40050efa0347b710c4c5e0d5b3e6606c95b5a093e9ecff7d193d3453eee067c1c0961ad7 SHA512 752feddb09c42775df2b5c8810d6d2b95dedb97d2e5c7812e044394bf05b2370f7e47c90eb36e62b7aed7c4d138f04ebf7e238d5ae2b9aafa546fbc522176d3a
DIST SDLJoytest-GL-11102003.tar.bz2 85997 BLAKE2B 23ae410c462d9501306d6e225d2523ef940dd3f3e6ab7c898313a25253f86c42d3c0c7d64385a0c6de06331ca68ddc49296cea572f0a1f42161a912e8ff3274d SHA512 4994e878eaacacb156d4d9988d1e7864ed4e5e3d4db6bc0be8a883d7edde87d56698eb22de5d39e2110be7f960e5bf080283a7563bb2bc3f17c390181e097c6a
-EBUILD sdljoytest-11102003.ebuild 872 BLAKE2B cc1368cb30bfc1f7c938a4df493d5819dace93a031cb5db50762cfac49f0d540d5e1059fd37af3da0331a4a7ea406a8e02cff458ab16bd8b8e7ddb5941347744 SHA512 4b16ec9ed12bc139dd4876459528fe8cb1c27c299315297c720015c008d9d3bcf68428b2acbb3856d13abfabb236b776247952266df682c231666274cd8322b9
+EBUILD sdljoytest-11102003.ebuild 924 BLAKE2B 76486a2d99dbeb4ff0e592080e2405f1de12a0c9d44310f029d3f11ce7132194bf739b829ca74f7683fbdc30e7d2c3b67d35ecfd3c3fd5051be2b1df7256d289 SHA512 b22c2f6c4d433a685f0a23551e1f751704c7a98f7a2fdcf20571b9c827210c752f0078393a7df37b713d6af745dd2d40b599088fe1219dd33b4fcb061605cef5
MISC metadata.xml 333 BLAKE2B 5eadf19507a2a63c03c3457ae2efec7cbc5a2b6abc8d323c7f38510f639b795e56d1e83e7ead78c1d3930317e712d6536cdc5453c84bc66573ea7c5963f63f58 SHA512 f3c36c935fc927fa6ccf4402f67ec8d213fd94c2bf5855b4f1e6852c3c2c32fa051998cda971050c7f2f3257dc4102369c0af8d5d386ecb2a1e4d2ab177217d9
diff --git a/games-misc/sdljoytest/files/sdljoytest-11102003-no-common.patch b/games-misc/sdljoytest/files/sdljoytest-11102003-no-common.patch
new file mode 100644
index 000000000000..6775c2b6655f
--- /dev/null
+++ b/games-misc/sdljoytest/files/sdljoytest-11102003-no-common.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/706448
+--- a/init_quit.h
++++ b/init_quit.h
+@@ -36,7 +36,6 @@ extern int joyXCenter;
+ extern int videoFlags;
+ extern int lightCol;
+ extern int lightRow;
+-int hello;
+ extern GLint textures[2];
+ extern GLuint base;
+
diff --git a/games-misc/sdljoytest/sdljoytest-11102003.ebuild b/games-misc/sdljoytest/sdljoytest-11102003.ebuild
index 905eb1487338..335b1b27c354 100644
--- a/games-misc/sdljoytest/sdljoytest-11102003.ebuild
+++ b/games-misc/sdljoytest/sdljoytest-11102003.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
inherit toolchain-funcs
DESCRIPTION="SDL app to test joysticks and game controllers"
@@ -20,7 +20,10 @@ RDEPEND=${DEPEND}
S=${WORKDIR}/SDLJoytest-GL
+PATCHES=("${FILESDIR}"/${P}-no-common.patch)
+
src_prepare() {
+ default
emake clean
sed -i -e 's:/usr/local:/usr:' joytest.h || die
sed -i -e 's:SDL/::' *.c || die
diff --git a/games-misc/typespeed/Manifest b/games-misc/typespeed/Manifest
index 38b83363829f..23dfe33b319c 100644
--- a/games-misc/typespeed/Manifest
+++ b/games-misc/typespeed/Manifest
@@ -1,4 +1,6 @@
+AUX typespeed-0.6.5-link-tinfo.patch 1207 BLAKE2B 364daa1006f070f966ba2e27a25a145f2985b4f10042f3e779e9bc2285b45f8d69d93ad22465d2cce72c9ad0675844440c26cd6d33c28dd6fb3f61481d22c040 SHA512 f8a5cc7588d7cb5d5ef29b60f7ba09ac90f486cfc2efe105dfe0060fe26b6265254c77f1793b69d7a9d60f915e145e20819b64fe5cb3c63d82af04b4d5bc81d5
AUX typespeed-0.6.5-musl.patch 418 BLAKE2B c1af19bfbb0c05d3cbc0c4308ff89ecdad0825d8e77b19d32b02d8ba410538ead7c90a20f31083174cf0e0cd9a428cb4070ef76949c105c2768086ac6fbcc81e SHA512 3f5f2d1d1fd85e1829fb024bfbf355b945c04bd0a624b3e2a86dbe029f64d15473c66c7410bd4013d263fcf3142474e2ac92656699aebc0570c62d8a18a4b635
+AUX typespeed-0.6.5-use-extern.patch 2482 BLAKE2B 61614a47fec82e9d0796bc7056a147665257d6e7ee44f9a240d64d6caf0eb8153acd1f90854af689fefd3c546e31c7a15b01dc95a117bfcdfe171fc55762a880 SHA512 f20a8c8774748175d48a10d790463160b23b9279f1974a5ec77314f93c52bef827384dc0e35a5eab09cb066a8352cdab745c59d300b371a2a2e9b9e8713a2d1d
DIST typespeed-0.6.5.tar.gz 254170 BLAKE2B ce39d5e7d31a068a34deafa1c81dc69b028339d4f8e7461e5bfce335bdc47885b224f33efc7eb02765a2ae0cc1d1b52559b210a04fa0a549d54093dbc816acc0 SHA512 cf3a8cdeb5fb1ee81bd5cf50d6b2aca1e7331b0bfde518c38050abae35ca617fbeed5bf2a37830a7568712ab71920f60c89197317a2721ae8c89829b0eede190
-EBUILD typespeed-0.6.5-r1.ebuild 815 BLAKE2B 0abcf0a804384eca3295340f306629361c315886e12895001bdf31ca2b2de61f826b7752d13b22e201caf11c4e1a74f506467071559ccaf9490cb552743fb7e2 SHA512 237f57ede6fa954e9be852a888df57c0f128e802dffc73a71e23c597ee524a63a3fbbc70327523b3f1509cbe1dd4ccd72b2d289dbcc6ff205a58358ca225d697
+EBUILD typespeed-0.6.5-r2.ebuild 855 BLAKE2B ab41de4f169d989a279fdbfd0be8b7071fec7ced55bb2b3b98120ee5a9217a9325c5299fdfe18c228426375f56d91e6becd6922ffc12db102d73fa5663dd2382 SHA512 450e78b9a468c7858f3cde08f9ab12e99218da3a0b1263dc6ed5462eef794c7926130e033c50eaf69d19c7fed2c2369d7974475f48085027b47e9dc51cb2af75
MISC metadata.xml 332 BLAKE2B a7dea2ab5d54a1bf0455a41fa30f7bfb1eee06f547e2b14ce5b7d63dbf826ae43287304a331754829819addceade50bae557de63fb7d0536cf0573342ef42734 SHA512 3038edc39a8e186f2d054ff72afd3f28e62e116e436bd818080e65dc8cea1a93b5e41658c86709ca70a9df91116631b90deaefb1dc5cbe77e9f6e802e9b5af1e
diff --git a/games-misc/typespeed/files/typespeed-0.6.5-link-tinfo.patch b/games-misc/typespeed/files/typespeed-0.6.5-link-tinfo.patch
new file mode 100644
index 000000000000..9ffb9cfcc567
--- /dev/null
+++ b/games-misc/typespeed/files/typespeed-0.6.5-link-tinfo.patch
@@ -0,0 +1,35 @@
+diff -r 8cf704f4cffa configure.ac
+--- a/configure.ac Thu Oct 15 23:52:32 2020 +0000
++++ b/configure.ac Thu Oct 15 23:52:58 2020 +0000
+@@ -16,6 +16,6 @@
+
+ # Checks for libraries.
+-AC_CHECK_LIB([ncurses], [initscr])
++PKG_CHECK_MODULES([NCURSES], [ncurses], [], [exit 1])
+
+ # I18N
+ AM_GNU_GETTEXT_VERSION([0.14.5])
+diff -r e64ba00e0147 src/Makefile.am
+--- a/src/Makefile.am Fri Oct 16 00:08:17 2020 +0000
++++ b/src/Makefile.am Fri Oct 16 00:08:39 2020 +0000
+@@ -15,7 +15,7 @@
+ -DCONFIGFILE=\"$(sysconfdir)/typespeedrc\" \
+ -DHIGHFILE=\"$(highscoredir)/$(HIGHFILE)\" \
+ -DWORDDIR=\"$(WORDDIR)\" -DRULEDIR=\"$(RULEDIR)\"
+-typespeed_LDADD = @LIBINTL@
++typespeed_LDADD = @LIBINTL@ @NCURSES_LIBS@
+ typespeed_SOURCES = file.c gettext.h menu.c misc.c network.c pathnames.h \
+ typespeed.c typespeed.h
+
+diff -r 987ceebc438f testsuite/Makefile.am
+--- a/testsuite/Makefile.am Fri Oct 16 00:14:34 2020 +0000
++++ b/testsuite/Makefile.am Fri Oct 16 00:15:37 2020 +0000
+@@ -2,7 +2,7 @@
+
+ localedir = $(datadir)/locale
+ AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -DTVERSION=\"v$(VERSION)\" -DTEST
+-LDADD = @LIBINTL@
++LDADD = @LIBINTL@ @NCURSES_LIBS@
+
+ EXTRA_DIST = t_unescstr.sh t_loadwords_data/3_empty
+
diff --git a/games-misc/typespeed/files/typespeed-0.6.5-use-extern.patch b/games-misc/typespeed/files/typespeed-0.6.5-use-extern.patch
new file mode 100644
index 000000000000..cd5e4ea54c03
--- /dev/null
+++ b/games-misc/typespeed/files/typespeed-0.6.5-use-extern.patch
@@ -0,0 +1,116 @@
+Description: Fix FTBFS with gcc-10
+
+Author: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
+Bug-Debian: https://bugs.debian.org/957887
+
+---
+
+--- typespeed-0.6.5.orig/src/file.c
++++ typespeed-0.6.5/src/file.c
+@@ -142,6 +142,9 @@ extern int hfd;
+ extern char *rankki[11];
+ extern char *typorank[12];
+ extern char *usedwordfile;
++extern struct rules rules;
++struct rawdata words;
++struct opt opt;
+
+ char ruledir[MAXPATHLEN];
+ char worddir[MAXPATHLEN];
+--- typespeed-0.6.5.orig/src/menu.c
++++ typespeed-0.6.5/src/menu.c
+@@ -76,6 +76,9 @@ void tellstory(void);
+
+ extern int misses;
+ extern char *rankki[11];
++extern struct stats now;
++extern struct rules rules;
++extern struct opt opt;
+
+ struct positions {
+ int rank;
+--- typespeed-0.6.5.orig/src/misc.c
++++ typespeed-0.6.5/src/misc.c
+@@ -75,6 +75,7 @@ char *xstrdup(char *);
+ void xstrncpy(char *, char *, size_t);
+
+ extern char *progname;
++extern struct opt opt;
+
+ static int graph = 0;
+
+--- typespeed-0.6.5.orig/src/network.c
++++ typespeed-0.6.5/src/network.c
+@@ -116,6 +116,7 @@ void setnoblock(void);
+ void writenum(char *, uint32_t);
+
+ extern FILE *netlogfile;
++extern struct opt opt;
+
+ static int ds = -1;
+ static int ss = -1;
+--- typespeed-0.6.5.orig/src/typespeed.c
++++ typespeed-0.6.5/src/typespeed.c
+@@ -146,6 +146,7 @@ char *typorank[12] =
+
+ FILE *netlogfile;
+ struct stats best;
++struct stats now;
+ int hfd;
+ int misses;
+ struct stats other;
+@@ -155,6 +156,9 @@ char *usedwordfile;
+ int wordcount = 0;
+ int wordpos[22];
+ char wordstring[22][20];
++struct rules rules;
++extern struct rawdata words;
++extern struct opt opt;
+
+ struct option options[] = {
+ {"cheat", no_argument, &opt.cheat, 1},
+--- typespeed-0.6.5.orig/src/typespeed.h
++++ typespeed-0.6.5/src/typespeed.h
+@@ -56,7 +56,7 @@ struct stats {
+ clock_t duration;
+ unsigned int sinit;
+ char name[21];
+-} now;
++};
+
+ struct opt {
+ int cheat;
+@@ -66,7 +66,7 @@ struct opt {
+ int usecolors;
+ char name[21];
+ char order[3];
+-} opt;
++};
+
+ struct rules {
+ int misses;
+@@ -85,12 +85,12 @@ struct rules {
+ int maxtime;
+ char name[31];
+ char fname[FILENAME_MAX + 1];
+-} rules;
++};
+
+ struct rawdata {
+ char *bulk;
+ char **word;
+ size_t n;
+ size_t max;
+-} words;
++};
+
+--- typespeed-0.6.5.orig/testsuite/t_loadwords.c
++++ typespeed-0.6.5/testsuite/t_loadwords.c
+@@ -52,6 +52,7 @@ extern void freewords(void);
+ extern int loadwords(char *);
+
+ extern char worddir[MAXPATHLEN];
++extern struct rawdata words;
+
+ int
+ main(void)
diff --git a/games-misc/typespeed/typespeed-0.6.5-r1.ebuild b/games-misc/typespeed/typespeed-0.6.5-r2.ebuild
index 9e0c90a21b2a..04092fb9bf55 100644
--- a/games-misc/typespeed/typespeed-0.6.5-r1.ebuild
+++ b/games-misc/typespeed/typespeed-0.6.5-r2.ebuild
@@ -1,7 +1,8 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
+
inherit autotools
DESCRIPTION="Test your typing speed, and get your fingers CPS"
@@ -15,28 +16,29 @@ IUSE="nls"
RDEPEND="
sys-libs/ncurses:0=
- nls? ( virtual/libintl )
-"
-DEPEND="${RDEPEND}
- nls? ( sys-devel/gettext )
-"
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-musl.patch
+ "${FILESDIR}"/${P}-use-extern.patch
+ "${FILESDIR}"/${P}-link-tinfo.patch
+)
src_prepare() {
default
- sed -i \
- -e 's/testsuite//' \
- -e 's/doc//' \
- Makefile.am || die
- sed -i -e '/^CC =/d' src/Makefile.am || die
- eapply "${FILESDIR}"/${P}-musl.patch
- rm -rf m4 #417265
+ sed -i -e '/^CC =/d' \
+ src/Makefile.am \
+ testsuite/Makefile.am || die
+ rm -r m4 || die #bug 417265
eautoreconf
}
src_configure() {
- econf \
- --localedir=/usr/share/locale \
- $(use_enable nls)
+ econf $(use_enable nls)
}
src_install() {
diff --git a/games-misc/xcowsay/Manifest b/games-misc/xcowsay/Manifest
index fd7bea886492..7afd64245ed5 100644
--- a/games-misc/xcowsay/Manifest
+++ b/games-misc/xcowsay/Manifest
@@ -1,3 +1,3 @@
-DIST xcowsay-1.5.tar.gz 100878 BLAKE2B 0763648cb808c44cf519c1e77506e8c35f8a71584f81eee406736e52322b7317937f558b4a6931ec293ea334ca45c8085a51dfc49803754bb734d96d7df04dbe SHA512 13b297a675ec02af6f5617db19abe05979be7137ff37437a64cb079749a69551d453f1a584cf3ca2be62ed0dc6363ebac4986b1f93807bba66b21d0e2ba8cf2c
-EBUILD xcowsay-1.5.ebuild 897 BLAKE2B 80870624a36a1ebc4feb897d2f8088eb18b2f3c8bdb97df6aecd81cca3b8571da7620cce387419fb5a4d9962f1a1e472802e68c2d162fa1cb5236824ec8662c6 SHA512 4817163a078de8f13921ac21d91bbc6dfafe5186ef1d9f64e7b39f438ec2204e4eda0c468d2cfd05318406f748641cc680ef68148f1374851e3a3d92cdf96446
+DIST xcowsay-1.5.1.tar.gz 101281 BLAKE2B 568f6ad7225cd859c37d79bf3ddf66c184f47d8feb6dedbafbd29ca4e05d97d883c6d6e4f4d60cebe107f1527e1ff01e17ec61430a3e55e2f504c2c00e402488 SHA512 55c165b5b2c01b11463af0eeb13fd646ea50138e2938ddfc25d44f1a704b7473d047bc7c95165f449a600de51ee005904f007843e33a8ef02c725b827eaec616
+EBUILD xcowsay-1.5.1.ebuild 961 BLAKE2B f2877945128ba30e18908a0ce5d4b5e0f31e205e8e9c63f9c87f692568368c2cf76c793f9effbf14eb7773e5f00c2757e3f527e0db14b52d0ac17f3624dbc6eb SHA512 42bc3620388d81956d3421e5d745d476aa6040da7ef60e61529623dc181e1686028c993ccca2b7f9d076440680a4b507aca25dda0749f42ae2eed5976dd23440
MISC metadata.xml 1070 BLAKE2B 5d5e324cb4d67d225cb064b46beadd2b0983a5237636de22f18c06aa35d297bed264889fee2246fceacf7c828fdfc5c3a0213733944960072f92b63b0405ce69 SHA512 014335d121bad3fba29d63b860495231223cba25beffcc2c28fc9c55fc1d97a35fc396986763434e345a4217aa84b1c180280aa255ca3c4f89460a5e0b35840d
diff --git a/games-misc/xcowsay/xcowsay-1.5.ebuild b/games-misc/xcowsay/xcowsay-1.5.1.ebuild
index c1706db5b89b..53da3b690e10 100644
--- a/games-misc/xcowsay/xcowsay-1.5.ebuild
+++ b/games-misc/xcowsay/xcowsay-1.5.1.ebuild
@@ -3,6 +3,8 @@
EAPI=7
+MY_PV="r${PV}"
+
inherit autotools
DESCRIPTION="Displays a cute cow and message on your desktop"
@@ -10,12 +12,14 @@ 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"
+SRC_URI="https://github.com/nickg/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="dbus fortune nls"
+RESTRICT="test"
RDEPEND="
dev-libs/glib:2