Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67045 - New more flexible ebuild for uqm-3.0-r2; and music remix pack 3
Summary: New more flexible ebuild for uqm-3.0-r2; and music remix pack 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-10 21:43 UTC by John Croisant
Modified: 2005-02-08 23:35 UTC (History)
1 user (show)

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


Attachments
New more flexible ebuild (uqm-0.3-r2.ebuild,3.66 KB, text/plain)
2004-10-10 21:44 UTC, John Croisant
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Croisant 2004-10-10 21:43:07 UTC
I've modified the ebuild for uqm-3.0-r2 so that optional packages (3domusic, voices, remixes) will not be downloaded unless the proper local USE flags are used. The optional packages are quite large downloads, and are not required at all to play, so users on slower connections might appreciate not having to download them. Additionally the ebuild will install the third music remix package (the previous ebuild only did the first two).

This might be considered hairy, because the optional URIs are present or omitted in SOURCE_URI based on USE flags (specifically, the "music" "voice" and "remix" flags). I haven't seen any other ebuilds that do this, but maybe I just haven't looked long enough. Note that in order for the digests to be made for ALL the files, these optional USE flags ("music voice remix") should be specified when making the digest.

Additionally, if some flags were not specified, my ebuild is supposed to print out a message in postinst that says which flags were not given, what they do, and how to give them (and a warning about download sizes). I think the message works correctly, but I'm uncertain of by bash scripting skills, so it would be prudent for someone to check that over.

Reproducible: Always
Steps to Reproduce:
Comment 1 John Croisant 2004-10-10 21:44:46 UTC
Created attachment 41501 [details]
New more flexible ebuild
Comment 2 John Croisant 2004-10-12 11:12:42 UTC
Oops, like a fool I forgot to check that my recent, minor changes actually worked. Portage reports that there is an error in the ebuild. Just a heads-up while I fix it.
Comment 3 John Croisant 2004-10-12 12:09:18 UTC
Hrmmm, the ebuild seems to work right, with no errors, for any combination of the USE flags I give it. The error I saw before was during an "emerge -Dup world", but my box was somewhat broken at the time, and I haven't seen the error again since then.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2005-02-08 23:35:15 UTC
patched the ebuild in portage.  No rev bump since it's such a big download.  Remerge to get the new use flag support and additional remix.