diff options
Diffstat (limited to 'games-misc/typespeed')
-rw-r--r-- | games-misc/typespeed/Manifest | 4 | ||||
-rw-r--r-- | games-misc/typespeed/files/typespeed-0.6.5-musl.patch | 15 | ||||
-rw-r--r-- | games-misc/typespeed/metadata.xml | 11 | ||||
-rw-r--r-- | games-misc/typespeed/typespeed-0.6.5-r1.ebuild | 46 |
4 files changed, 76 insertions, 0 deletions
diff --git a/games-misc/typespeed/Manifest b/games-misc/typespeed/Manifest new file mode 100644 index 000000000000..9fef946670d9 --- /dev/null +++ b/games-misc/typespeed/Manifest @@ -0,0 +1,4 @@ +AUX typespeed-0.6.5-musl.patch 418 BLAKE2B c1af19bfbb0c05d3cbc0c4308ff89ecdad0825d8e77b19d32b02d8ba410538ead7c90a20f31083174cf0e0cd9a428cb4070ef76949c105c2768086ac6fbcc81e SHA512 3f5f2d1d1fd85e1829fb024bfbf355b945c04bd0a624b3e2a86dbe029f64d15473c66c7410bd4013d263fcf3142474e2ac92656699aebc0570c62d8a18a4b635 +DIST typespeed-0.6.5.tar.gz 254170 BLAKE2B ce39d5e7d31a068a34deafa1c81dc69b028339d4f8e7461e5bfce335bdc47885b224f33efc7eb02765a2ae0cc1d1b52559b210a04fa0a549d54093dbc816acc0 SHA512 cf3a8cdeb5fb1ee81bd5cf50d6b2aca1e7331b0bfde518c38050abae35ca617fbeed5bf2a37830a7568712ab71920f60c89197317a2721ae8c89829b0eede190 +EBUILD typespeed-0.6.5-r1.ebuild 852 BLAKE2B ebc7616fb387dd6814e7707ef4a3565272cb5f0b4dec6c80625d23894f4f6b8bf01313bb3521fc867fe4e5a2e8880be605b4ff6073ac4779330fc23bf523bcfd SHA512 3a220b3ff616b6dc285128370a853c843fa195e9da6fd70cd1e57c3417e981673b2bb1418629b081fa13cb3ac697cd825aaa7e3eda3d0f5fa1807eabbdd58dd6 +MISC metadata.xml 332 BLAKE2B a7dea2ab5d54a1bf0455a41fa30f7bfb1eee06f547e2b14ce5b7d63dbf826ae43287304a331754829819addceade50bae557de63fb7d0536cf0573342ef42734 SHA512 3038edc39a8e186f2d054ff72afd3f28e62e116e436bd818080e65dc8cea1a93b5e41658c86709ca70a9df91116631b90deaefb1dc5cbe77e9f6e802e9b5af1e diff --git a/games-misc/typespeed/files/typespeed-0.6.5-musl.patch b/games-misc/typespeed/files/typespeed-0.6.5-musl.patch new file mode 100644 index 000000000000..3967b10f3428 --- /dev/null +++ b/games-misc/typespeed/files/typespeed-0.6.5-musl.patch @@ -0,0 +1,15 @@ +diff -ur a/typespeed-0.6.5/src/typespeed.h b/typespeed-0.6.5/src/typespeed.h +--- typespeed-0.6.5/src/typespeed.h 2008-08-13 15:36:51.000000000 +0100 ++++ typespeed-0.6.5/src/typespeed.h 2016-01-01 10:41:54.919998820 +0100 +@@ -27,10 +27,10 @@ + + #include <stdint.h> + #include <stdio.h> ++#include <time.h> + + #ifdef WIN32 + #include <dirent.h> +- #include <time.h> + + #ifndef MAXHOSTNAMELEN + #define MAXHOSTNAMELEN 256 diff --git a/games-misc/typespeed/metadata.xml b/games-misc/typespeed/metadata.xml new file mode 100644 index 000000000000..2b49be614f65 --- /dev/null +++ b/games-misc/typespeed/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <upstream> + <remote-id type="sourceforge">typespeed</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-misc/typespeed/typespeed-0.6.5-r1.ebuild b/games-misc/typespeed/typespeed-0.6.5-r1.ebuild new file mode 100644 index 000000000000..354c9eba5a35 --- /dev/null +++ b/games-misc/typespeed/typespeed-0.6.5-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools + +DESCRIPTION="Test your typing speed, and get your fingers CPS" +HOMEPAGE="http://typespeed.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc64 ~x86" +IUSE="nls" + +RDEPEND=" + sys-libs/ncurses:0= + nls? ( virtual/libintl ) +" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) +" + +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 + eautoreconf +} + +src_configure() { + econf \ + --localedir=/usr/share/locale \ + --docdir=/usr/share/doc/${PF} \ + $(use_enable nls) +} + +src_install() { + default + dodoc doc/README +} |