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:
Created attachment 41501 [details] New more flexible ebuild
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.
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.
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.