On 28 March 2012 23:04, Piotr Szymaniak <szar...@grubelek.pl> wrote:
> Just use categories from repos?
>
> /usr/portage/distfiles/sys-devel/gcc-1.2.tar.bz2
> /usr/portage/distfiles/sys-libs/glibc-2.3.tar.bz2
> /usr/portage/distfiles/sys-libs/zlib-3.4.tar.bz2
> /usr/portage/distfiles/zomg-soft/zomgawesomesoft-5.3.1.tar.xz
> (from zomg repo with custom zomg-soft category ;)
>
> Btw. what would happen if, ie. mc package - well, two different
> packages, one from app-misc, one from sci-libs - but lets say they have
> a brand new release 5.0 and there's mc-5.0.tar.bz2 for both of them?
>


AAaactually, there's a good way of doing it which could /mostly/ be
category based.

You could in a future EAPI define a variable, say DISTDIRPREFIX , the
value of which would *default* to being $CATEGORY, but could be
overridden on a per-package basis if it was deemed nessecary to do so.

So perhaps in the case of something big like Spidermonkey, which might
need a copy of Xulrunner or firefox's source code , the package
developers could set DISTDIRPREFIX to be something like "x-mozilla"
and set that same value for xulrunner, firefox, and seamonkey, and
then the "right thing" would always just work.

And if you *really* wanted to be friendly, you could test after
sourcing the ebuild if DISTDIRPREFIX was still $CATEGORY, and if not,
create a symlink

so  you'd have

dev-lang/js185-1.0.0.tar.gz   -> x-mozilla/js185-1.0.0.tar.gz   # spidermonkey
net-libs/firefox-4.0.1.source.tar.bz2  ->
x-mozilla/firefox-4.0.1.source.tar.bz2  # xulrunner
net-libs/xulrunner-2.0-patches-1.8.tar.bz2  ->
x-mozilla/xulrunner-2.0-patches-1.8.tar.bz2 # xulrunner
www-client/firefox-10.0-patches-0.5.tar.xz  ->
x-mozilla/firefox-10.0-patches-0.5.tar.xz  # seamonkey
www-client/firefox-11.0-patches-0.4.tar.xz ->
x-mozilla/firefox-11.0-patches-0.4.tar.xz # firefox
www-client/firefox-11.0.source.tar.bz2 ->
x-mozilla/firefox-11.0.source.tar.bz2 # firefox
www-client/seamonkey-2.7.1.source.tar.bz2 ->
x-mozilla/seamonkey-2.7.1.source.tar.bz2 # seamonkey
www-client/seamonkey-2.7-patches-03.tar.xz ->
x-mozilla/seamonkey-2.7-patches-03.tar.xz # seamonkey
x-mozilla/firefox-10.0-patches-0.5.tar.xz
x-mozilla/firefox-11.0-patches-0.4.tar.xz
x-mozilla/firefox-11.0.source.tar.bz2
x-mozilla/firefox-4.0.1.source.tar.bz2
x-mozilla/js185-1.0.0.tar.gz
x-mozilla/seamonkey-2.7.1.source.tar.bz2
x-mozilla/seamonkey-2.7-patches-03.tar.xz
x-mozilla/xulrunner-2.0-patches-1.8.tar.bz2

-- 
Kent

perl -e  "print substr( \"edrgmaM  SPA NOcomil.ic\\@tfrken\", \$_ * 3,
3 ) for ( 9,8,0,7,1,6,5,4,3,2 );"

http://kent-fredric.fox.geek.nz

Reply via email to