From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 25 18:10:03 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 78B46B71 for ; Tue, 25 Feb 2014 18:10:03 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 570D01657 for ; Tue, 25 Feb 2014 18:10:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1PIA3rt042341 for ; Tue, 25 Feb 2014 18:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1PIA3SD042340; Tue, 25 Feb 2014 18:10:03 GMT (envelope-from gnats) Resent-Date: Tue, 25 Feb 2014 18:10:03 GMT Resent-Message-Id: <201402251810.s1PIA3SD042340@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8BD5A862 for ; Tue, 25 Feb 2014 18:01:35 +0000 (UTC) Received: from omta01.auone-net.jp (mail-or1-f17.auone-net.jp [106.187.231.17]) by mx1.freebsd.org (Postfix) with ESMTP id 4BECA15E9 for ; Tue, 25 Feb 2014 18:01:35 +0000 (UTC) Received: from coppermine.my.domain (ZT028143.ppp.dion.ne.jp [59.128.28.143]) by omta01.auone-net.jp (au one net mail) with ESMTP id 63BB198000E for ; Wed, 26 Feb 2014 03:01:25 +0900 (JST) Message-Id: <20140226025250.2b789ab704a7e258114022c0@yahoo.com> Date: Wed, 26 Feb 2014 02:52:50 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/187046: misc/dvorak7min: Update MASTER_SITES and WWW: line X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Feb 2014 18:10:03 -0000 >Number: 187046 >Category: ports >Synopsis: misc/dvorak7min: Update MASTER_SITES and WWW: line >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: Tue Feb 25 18:10:03 UTC 2014 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p7 i386 >Organization: >Environment: >Description: - Update MASTER_SITES and WWW: line - Add LICENSE New file: files/patch-lessons.c >How-To-Repeat: >Fix: diff -urN /usr/ports/misc/dvorak7min/Makefile misc/dvorak7min/Makefile --- /usr/ports/misc/dvorak7min/Makefile 2014-02-21 16:11:13.000000000 +0900 +++ misc/dvorak7min/Makefile 2014-02-26 00:00:00.000000000 +0900 @@ -3,23 +3,30 @@ PORTNAME= dvorak7min PORTVERSION= 1.6.1 +PORTREVISION= 1 CATEGORIES= misc -MASTER_SITES= http://www.linalco.com/ragnar/ +MASTER_SITES= DEBIAN +DISTNAME= ${PORTNAME}_${PORTVERSION}.orig MAINTAINER= ports@FreeBSD.org -COMMENT= An ncurses-based Dvorak typing tutor +COMMENT= Ncurses-based Dvorak typing tutor -DEPRECATED= No more public distfiles -EXPIRATION_DATE= 2014-03-10 +LICENSE= GPLv2 # (or later) -.include +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -MAKE_ARGS= PROF="${CPPFLAGS} ${CFLAGS}" LDFLAGS="${LDFLAGS}" +post-patch: + @${REINPLACE_CMD} -e \ + 's|^\(PROF\)|#\1| ; \ + /^CFLAGS/s|\([[:space:]]\)=|\1+=| ; \ + s|^\(LDFLAGS\)|#\1| ; \ + s|-lncurses|-lcurses|' ${WRKSRC}/Makefile pre-build: - @cd ${WRKSRC} ; ${MAKE} clean + @${RM} -f ${WRKSRC}/*.o do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/dvorak7min ${STAGEDIR}${PREFIX}/bin + (cd ${WRKSRC} && ${INSTALL_PROGRAM} dvorak7min \ + ${STAGEDIR}${PREFIX}/bin) -.include +.include diff -urN /usr/ports/misc/dvorak7min/distinfo misc/dvorak7min/distinfo --- /usr/ports/misc/dvorak7min/distinfo 2014-01-23 05:14:02.000000000 +0900 +++ misc/dvorak7min/distinfo 2014-02-26 00:00:00.000000000 +0900 @@ -1,2 +1,2 @@ -SHA256 (dvorak7min-1.6.1.tar.gz) = f0b5be8b44782904717adea087fc936cd4941d6885fe5d8d0a60a5c8467f15c5 -SIZE (dvorak7min-1.6.1.tar.gz) = 53115 +SHA256 (dvorak7min_1.6.1.orig.tar.gz) = f0b5be8b44782904717adea087fc936cd4941d6885fe5d8d0a60a5c8467f15c5 +SIZE (dvorak7min_1.6.1.orig.tar.gz) = 53115 diff -urN /usr/ports/misc/dvorak7min/files/patch-dvorak7min.c misc/dvorak7min/files/patch-dvorak7min.c --- /usr/ports/misc/dvorak7min/files/patch-dvorak7min.c 2014-01-23 05:14:02.000000000 +0900 +++ misc/dvorak7min/files/patch-dvorak7min.c 2014-02-26 00:00:00.000000000 +0900 @@ -8,3 +8,74 @@ #include #include #include +@@ -173,7 +172,8 @@ + /* calculate typing speed in a given interval */ + inline float calcSpeed (time_t timeStart, time_t timeFinish, int hits) + { +- return (float) hits / (timeFinish - timeStart); ++ // Use WPS/WPM as better standard, so also divide by 5 ++ return (float) hits / 5 / (timeFinish - timeStart); + } + + +@@ -193,7 +193,7 @@ + + file = fopen (fileName, "r"); + if (!file) { +- postmortem = sys_errlist[errno]; ++ postmortem = strerror(errno); + return -1; + } + +@@ -220,7 +220,7 @@ + while (1) { + c = fgetc (file); + if (errno) { +- postmortem = sys_errlist[errno]; ++ postmortem = strerror(errno); + fclose (file); + return -1; + } +@@ -418,6 +418,7 @@ + ++p; + if (!timeStart) { + timeStart = time(0); ++ hits = 0; + } + } + +@@ -431,8 +432,9 @@ + float ratio = hits - misses; + ratio = (ratio < 0) ? 0 : (100.0 * ratio / hits); + timeCurrent = time(0); +- speed = calcSpeed (timeStart, timeCurrent, hits); +- mvprintw (LINES - 1, 0, "CPS %.2f CPM %.2f Hits: %d Misses: %d Seconds: %d Ratio: %.2f%%", speed, speed * 60, hits, misses, time(0) - timeStart, ratio); ++ speed = calcSpeed (timeStart, timeCurrent, hits + misses); ++ // Use WPS/WPM as better standards ++ mvprintw (LINES - 1, 0, "WPS %.2f WPM %.2f Hits: %d Misses: %d Seconds: %d Ratio: %.2f%%", speed, speed * 60, hits, misses, time(0) - timeStart, ratio); + clrtoeol(); + } + } while (ch == ERR); +@@ -510,7 +512,7 @@ + } + + timeFinish = time(0); +- speed = calcSpeed(timeStart, timeFinish, hits); ++ speed = calcSpeed(timeStart, timeFinish, hits + misses); + clear(); + cbreak(); + if (!timeStart) { +@@ -519,8 +521,11 @@ + float ratio = hits - misses; + ratio = (ratio < 0) ? 0 : (100.0 * ratio / hits); + mvprintw (0, 0, "Elapsed time: %d seconds", timeFinish - timeStart); +- mvprintw (1, 0, "Total: %d Misses: %d Ratio: %.2f%%", hits, misses, ratio); +- mvprintw (2, 0, "CPS: %.2f CPM: %.2f", speed, speed * 60); ++ mvprintw (1, 0, "Total: %d Misses: %d Ratio: %.2f%%", ++ hits + misses, misses, ++ (float)100*(hits) / (hits + misses)); ++ // Use WPM/WPS as better standard ++ mvprintw (2, 0, "WPS: %.2f WPM: %.2f", speed, speed * 60); + } + + mvprintw (4, 0, "[ ] Press ESCAPE to continue."); diff -urN /usr/ports/misc/dvorak7min/files/patch-lessons.c misc/dvorak7min/files/patch-lessons.c --- /usr/ports/misc/dvorak7min/files/patch-lessons.c 1970-01-01 09:00:00.000000000 +0900 +++ misc/dvorak7min/files/patch-lessons.c 2014-02-26 00:00:00.000000000 +0900 @@ -0,0 +1,66 @@ +--- lessons.c.orig ++++ lessons.c +@@ -166,6 +166,7 @@ + "gggg pppp gggg pppp gggg pppp gggg pppp gggg pppp gggg pppp gggg ppp\n" + "pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg pg\n" + "gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp gp\n" ++"\x1" + "gggg hhhh pppp uuuu gggg hhhh pppp uuuu gggg hhhh pppp uuuu\n" + "up up up up hug hug hug hug pug pug pug pug pup pup pup pup\n" + "ugh ugh ugh ugh Hugh Hugh Hugh Hugh Pugh Pugh Pugh Pugh", +@@ -263,7 +264,7 @@ + "The catchup accident at the picnic depicted Dutch as an apathetic nuisance.\n" + "It is no coincidence that this idiotic sentence has eight concise Cs in it.\n" + "The enthusiastic duchess noticed the Pontiac coupe...and decided to chase it." +-"\1" ++"\x1" + "I detect a headache...I hope it is not the\n" + "Schnapps and Cocoa I had as a nightcap.\n" + "\n" +@@ -362,11 +363,12 @@ + "Allegra, an unparalleled intellectual, calculated the celestial latitudes and\n" + "longitudes in her sleep.", + +- "YF: index fingers streching up", ++ "YF: index fingers stretching up", + "\x2" + "ffff yyyy ffff yyyy ffff yyyy ffff yyyy ffff yyyy ffff yyyy ffff yyyy\n" + "ffff yyyy ffff yyyy ffff yyyy ffff yyyy ffff yyyy ffff yyyy ffff yyyy\n" + "fy fy fy fy fy fy fy yf yf yf yf yf yf yf ffff gggg hhhh yyyy pppp uuuu\n" ++"\x1" + "guy guy guy guy guy guy guy guy guy gyp gyp gyp gyp gyp gyp gyp gyp gyp\n" + "UHF UHF UHF UHF UHF UHF UHF UHF UHF yuh yuh yuh yuh yuh yuh yuh yuh yuh\n" + "huff huff huff huff huff huff huff puff puff puff puff puff puff puff\n" +@@ -406,6 +408,7 @@ + "kkkk mmmm kkkk mmmm kkkk mmmm kkkk mmmm kkkk mmmm kkkk mmmm\n" + "kkkk mmmm kkkk mmmm kkkk mmmm kkkk mmmm kkkk mmmm kkkk mmmm\n" + "km km km km km km km km km km mk mk mk mk mk mk mk mk mk mk\n" ++"\x1" + "hhhh kkkk mmmm uuuu hhhh kkkk mmmm uuuu hhhh kkkk mmmm uuuu\n" + "ku ku ku ku ku ku ku ku ku ku mu mu mu mu mu mu mu mu mu mu\n" + "UK UK UK UK UK UK UK UK UK UK UK UK UK UK UK UK UK UK UK UK\n" +@@ -442,6 +445,7 @@ + "jjjj wwww jjjj wwww jjjj wwww jjjj wwww jjjj wwww jjjj wwww\n" + "jjjj wwww jjjj wwww jjjj wwww jjjj wwww jjjj wwww jjjj wwww\n" + "jw jw jw jw jw jw jw jw jw jw jw wj wj wj wj wj wj wj wj wj\n" ++"\x1" + "eeee jjjj tttt wwww eeee jjjj tttt wwww eeee jjjj tttt wwww\n" + "ewe ewe ewe ewe ewe jet jet jet jet jet Jew Jew Jew Jew Jew\n" + "wee wee wee wee wee wee wee wet wet wet wet wet wet wet wet\n" +@@ -500,6 +504,7 @@ + "An acquisitive mind helped Pavlov evolve his theories.\n" + "QVC's involvement with Paramount may give it new verve.\n" + "Vivian's new Volvo unequivocally vanquished her fears of driving.\n" ++"\x1" + "According to Pravda, Vladivostok was a quiet village in its Soviet days.\n" + "This unique, opaque liquor does not quench your thirst, it makes you queasy.\n" + "David's vivid imagination and his inquisitive and inventive mind suggest a high IQ." +@@ -548,7 +553,7 @@ + "activity; several lizards hazarded the freezing waters and capsized the fish\n" + "tanks; a dozen grizzlies were waltzing in the plaza.", + +- "XB: index fingers streching down", ++ "XB: index fingers stretching down", + "\x2" + "bbbb xxxx bbbb xxxx bbbb xxxx bbbb xxxx bbbb xxxx bbbb xxxx\n" + "bbbb xxxx bbbb xxxx bbbb xxxx bbbb xxxx bbbb xxxx bbbb xxxx\n" diff -urN /usr/ports/misc/dvorak7min/pkg-descr misc/dvorak7min/pkg-descr --- /usr/ports/misc/dvorak7min/pkg-descr 2014-01-23 05:14:02.000000000 +0900 +++ misc/dvorak7min/pkg-descr 2014-02-26 00:00:00.000000000 +0900 @@ -4,6 +4,5 @@ second display. It's called 7min because it originally was a personal hack written in 7 min. -Author: Ragnar Hojland Espinosa -WWW: http://www.linalco.com/comunidad.html - http://freshmeat.net/projects/dvorak7mintutor/ +Author: Ragnar Hojland Espinosa +WWW: http://packages.qa.debian.org/d/dvorak7min.html >Release-Note: >Audit-Trail: >Unformatted: