summaryrefslogtreecommitdiff
path: root/games-misc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-04 11:43:04 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-04 11:43:04 +0000
commit56a597689e7509193b0924a635d2022f21b1a3e4 (patch)
tree476358a5cea634edc1fb0504f6ec03b282cfb83e /games-misc
parent57e2174dcd454b41778b7b437f88d0a9f1a6e428 (diff)
gentoo auto-resync : 04:03:2024 - 11:43:04
Diffstat (limited to 'games-misc')
-rw-r--r--games-misc/Manifest.gzbin8935 -> 8936 bytes
-rw-r--r--games-misc/typespeed/Manifest3
-rw-r--r--games-misc/typespeed/files/typespeed-0.6.5-gamestat.patch15
-rw-r--r--games-misc/typespeed/files/typespeed-0.6.5-lto.patch54
-rw-r--r--games-misc/typespeed/typespeed-0.6.5-r3.ebuild64
5 files changed, 136 insertions, 0 deletions
diff --git a/games-misc/Manifest.gz b/games-misc/Manifest.gz
index 4cc51659c352..d5f381baec19 100644
--- a/games-misc/Manifest.gz
+++ b/games-misc/Manifest.gz
Binary files differ
diff --git a/games-misc/typespeed/Manifest b/games-misc/typespeed/Manifest
index 16b956e35e05..4e674eaf51c9 100644
--- a/games-misc/typespeed/Manifest
+++ b/games-misc/typespeed/Manifest
@@ -1,6 +1,9 @@
+AUX typespeed-0.6.5-gamestat.patch 521 BLAKE2B f4292938264034db429794e59946d52cc4790fb803b59609215dcea504eb0dff9d5b3905c50f94fb08da04253dfb43fd5c52de2f48471e0c23bf3aa3d7b77eff SHA512 80d2b20664e627ac0b366736d803efbd10a4cf8d0224c7683543bf1aa41fd9e98e556339617b2c70f90b3ec7a1a79705266885b5d449d4518d27ecdf9dfeb246
AUX typespeed-0.6.5-link-tinfo.patch 1207 BLAKE2B 364daa1006f070f966ba2e27a25a145f2985b4f10042f3e779e9bc2285b45f8d69d93ad22465d2cce72c9ad0675844440c26cd6d33c28dd6fb3f61481d22c040 SHA512 f8a5cc7588d7cb5d5ef29b60f7ba09ac90f486cfc2efe105dfe0060fe26b6265254c77f1793b69d7a9d60f915e145e20819b64fe5cb3c63d82af04b4d5bc81d5
+AUX typespeed-0.6.5-lto.patch 1649 BLAKE2B 7e4944fc7f918416c8a6212869edbcaa5df25ee68fd563d301903e792eb055f5e200f57891b36f194f64d996b4fccbb68820a35ddf5889edb704fc966c0f94ff SHA512 fa0cf356093200b5d79d38a3c1dd2349924f49d5256d58267fd5fcb51a627dcca9e0fe1cace1436ac52a10d29972b49110cee2b43b13197ee74e14992e2a67cb
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-r2.ebuild 850 BLAKE2B ff4b40ad9816ccd15d0009e71b2e2e0dd06baab16920bd7b292f712ab7526f954f2d74eabb18b9aec427375a93878328b66ed6eb2c413dd729b9b4923f202a12 SHA512 75e30b3fba37dc4774184797785d21800ffb357c276f737476a3500db0d759a50a767f588108abfc0b21e3a2c4e25af4f3d1e8c9e16c64d68c41f2654f74c5dd
+EBUILD typespeed-0.6.5-r3.ebuild 1079 BLAKE2B 1195b98c2f9ad5ebcdbeadb69da222d0565dadc946807bffb835df45b460e0df1caa715a810c1df23f1886abfb39f878a989c67a53484b5774db6fe8b791fefc SHA512 76a15076b1bb796c8a6f416532b0c4752e2a8545071b8b5df5e6141f8535decfbf345179b2074317dc477efc1efc6d75773aa4a3fa0fa9283a6c0dfa1e0d83e2
MISC metadata.xml 333 BLAKE2B 5eee97be1eab7514fd9728cce73c6eb9786c7c8a5319c98d2c4193f4dc79506444ca0575981bfdead6c255b5833a13d2376df985139d56746c3112ec6544de4a SHA512 d040094f95bda9e0a2550cb41ae4fe618ca4847bab6723ca33b3be1d82584d2ae4b142b25dc686a33f261ed5f89d754ebf8580334140bf62e532c15219fa4a56
diff --git a/games-misc/typespeed/files/typespeed-0.6.5-gamestat.patch b/games-misc/typespeed/files/typespeed-0.6.5-gamestat.patch
new file mode 100644
index 000000000000..7159b1950ecc
--- /dev/null
+++ b/games-misc/typespeed/files/typespeed-0.6.5-gamestat.patch
@@ -0,0 +1,15 @@
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -23,10 +23,10 @@ typespeed.score:
+ @touch typespeed.score
+
+ install-data-hook:
+- -chgrp games $(DESTDIR)$(highscoredir)/$(HIGHFILE) && \
++ -chgrp gamestat $(DESTDIR)$(highscoredir)/$(HIGHFILE) && \
+ chmod g+w $(DESTDIR)$(highscoredir)/$(HIGHFILE) && \
+ chmod o-rwx $(DESTDIR)$(highscoredir)/$(HIGHFILE)
+
+ install-exec-hook:
+- -chgrp games $(DESTDIR)$(bindir)/typespeed && \
++ -chgrp gamestat $(DESTDIR)$(bindir)/typespeed && \
+ chmod g+s $(DESTDIR)$(bindir)/typespeed
diff --git a/games-misc/typespeed/files/typespeed-0.6.5-lto.patch b/games-misc/typespeed/files/typespeed-0.6.5-lto.patch
new file mode 100644
index 000000000000..c734e196e683
--- /dev/null
+++ b/games-misc/typespeed/files/typespeed-0.6.5-lto.patch
@@ -0,0 +1,54 @@
+https://bugs.gentoo.org/858785
+--- a/src/file.c
++++ b/src/file.c
+@@ -97,7 +97,7 @@ extern unsigned long cstrl(char *);
+ extern void defrule(void);
+ extern void drawscreen(void);
+ extern int fileselmenu(int, struct finfo *, const char *);
+-extern unsigned short level(int);
++extern int level(int);
+ extern void liima_mvgetnstr(int, int, char *, int);
+ extern int netrecv(int, int, int, int, char *, size_t);
+ extern int netsend(char *);
+--- a/src/menu.c
++++ b/src/menu.c
+@@ -54,7 +54,7 @@ extern void closenetwork(void);
+ extern unsigned long cstrl(char *);
+ extern void xerrx(int, const char *, ...);
+ extern int initnetwork(char *, int);
+-extern unsigned short level(int);
++extern int level(int);
+ extern void liima_mvgetnstr(int, int, char *, int);
+ extern void multipmenu(void);
+ extern void xcolor_set(short);
+--- a/src/misc.c
++++ b/src/misc.c
+@@ -61,7 +61,7 @@
+ unsigned long cstrl(char *);
+ void endcursestuff(void);
+ void initcursestuff(void);
+-unsigned short level(int);
++int level(int);
+ void liima_mvgetnstr(int, int, char *, int);
+ int r(int);
+ clock_t timenow(void);
+@@ -151,7 +151,7 @@ initcursestuff(void)
+ }
+
+ /* Returns (0 - 10) and sets color according to "pointsit". */
+-unsigned short
++int
+ level(int pointsit)
+ {
+ int leveli;
+--- a/src/typespeed.c
++++ b/src/typespeed.c
+@@ -96,7 +96,7 @@ extern void freewords(void);
+ extern void initcursestuff(void);
+ extern int initnetwork(char *, int);
+ extern void initstatus(char *);
+-extern unsigned short level(int);
++extern int level(int);
+ extern int loadscores(char *);
+ extern void makescorefiles(char *);
+ extern void multipmenu(void);
diff --git a/games-misc/typespeed/typespeed-0.6.5-r3.ebuild b/games-misc/typespeed/typespeed-0.6.5-r3.ebuild
new file mode 100644
index 000000000000..a8cbef568bc7
--- /dev/null
+++ b/games-misc/typespeed/typespeed-0.6.5-r3.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools edo
+
+DESCRIPTION="Test your typing speed, and get your fingers CPS"
+HOMEPAGE="https://typespeed.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="nls"
+
+RDEPEND="
+ acct-group/gamestat
+ sys-libs/ncurses:=
+ 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
+ "${FILESDIR}"/${P}-lto.patch
+ "${FILESDIR}"/${P}-gamestat.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i -e '/^CC =/d' \
+ src/Makefile.am \
+ testsuite/Makefile.am || die
+ # bug #417265
+ rm -r m4 || die
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+src_test() {
+ default
+
+ cd testsuite || die
+ local test
+ for test in t_level t_loadwords t_typorankkaus ; do
+ edo ./${test}
+ done
+}
+
+src_install() {
+ default
+ dodoc doc/README
+}