Skip to content

Commit

Permalink
games-misc/typespeed: add patch from Felix Janda to build on the musl…
Browse files Browse the repository at this point in the history
… profiles (bug #570452)

Package-Manager: portage-2.2.24
  • Loading branch information
Michael Sterrett committed Jan 2, 2016
1 parent 179974d commit cfb29fb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
15 changes: 15 additions & 0 deletions games-misc/typespeed/files/typespeed-0.6.5-musl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff -ur a/typespeed-0.6.5/src/typespeed.h b/typespeed-0.6.5/src/typespeed.h
--- a/typespeed-0.6.5/src/typespeed.h 2008-08-13 15:36:51.000000000 +0100
+++ b/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
7 changes: 3 additions & 4 deletions games-misc/typespeed/typespeed-0.6.5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# $Id$

EAPI=5
inherit autotools games
inherit autotools eutils games

DESCRIPTION="Test your typing speed, and get your fingers CPS"
HOMEPAGE="http://typespeed.sourceforge.net/"
Expand All @@ -24,9 +24,8 @@ src_prepare() {
-e 's/testsuite//' \
-e 's/doc//' \
Makefile.am || die
sed -i \
-e '/^CC =/d' \
src/Makefile.am || die
sed -i -e '/^CC =/d' src/Makefile.am || die
epatch "${FILESDIR}"/${P}-musl.patch
rm -rf m4 #417265
eautoreconf
}
Expand Down

0 comments on commit cfb29fb

Please sign in to comment.