Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 453476 - gameandwatch-0.3.ebuild - This is a generic engine for simulation of Game & Watch-like games
Summary: gameandwatch-0.3.ebuild - This is a generic engine for simulation of Game & ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.rangelreale.com/programmin...
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2013-01-22 05:36 UTC by daktak
Modified: 2013-01-23 03:24 UTC (History)
1 user (show)

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


Attachments
files/gameandwatch-0.3.patch (gameandwatch-0.3.patch,359 bytes, text/plain)
2013-01-22 05:36 UTC, daktak
Details
gameandwatch-0.3.ebuild (gameandwatch-0.3.ebuild,1.05 KB, text/plain)
2013-01-22 05:36 UTC, daktak
Details
files/gameandwatch-0.3.patch (gameandwatch-0.3.patch,405 bytes, text/plain)
2013-01-23 03:23 UTC, daktak
Details
gameandwatch-0.3.ebuild (gameandwatch-0.3.ebuild,995 bytes, text/plain)
2013-01-23 03:24 UTC, daktak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description daktak 2013-01-22 05:36:06 UTC
This is a generic engine for simulation of Game & Watch-like games
http://www.rangelreale.com/programming/game-watch-simulator

Reproducible: Always
Comment 1 daktak 2013-01-22 05:36:27 UTC
Created attachment 336442 [details]
files/gameandwatch-0.3.patch
Comment 2 daktak 2013-01-22 05:36:43 UTC
Created attachment 336444 [details]
gameandwatch-0.3.ebuild
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-01-22 10:59:01 UTC
>src_configure() {
>  ...
>  ./autogen.sh || die "failed autogen"
>  ...
>}

This shouldn't be in the src_configure phase and happens automatically by autotools-utils if you set the variable AUTOTOOLS_AUTORECONF to a non-empty value.

>src_configure() {
>   ...
>   epatch "${FILESDIR}/${P}.patch" || die
>}

This patch just patches some code thus doesn't need to happen in the src_configure phase, you can specify the PATCHES=( "${FILESDIR}/${P}.patch" ) variable instead.

By applying these two changes, the chance is high you can just remove the src_configure phase and let Portage do its default one. The src_compile phase can also be removed.

If these changes don't work, it's because you don't set the S variable right; so, instead of using MY_S you could just use S iff it differs from the default S.

http://devmanual.gentoo.org/eclass-reference/autotools-utils.eclass
http://devmanual.gentoo.org/ebuild-writing/functions/src_configure
http://devmanual.gentoo.org/ebuild-writing/functions/src_compile
http://devmanual.gentoo.org/ebuild-writing/variables
Comment 4 daktak 2013-01-23 03:23:59 UTC
Created attachment 336538 [details]
files/gameandwatch-0.3.patch
Comment 5 daktak 2013-01-23 03:24:22 UTC
Created attachment 336540 [details]
gameandwatch-0.3.ebuild