Date: Mon, 29 Sep 2003 04:44:25 -0400 (EDT) From: Suleiman Souhlal <refugee@vt.edu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/57342: New port: games/typespeed Message-ID: <20030929084425.40F31AE@hc6524a8b.dhcp.vt.edu> Resent-Message-ID: <200309290850.h8T8oMen098361@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 57342 >Category: ports >Synopsis: New port: games/typespeed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Sep 29 01:50:22 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Suleiman Souhlal >Release: FreeBSD 5.1-CURRENT i386 >Organization: >Environment: System: FreeBSD hc6524a8b.dhcp.vt.edu 5.1-CURRENT FreeBSD 5.1-CURRENT #9: Wed Sep 24 14:31:58 EDT 2003 refugee@zZzZ.vt.edu:/usr/obj/usr/src/sys/ZZZZ i386 >Description: 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. >How-To-Repeat: >Fix: --- typespeed.sh begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # typespeed # typespeed/Makefile # typespeed/distinfo # typespeed/pkg-descr # typespeed/pkg-plist # typespeed/files # typespeed/files/patch-aa # typespeed/files/patch-ba # echo c - typespeed mkdir -p typespeed > /dev/null 2>&1 echo x - typespeed/Makefile sed 's/^X//' >typespeed/Makefile << 'END-of-typespeed/Makefile' X# New ports collection makefile for: typespeed X# Date created: 06 September 2003 X# Whom: refugee X# X# $FreeBSD: ports/games/dungeoncrawl/Makefile,v 1.3 2003/04/18 05:31:35 edwin Exp $ X# X XPORTNAME= typespeed XPORTVERSION= 0.4.1 XCATEGORIES= games XMASTER_SITES= http://www.sicom.fi/~bestis/ XDISTNAME= typespeed-${PORTVERSION} X XMAINTAINER= refugee@vt.edu XCOMMENT= Test your typing speed, and get your fingers\' CPS X Xpost-patch: X ${SED} 27s#_PREFIX_HERE#${PREFIX}#g < ${WRKSRC}/typespeed.h > ${WRKSRC}/typespeed.h.tmp X ${MV} ${WRKSRC}/typespeed.h.tmp ${WRKSRC}/typespeed.h X X.include <bsd.port.mk> END-of-typespeed/Makefile echo x - typespeed/distinfo sed 's/^X//' >typespeed/distinfo << 'END-of-typespeed/distinfo' XMD5 (typespeed-0.4.1.tar.gz) = 0af9809cd20bd9010732ced930090f32 END-of-typespeed/distinfo echo x - typespeed/pkg-descr sed 's/^X//' >typespeed/pkg-descr << 'END-of-typespeed/pkg-descr' X Typespeed gives your fingers' cps (total and correct), typoratio and some X points to compare with your friends. X X Typespeed's idea is ripped from ztspeed (a dos game made by Zorlim). Idea X of the game should be clear to anyone, just type and type it fast, or be a X lewser. X XWWW: http://www.sicom.fi/~bestis/typespeed.html X X- Suleiman Souhlal Xrefugee@vt.edu END-of-typespeed/pkg-descr echo x - typespeed/pkg-plist sed 's/^X//' >typespeed/pkg-plist << 'END-of-typespeed/pkg-plist' Xbin/typespeed Xlib/typespeed/high.words.dos Xlib/typespeed/high.words.eng Xlib/typespeed/high.words.fin Xlib/typespeed/high.words.portuguese Xlib/typespeed/high.words.prog Xlib/typespeed/high.words.unix Xlib/typespeed/words.dos Xlib/typespeed/words.eng Xlib/typespeed/words.fin Xlib/typespeed/words.portuguese Xlib/typespeed/words.prog Xlib/typespeed/words.unix X@dirrm lib/typespeed Xman/man1/typespeed.1 END-of-typespeed/pkg-plist echo c - typespeed/files mkdir -p typespeed/files > /dev/null 2>&1 echo x - typespeed/files/patch-aa sed 's/^X//' >typespeed/files/patch-aa << 'END-of-typespeed/files/patch-aa' X--- Makefile.orig Wed Nov 10 15:32:40 1999 X+++ Makefile Mon Sep 29 04:32:41 2003 X@@ -11,9 +11,9 @@ X OBJS = file.o menu.o misc.o network.o X X local_dir = $(HOME) X-install_dir = "/usr/local/bin" X-wordfiles = "/usr/local/lib" X-man_dir = "/usr/local/man/man1/" X+install_dir = ${PREFIX}/bin X+wordfiles = ${PREFIX}/lib X+man_dir = ${PREFIX}/man/man1/ X X all: clean $(PROG) X X@@ -23,7 +23,6 @@ X X X $(PROG): $(OBJS) X- X $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(PROG).c $(LFLAGS) X X X@@ -40,11 +39,9 @@ X if test ! -d $(wordfiles)/typespeed; then mkdir $(wordfiles)/typespeed; fi X ./typespeed --makescores X cp words.* $(wordfiles)/typespeed X- cp high.* $(wordfiles)/typespeed X chmod 755 $(wordfiles)/typespeed X- chmod 666 $(wordfiles)/typespeed/high.* X chmod 644 $(wordfiles)/typespeed/words.* X- echo $(wordfiles)/typespeed/ > /etc/typespeedrc X+ echo $(wordfiles)/typespeed/ > ${PREFIX}/etc/typespeedrc X cp typespeed.1 $(man_dir) X chmod 644 $(man_dir)/typespeed.1 X @echo done... END-of-typespeed/files/patch-aa echo x - typespeed/files/patch-ba sed 's/^X//' >typespeed/files/patch-ba << 'END-of-typespeed/files/patch-ba' X--- typespeed.h.orig Fri Sep 5 23:30:12 2003 X+++ typespeed.h Fri Sep 5 23:39:42 2003 X@@ -24,7 +24,7 @@ X X #define TVERSION "v0.4.1" X X-#define CONFIGFILE "/etc/typespeedrc" X+#define CONFIGFILE "_PREFIX_HERE/etc/typespeedrc" X #define LOCALCONF ".typespeedrc" X X #define WORD_MAX 10000 END-of-typespeed/files/patch-ba exit --- typespeed.sh ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030929084425.40F31AE>