Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52367 - typespeed is a small game, that tests your touchtyping-speed.
Summary: typespeed is a small game, that tests your touchtyping-speed.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-05-29 09:17 UTC by Florian Loitsch
Modified: 2005-01-17 00:38 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
typespeed-0.4.1.ebuild (typespeed-0.4.1.ebuild,849 bytes, text/plain)
2004-05-29 09:18 UTC, Florian Loitsch
Details
necessary diff-file to install typespeed into correct location. (typespeed-0.4.1_Makefile.diff,934 bytes, patch)
2004-05-29 09:19 UTC, Florian Loitsch
Details | Diff
typespeed-0.4.1_Makefile.diff fixes the old one... (typespeed-0.4.1_Makefile.diff,1.38 KB, patch)
2004-05-29 09:45 UTC, Florian Loitsch
Details | Diff
ebuild for typespeed-0.4.1 (typespeed-0.4.1.ebuild,661 bytes, text/plain)
2004-07-30 19:14 UTC, Mikkel Erup
Details
patch for the Makefile (typespeed-0.4.1-gentoo.patch,1.08 KB, patch)
2004-07-30 19:18 UTC, Mikkel Erup
Details | Diff
Updated ebuild for typespeed-0.4.1. (typespeed-0.4.1.ebuild,783 bytes, text/plain)
2004-07-30 21:38 UTC, Mikkel Erup
Details
typespeed-0.4.4.ebuild (typespeed-0.4.4.ebuild,860 bytes, text/plain)
2004-09-30 13:40 UTC, Claes Mogren
Details
typespeed-0.4.4-gentoo.patch (typespeed-0.4.4-gentoo.patch,1.08 KB, text/plain)
2004-09-30 13:42 UTC, Claes Mogren
Details
typespeed-0.4.4.ebuild (typespeed-0.4.4.ebuild,1.11 KB, text/plain)
2004-10-24 14:28 UTC, Octavio Ruiz (Ta^3)
Details
typespeed-0.4.4.ebuild (typespeed-0.4.4.ebuild,1.20 KB, text/plain)
2004-10-24 16:06 UTC, Octavio Ruiz (Ta^3)
Details
typespeed-0.4.4.ebuild (typespeed-0.4.4.ebuild,1.85 KB, text/plain)
2005-01-16 01:09 UTC, Octavio Ruiz (Ta^3)
Details
01_all_statedir-fix.patch.bz2 (01_all_statedir-fix.patch.bz2,938 bytes, application/octet-stream)
2005-01-16 01:11 UTC, Octavio Ruiz (Ta^3)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Loitsch 2004-05-29 09:17:21 UTC
hi,
a really addictive small game :)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Florian Loitsch 2004-05-29 09:18:30 UTC
Created attachment 32258 [details]
typespeed-0.4.1.ebuild

i'm not an expert in writing ebuilds. so if you have any comments, don't
hesitate.
Comment 2 Florian Loitsch 2004-05-29 09:19:16 UTC
Created attachment 32259 [details, diff]
necessary diff-file to install typespeed into correct location.

just changes the install-directory.
Comment 3 Florian Loitsch 2004-05-29 09:35:33 UTC
sorry.
i was a little bit too fast. first version of ebuild doesn't work...
Comment 4 Florian Loitsch 2004-05-29 09:45:51 UTC
Created attachment 32260 [details, diff]
typespeed-0.4.1_Makefile.diff fixes the old one...

missed a location in the last diff.
Comment 5 Jordi Vilalta 2004-07-26 07:04:17 UTC
You need to add this line at the beginning of the ebuild, so that epatch can work:

inherit eutils

Everything else works fine.
Comment 6 Mikkel Erup 2004-07-30 19:14:30 UTC
Created attachment 36495 [details]
ebuild for typespeed-0.4.1

Here is my ebuild for typespeed-0.4.1. It installs the files into the
conventional directories and installs README, Changes, TODO, BUGS and COPYING
as well.
Regards Mikkel.
Comment 7 Mikkel Erup 2004-07-30 19:18:09 UTC
Created attachment 36496 [details, diff]
patch for the Makefile

And here is the patch (files/typespeed-0.4.1-gentoo.patch).
Mikkel.
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2004-07-30 19:19:23 UTC
reattach the ebuild as text/plain please.
Comment 9 Mikkel Erup 2004-07-30 21:38:55 UTC
Created attachment 36502 [details]
Updated ebuild for typespeed-0.4.1.

