1 |
On Wednesday 01 February 2012 15:51:52 Michał Górny wrote: |
2 |
> On Wed, 1 Feb 2012 15:44:14 -0500 Mike Frysinger wrote: |
3 |
> > > > # @USAGE: [archives that we will unpack] |
4 |
> > > > # @RETURN: Dependencies needed to unpack all the archives |
5 |
> > > > # @DESCRIPTION: |
6 |
> > > > # Walk all the specified files (defaults to $SRC_URI) and figure |
7 |
> > > > out the # dependencies that are needed to unpack things. |
8 |
> > > > # |
9 |
> > > > # Note: USE flags are not yet handled. |
10 |
> > > > unpacker_src_uri_depends() { |
11 |
> > > > |
12 |
> > > > local uri deps d |
13 |
> > > > |
14 |
> > > > [[ $# -eq 0 ]] && set -- ${SRC_URI} |
15 |
> > > > |
16 |
> > > > for uri in "$@" ; do |
17 |
> > > > |
18 |
> > > > case ${uri} in |
19 |
> > > > *.rar|*.RAR) |
20 |
> > > > |
21 |
> > > > d="app-arch/unrar" ;; |
22 |
> > > > |
23 |
> > > > *.7z) |
24 |
> > > > |
25 |
> > > > d="app-arch/p7zip" ;; |
26 |
> > > |
27 |
> > > Where are those file formats handled? You don't seem to fallback to |
28 |
> > > 'unpack' anywhere too. |
29 |
> > |
30 |
> > eh ? this func doesn't do unpacking, just ${SRC_URI}<->${DEPEND} |
31 |
> > matching. |
32 |
> |
33 |
> Sooo.. it's intended to generate an useless DEPEND |
34 |
|
35 |
the ebuild does: |
36 |
DEPEND+=" $(unpacker_src_uri_depends)" |
37 |
|
38 |
> or you have to reset src_unpack() to default to make the archives actually |
39 |
> extractable. |
40 |
|
41 |
this func has nothing to do with extraction. look at the rest of the code to |
42 |
see how the default src_unpack is handled via standard EXPORT_FUNC means. |
43 |
-mike |