Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180187 - [New game ebuild] games-arcade/whichwayisup
Summary: [New game ebuild] games-arcade/whichwayisup
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: http://hectigo.net/puskutraktori/whic...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-29 07:36 UTC by Denilson Sá Maia
Modified: 2007-08-13 19:09 UTC (History)
1 user (show)

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


Attachments
whichwayisup-0.7.0.ebuild - proposed ebuild (whichwayisup-0.7.0.ebuild,1.39 KB, text/plain)
2007-05-29 07:42 UTC, Denilson Sá Maia
Details
whichwayisup-0.7.0-gentoo.patch (whichwayisup-0.7.0-gentoo.patch,748 bytes, patch)
2007-05-29 07:44 UTC, Denilson Sá Maia
Details | Diff
Program icons (whichwayisup-icons.tar.gz,4.22 KB, application/octet-stream)
2007-05-29 07:46 UTC, Denilson Sá Maia
Details
whichwayisup-0.7.0.ebuild (whichwayisup-0.7.0.ebuild,1.38 KB, text/plain)
2007-05-29 07:57 UTC, Denilson Sá Maia
Details
whichwayisup-0.7.0.ebuild (whichwayisup-0.7.0.ebuild,1.49 KB, text/plain)
2007-05-29 08:28 UTC, Denilson Sá Maia
Details
whichwayisup-0.7.0.ebuild (whichwayisup-0.7.0.ebuild,1.36 KB, text/plain)
2007-05-30 10:49 UTC, Santiago M. Mola (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denilson Sá Maia 2007-05-29 07:36:55 UTC
This is a platform game where you must reach switches that, once activated, rotate the level. This is another game from PyWeek.

I wrote this ebuild based on games-strategy/lightyears.

It depends on >=dev-python/pygame-1.6.2. It will probably work on 1.6 version too, but I haven't bothered to test it because 1.6.2 is already stable.

I've tested it on x86 (Pentium III). It should work on amd64 too (it's python, after all), but haven't tested.
Comment 1 Denilson Sá Maia 2007-05-29 07:42:31 UTC
Created attachment 120584 [details]
whichwayisup-0.7.0.ebuild - proposed ebuild

I've tested this with pygame-1.5 (did not work), pygame-1.6.2 (worked) and pygame-1.7.1 (worked).

It byte-compiles all python files before installing them. It also installs 3 sizes for the program icon (all of them are PNG files extracted from one ICO file, and then optimized by pngcrush -brute).
Comment 2 Denilson Sá Maia 2007-05-29 07:44:10 UTC
Created attachment 120587 [details, diff]
whichwayisup-0.7.0-gentoo.patch

Patch to make the game look for its files at correct directories. Based on similar patch from games-strategy/lightyears.
Comment 3 Denilson Sá Maia 2007-05-29 07:46:26 UTC
Created attachment 120589 [details]
Program icons

Contains three files:
 whichwayisup-32.png
 whichwayisup-48.png
 whichwayisup-64.png
Comment 4 Denilson Sá Maia 2007-05-29 07:57:40 UTC
Created attachment 120591 [details]
whichwayisup-0.7.0.ebuild

Just a small change, nothing big.
Comment 5 Denilson Sá Maia 2007-05-29 08:28:40 UTC
Created attachment 120596 [details]
whichwayisup-0.7.0.ebuild

marienz told me at #gentoo-dev-help to not call python_mod_optimize from src_compile. So this is the updated ebuild with proper pkg_postinst() and pkg_postrm().
Comment 6 Santiago M. Mola (RETIRED) gentoo-dev 2007-05-29 10:32:22 UTC
Thanks for the ebuild. It works fine on x86.

You may want to commit it to Sunrise Overlau at http://overlays.gentoo.org/proj/sunrise/wiki (if you're not in the mood I'll do it for you ;-)
Comment 7 Denilson Sá Maia 2007-05-29 18:47:24 UTC
(In reply to comment #6)
> You may want to commit it to Sunrise Overlau
>(if you're not in the mood I'll do it for you ;-)

Do it for me, please. :)
And let's wait until this hits main portage tree.
Comment 8 Denilson Sá Maia 2007-05-30 03:07:15 UTC
In bug #180191, I asked that games-strategy/lightyears ebuild should byte-compile python sources. The maintainers have already fixed that. See the diff here:

http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/lightyears/lightyears-1.2a.ebuild?r1=1.3&r2=1.4

They added one thing that I had forgotten in my ebuild: a call to games_pkg_postinst function. So, remember to add it to pkg_postinst() function.
Comment 9 Santiago M. Mola (RETIRED) gentoo-dev 2007-05-30 10:49:07 UTC
Created attachment 120691 [details]
whichwayisup-0.7.0.ebuild

Ok, in addition to "games_pkg_postinst" I did some cleanup: removed python_version calls (python_mod_{optimize,cleanup} call it for you), use NEED_PYTHON, removed the patch since there's no point on having a patch and a sed'ing for the same thing (or I don't see it), and some cosmetic stuff.


Comitted to Sunrise, it will be available soon here:
http://overlays.gentoo.org/svn/proj/sunrise/reviewed/games-arcade/whichwayisup/ (and, of course, via layman)
Comment 10 Denilson Sá Maia 2007-05-30 17:57:49 UTC
(In reply to comment #9)
> Ok, in addition to "games_pkg_postinst" I did some cleanup:
> removed python_version calls (python_mod_{optimize,cleanup} call it for you)
Ok. Didn't know that. Thanks.

> use NEED_PYTHON, 
> removed the patch since there's no point on having a patch and a
> sed'ing for the same thing (or I don't see it)
Huh... would the same argument apply to games-strategy/lightyears ebuild? Because I do exactly the same as that ebuild. Maybe you should take a look at that ebuild and modify it too.
Comment 11 Santiago M. Mola (RETIRED) gentoo-dev 2007-05-30 21:57:29 UTC
(In reply to comment #10)
> Huh... would the same argument apply to games-strategy/lightyears ebuild?
> Because I do exactly the same as that ebuild. Maybe you should take a look at
> that ebuild and modify it too.
> 

I would do it If I were developer but I don't ;-). Those are my suggestions but I could be wrong, or maybe it's not so important and both solutions are fine. 
Comment 12 Denilson Sá Maia 2007-08-09 19:51:40 UTC
Looks like this game has been added to Debian repositories. See this:
http://hectigo.net/puskutraktori/whichwayisup/news.php#071
I noticed the ebuild must be updated to contain two licenses: GPL-2.0 and CC-3.0
Comment 13 Santiago M. Mola (RETIRED) gentoo-dev 2007-08-13 19:09:25 UTC
Added to the tree. Thanks for the ebuild!