Fixed a problem that occurs when reinstalling typespeed. Changed KEYWORDS to
"~x86". Added DEPEND="sys-libs/ncurses". Updated DESCRIPTION.
Someone please test compatibility with other archs.

Mikkel.
Comment 10 Claes Mogren 2004-09-30 13:40:33 UTC
Created attachment 40802 [details]
typespeed-0.4.4.ebuild

Ebuild for typespeed-0.4.4. Needs the patch for the makefile
Comment 11 Claes Mogren 2004-09-30 13:42:15 UTC
Created attachment 40803 [details]
typespeed-0.4.4-gentoo.patch

Same patch as the one made by Mikkel Erup.
Comment 12 Claes Mogren 2004-09-30 13:44:50 UTC
How to install:
mkdir -p -m /usr/local/portage/games-misc/typespeed
cd /usr/local/portage/games-misc/typespeed
<Save ebuild here>
ebuild typespeed-0.4.4.ebuild digest
cd files
<Save patch here>

:')
Comment 13 Roc Vallès 2004-10-24 07:37:31 UTC
I wonder what's holding it outside portage for that much :?
Comment 14 Octavio Ruiz (Ta^3) 2004-10-24 14:06:17 UTC
rvalles@es.gnu.org:

Because all ebuilds attached here does not fulfill a minimal QA.

The packages it's a game and it's not inheriting the corresponding eclass, the perms of the files are wrong, have hardcore syntax, the need of a patch file for a trivial or sed-able fixes, among other little things.
Comment 15 Octavio Ruiz (Ta^3) 2004-10-24 14:28:11 UTC
Created attachment 42514 [details]
typespeed-0.4.4.ebuild

* Fixed Header
* Inherit games eclass
* Removed eutils eclass (it is inherited by games.eclass)
* Added keyworkd ~amd64
* No patch file is needed.
* It doesn't use buggy `make install`
* Compilation uses users defined on make.conf CFLAGS.
* Fix perms for highscores inside pkg_preinst <- gentoo dev: attn needed here
* If the package is re-emerged the highscores can be regenerated (first 2 lines
on src_install function)
* "Gentoo ebuild Development Policy" compliant.
* Ready (i hope/i think) to stick it into portage.

Let's play typespeed ;-D
Comment 16 Claes Mogren 2004-10-24 14:39:46 UTC
Well done Octavio!
I have to learn how to make a compliant ebuild some day. :-)
Comment 17 Octavio Ruiz (Ta^3) 2004-10-24 16:06:49 UTC
Created attachment 42518 [details]
typespeed-0.4.4.ebuild

* We do not want to overwrite user configuration file (/etc/typespeedrc).
  In case that user modified that file, Portage can handle it after an
  reemerge or upgrade:

	 * GNU info directory index is up-to-date.
	 * IMPORTANT: 1 config files in /etc need updating.
	 * Type emerge --help config to learn how to update config files.

Now everything is OK ;-)
Comment 18 Mr. Bones. (RETIRED) gentoo-dev 2004-11-01 21:23:28 UTC
The /etc/typespeedrc bit in src_install needs to be changed.  The addwrite is evil.  We don't allow writing in the data directory either.  The app needs to be patched to use statedir.
Comment 19 Jesús García Crespo (aka Sevein) 2005-01-14 05:21:26 UTC
When will be added this ebuild to the official Portage?
Comment 20 Chris Gianelloni (RETIRED) gentoo-dev 2005-01-14 05:27:52 UTC
"When we get to it."
Comment 21 Octavio Ruiz (Ta^3) 2005-01-16 00:27:58 UTC
It's time to get to it!
Comment 22 Octavio Ruiz (Ta^3) 2005-01-16 01:09:56 UTC
Created attachment 48633 [details]
typespeed-0.4.4.ebuild
Comment 23 Octavio Ruiz (Ta^3) 2005-01-16 01:11:03 UTC
Created attachment 48634 [details]
01_all_statedir-fix.patch.bz2
Comment 24 Daniel Black (RETIRED) gentoo-dev 2005-01-17 00:36:03 UTC
added by me. Thanks Octavio and others.
Comment 25 Octavio Ruiz (Ta^3) 2005-01-17 00:38:15 UTC
Your Welcome! :-)