1 |
On Tue, 15 Jul 2008 04:14:18 +0200 |
2 |
Marius Mauch <genone@g.o> wrote: |
3 |
> As a result of Cardoes earlier mail we talked a bit about possible |
4 |
> solutions in #gento-portage, and I suggested to let portage |
5 |
> automatically inject the deps based on SRC_URI pattern matching. |
6 |
> A mapping of extensions and their unpack deps would be kept in the |
7 |
> tree (e.g. mapping '.tar.bz2' to '( app-arch/tar app-arch/bzip2 )' |
8 |
|
9 |
Could do it just as an eclass... |
10 |
|
11 |
inherit work-out-my-unpack-deps-for-me |
12 |
|
13 |
In principle, there's nothing that can't be done on the ebuild side |
14 |
here. |
15 |
|
16 |
For the future EAPI side, you could require package managers to define |
17 |
super-magic/package-manager-unpack-bzip2 etc for whatever they use to do |
18 |
the unpacking, and to make it work with existing EAPIs, use || deps |
19 |
with what existing package managers happen to use as the second item. |
20 |
For current EAPIs it's no worse than the existing situation, where |
21 |
ebuilds have to guess that package managers use 'app-arch/unzip' to |
22 |
unpack zip files. |
23 |
|
24 |
-- |
25 |
Ciaran McCreesh |