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