Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129992 - games-fps/ut2004-bonuspack-ece-1-r2 ebuild hosed (contains patch)
Summary: games-fps/ut2004-bonuspack-ece-1-r2 ebuild hosed (contains patch)
Status: RESOLVED DUPLICATE of bug 129883
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-14 15:52 UTC by Tyler Mandry
Modified: 2006-04-14 16:29 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tyler Mandry 2006-04-14 15:52:51 UTC
I'm on amd64. The current ebuild seems to be missing a src_unpack(), so it falls back on the games-ut2k4mod one which won't work. I added MOD_NAME and changed MY_P to MOD_TBZ2 to make sure that the games-ut2k4mod eclass is entirely happy, and added a src_unpack() function. Works fine, and it should be entirely portable. Here's the patch:

--- ut2004-bonuspack-ece-1-r2.ebuild.old        2006-04-14 17:35:14.000000000 -0500
+++ ut2004-bonuspack-ece-1-r2.ebuild    2006-04-14 17:29:50.000000000 -0500
@@ -4,14 +4,15 @@

 inherit games games-ut2k4mod

-MY_P="ut2004megapack-linux.tar.bz2"
+MOD_NAME="Editor's Choice Edition"
+MOD_TBZ2="ut2004megapack-linux.tar.bz2"

 DESCRIPTION="Unreal Tournament 2004 - Editor's Choice Edition bonus pack"
 HOMEPAGE="http://www.unrealtournament2004.com/"
-SRC_URI="mirror://3dgamers/unrealtourn2k4/Missions/${MY_P}
-       http://0day.icculus.org/ut2004/${MY_P}
-       ftp://ftp.games.skynet.be/pub/misc/${MY_P}
-       http://sonic-lux.net/data/mirror/ut2004/${MY_P}"
+SRC_URI="mirror://3dgamers/unrealtourn2k4/Missions/${MOD_TBZ2}
+       http://0day.icculus.org/ut2004/${MOD_TBZ2}
+       ftp://ftp.games.skynet.be/pub/misc/${MOD_TBZ2}
+       http://sonic-lux.net/data/mirror/ut2004/${MOD_TBZ2}"

 LICENSE="ut2003"
 SLOT="0"
@@ -28,6 +29,10 @@
 dir=${GAMES_PREFIX_OPT}/ut2004
 Ddir=${D}/${dir}

+src_unpack() {
+       unpack ${A}
+}
+
 src_install() {
        # Remove megapack files which are not in ece
        rm Animations/ONSNewTank-A.ukx
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-14 16:29:52 UTC

*** This bug has been marked as a duplicate of 129883 ***