Bug 42325 - twindistress-1.03.ebuild (new gaming ebuild)
Bug#: 42325 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: scott@teamslack.net
Component: Games
URL:  http://twind.sourceforge.net/
Summary: twindistress-1.03.ebuild (new gaming ebuild)
Keywords:  
Status Whiteboard: 
Opened: 2004-02-20 20:34 0000
Description:   Opened: 2004-02-20 20:34 0000
Check the attachment for an ebuild for twin distress.  From the website:
The object of the game is to remove all of the blocks from the screen before the time runs out. Two blocks are removed at a time, and must be of the same color. After completing a level, you will be rewarded with a bonus point for every tick left on the clock. For each level thereafter, the time to complete the the level will be shorter.
Suggested: games-puzzle

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From scott@teamslack.net 2004-02-20 20:35:43 0000 -------
Created an attachment (id=26023) [details]
An ebuild for twindistress-1.03

I'm not sure about the part where I do:
fperms 770 "${GAMES_DATADIR}/${PN}/lib"
The purpose is so the highscore file can be saved, but I'm not sure if it poses
a security risk.

------- Comment #2 From scott@teamslack.net 2004-02-21 07:04:58 0000 -------
Created an attachment (id=26047) [details]
twindistress-1.03.ebuild

added make_desktop_entry and changed the ebuild to put an icon for the game
into /usr/share/pixmaps

------- Comment #3 From Mr. Bones. 2004-02-21 07:17:27 0000 -------
High scores need to be saved in ${GAMES_STATEDIR}/${PN}.  Writing into /usr
is considered bad form since /usr is supposed to be able to be mounted read-only.

The rest of the ebuild is very well done.

------- Comment #4 From scott@teamslack.net 2004-02-21 09:59:29 0000 -------
Created an attachment (id=26054) [details]
twindistress-1.03.ebuild

I changed the saving of the high scores to ${GAMES_STATEDIR}/${PN}, as per
suggestion.

------- Comment #5 From Mr. Bones. 2004-02-22 05:29:15 0000 -------
games-puzzle/twindistress added to CVS.  Thanks for the bug report and ebuild.
Check the ebuild in portage for how the DEPEND stuff should look for future
submissions.  Thanks!