Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 180187
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Denilson <denilsonsa@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
whichwayisup-0.7.0.ebuild whichwayisup-0.7.0.ebuild - proposed ebuild text/plain Denilson 2007-05-29 07:42 0000 1.39 KB Details
whichwayisup-0.7.0-gentoo.patch whichwayisup-0.7.0-gentoo.patch patch Denilson 2007-05-29 07:44 0000 748 bytes Details | Diff
whichwayisup-icons.tar.gz Program icons application/octet-stream Denilson 2007-05-29 07:46 0000 4.22 KB Details
whichwayisup-0.7.0.ebuild whichwayisup-0.7.0.ebuild text/plain Denilson 2007-05-29 07:57 0000 1.38 KB Details
whichwayisup-0.7.0.ebuild whichwayisup-0.7.0.ebuild text/plain Denilson 2007-05-29 08:28 0000 1.49 KB Details
whichwayisup-0.7.0.ebuild whichwayisup-0.7.0.ebuild text/plain Santiago M. Mola 2007-05-30 10:49 0000 1.36 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 180187 depends on: Show dependency tree
Bug 180187 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-05-29 07:36 0000
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 From Denilson 2007-05-29 07:42:31 0000 -------
Created an attachment (id=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 From Denilson 2007-05-29 07:44:10 0000 -------
Created an attachment (id=120587) [details]
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 From Denilson 2007-05-29 07:46:26 0000 -------
Created an attachment (id=120589) [details]
Program icons

Contains three files:
 whichwayisup-32.png
 whichwayisup-48.png
 whichwayisup-64.png

------- Comment #4 From Denilson 2007-05-29 07:57:40 0000 -------
Created an attachment (id=120591) [details]
whichwayisup-0.7.0.ebuild

Just a small change, nothing big.

------- Comment #5 From Denilson 2007-05-29 08:28:40 0000 -------
Created an attachment (id=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 From Santiago M. Mola 2007-05-29 10:32:22 0000 -------
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 From Denilson 2007-05-29 18:47:24 0000 -------
(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 From Denilson 2007-05-30 03:07:15 0000 -------
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 From Santiago M. Mola 2007-05-30 10:49:07 0000 -------
Created an attachment (id=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 From Denilson 2007-05-30 17:57:49 0000 -------
(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 From Santiago M. Mola 2007-05-30 21:57:29 0000 -------
(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 From Denilson 2007-08-09 19:51:40 0000 -------
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 From Santiago M. Mola 2007-08-13 19:09:25 0000 -------
Added to the tree. Thanks for the ebuild!

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug