1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-01 10:59:55 +00:00

New port: games/typespeed

Typespeed gives your fingers' cps (total and correct),
	typoratio and some points to compare with your friends.

	Typespeed's idea is ripped from ztspeed (a dos game made
	by Zorlim). Idea of the game should be clear to anyone,
	just type and type it fast, or be a lewser.

PR:		ports/57342
Submitted by:	Suleiman Souhlal <refugee@vt.edu>
This commit is contained in:
Edwin Groothuis 2003-10-04 10:01:07 +00:00
parent d00354faf5
commit 4b607005b5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=90226
7 changed files with 94 additions and 0 deletions

View File

@ -377,6 +377,7 @@
SUBDIR += tuxtype
SUBDIR += tvp
SUBDIR += twitch
SUBDIR += typespeed
SUBDIR += uhexen
SUBDIR += uox3
SUBDIR += uqm

25
games/typespeed/Makefile Normal file
View File

@ -0,0 +1,25 @@
# New ports collection makefile for: typespeed
# Date created: 06 September 2003
# Whom: refugee
#
# $FreeBSD$
#
PORTNAME= typespeed
PORTVERSION= 0.4.1
CATEGORIES= games
MASTER_SITES= http://www.sicom.fi/~bestis/
DISTNAME= typespeed-${PORTVERSION}
MAINTAINER= refugee@vt.edu
COMMENT= Test your typing speed, and get your fingers\' CPS
MAN1= typespeed.1
USE_REINPLACE= yes
post-patch:
${REINPLACE_CMD} -e 's#_PREFIX_HERE#${PREFIX}#g' \
${WRKSRC}/typespeed.h
.include <bsd.port.mk>

1
games/typespeed/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (typespeed-0.4.1.tar.gz) = 0af9809cd20bd9010732ced930090f32

View File

@ -0,0 +1,36 @@
--- Makefile.orig Wed Nov 10 15:32:40 1999
+++ Makefile Mon Sep 29 04:32:41 2003
@@ -11,9 +11,9 @@
OBJS = file.o menu.o misc.o network.o
local_dir = $(HOME)
-install_dir = "/usr/local/bin"
-wordfiles = "/usr/local/lib"
-man_dir = "/usr/local/man/man1/"
+install_dir = ${PREFIX}/bin
+wordfiles = ${PREFIX}/lib
+man_dir = ${PREFIX}/man/man1/
all: clean $(PROG)
@@ -23,7 +23,6 @@
$(PROG): $(OBJS)
-
$(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(PROG).c $(LFLAGS)
@@ -40,11 +39,9 @@
if test ! -d $(wordfiles)/typespeed; then mkdir $(wordfiles)/typespeed; fi
./typespeed --makescores
cp words.* $(wordfiles)/typespeed
- cp high.* $(wordfiles)/typespeed
chmod 755 $(wordfiles)/typespeed
- chmod 666 $(wordfiles)/typespeed/high.*
chmod 644 $(wordfiles)/typespeed/words.*
- echo $(wordfiles)/typespeed/ > /etc/typespeedrc
+ echo $(wordfiles)/typespeed/ > ${PREFIX}/etc/typespeedrc
cp typespeed.1 $(man_dir)
chmod 644 $(man_dir)/typespeed.1
@echo done...

View File

@ -0,0 +1,11 @@
--- typespeed.h.orig Fri Sep 5 23:30:12 2003
+++ typespeed.h Fri Sep 5 23:39:42 2003
@@ -24,7 +24,7 @@
#define TVERSION "v0.4.1"
-#define CONFIGFILE "/etc/typespeedrc"
+#define CONFIGFILE "_PREFIX_HERE/etc/typespeedrc"
#define LOCALCONF ".typespeedrc"
#define WORD_MAX 10000

11
games/typespeed/pkg-descr Normal file
View File

@ -0,0 +1,11 @@
Typespeed gives your fingers' cps (total and correct), typoratio and some
points to compare with your friends.
Typespeed's idea is ripped from ztspeed (a dos game made by Zorlim). Idea
of the game should be clear to anyone, just type and type it fast, or be a
lewser.
WWW: http://www.sicom.fi/~bestis/typespeed.html
- Suleiman Souhlal
refugee@vt.edu

View File

@ -0,0 +1,9 @@
etc/typespeedrc
bin/typespeed
lib/typespeed/words.dos
lib/typespeed/words.eng
lib/typespeed/words.fin
lib/typespeed/words.portuguese
lib/typespeed/words.prog
lib/typespeed/words.unix
@dirrm lib/typespeed