Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 180191
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:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 180191 depends on: Show dependency tree
Bug 180191 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:54 0000
Currently, games-strategy/lightyears-1.2a ebuild installs just the *.py files.
However, I think the ebuild should byte-compile these files to *.pyc/*.pyo and
install them.

I did this at my ebuild for whichwayisup game. Look at bug #180187.

There are only 3 required changes to lightyears ebuild:
- Add "python" to inherit line.
- Add:
src_compile() {
        python_mod_optimize code
}
- Change "doins" line to this:
        doins code/*.py code/*.py[co] || die "doins code failed"

------- Comment #1 From Denilson 2007-05-29 08:31:45 0000 -------
After chatting with marienz at #gentoo-dev-help, he told me the way I described
above is incorrect. The correct would be:

- Add python to inherit line
- Add the following functions:

pkg_postinst() {
        python_version
        python_mod_optimize "$(games_get_libdir)/${PN}"
}

pkg_postrm() {
        python_version
        python_mod_cleanup "$(games_get_libdir)/${PN}"
}

------- Comment #2 From Tristan Heaven 2007-05-29 22:35:34 0000 -------
fixed, thanks

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