Summary: | games-emulation/nestopia (ebuild request) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Yaroslav Isakov <yaroslav.isakov> |
Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | bugzie |
Priority: | High | Keywords: | EBUILD |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://rbelmont.mameworld.info/?page_id=200 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
nestopia 1.40 ebuild from roslin uberlay
nestopia wrapper Updated ebuild, fixed html docs updated ebuild updated wrapper Dropped pkg_nofetch and tweaked wrapper install New ebuild |
Description
Yaroslav Isakov
2009-01-10 20:46:48 UTC
Created attachment 178903 [details]
nestopia 1.40 ebuild from roslin uberlay
Attaching my nestopia ebuild from roslin. Since the user is expected to copy some files by hand for the emu to work, I made a simple wrapper which does precisely that. Also, rbelmont's webhost blocks wget. Hence the fetch restriction.
Created attachment 178906 [details]
nestopia wrapper
Thanks! Created attachment 179477 [details]
Updated ebuild, fixed html docs
for the wrapper: - add quotes around the games datadir - use "$@" and not $@ -- the difference is subtle but important for the ebuild: - you have too many tabs in everything ... only use one to indent - add '|| die' to the data/bin install updated ebuild and wrapper. I wasn't quite sure what you meant by "add '|| die' to the data/bin install", so I added || die conditions to the doins and newgamesbin lines. I can change either of those if that wasn't correct. Any other issues that need to be corrected? Created attachment 217042 [details]
updated ebuild
Created attachment 217043 [details]
updated wrapper
that is what i meant, thanks more things i noticed: - drop the RESTRICT=fetch and pkg_nofetch - the wrapper install is a little dicey ... better to do: dogamesbin "${FILESDIR}"/${PN} || die dosed "s:%GAMES_DATADIR%:${GAMES_DATADIR}:g" "${GAMES_BINDIR}/${PN}" Created attachment 217088 [details]
Dropped pkg_nofetch and tweaked wrapper install
I see someone beat me to the punch :)
Uploaded an updated ebuild with most suggestions applied, except RESTRICT=fetch. Upstream doesn't like wget. One of the files would need to be mirrored.
Moreover, someone enlightened enough should look into fixing the build system, so -j1 can be dropped.
The wrapper should be created in src_prepare and simply installed in src_install. Created attachment 217168 [details]
New ebuild
Okay, went back from dosed to using sed, moved it to src_prepare. Dropped the -j1, since the build seems to work just fine without it (compiled it several times with -j2 and -j5). Added desktop entry. Anything else you want me to change?
dosed is really on valid in src_install as it operates on $D. i dont have a problem with pulling from $FILESDIR in src_install. i.e. either method is fine. the latest ebuilds look OK to me (not that i've directly tested them) in portage. thanks for the bug report and file submissions. |