* Florian Philipp <[EMAIL PROTECTED]> wrote:

Hi folks,

> On Sun, 2008-01-27 at 11:40 +0100, Justin wrote:
> > Is there a way to use 7zip for decompression with emerge?
> 
> I fear, no easy one. Of course, since emerge is just a python script,
> you could rewrite it but 7z-syntax isn't compatible with bzip2 or
> gnu-tar so it will be some work. I also tried to use star as a drop-in
> replacement for gnu-tar, once. Didn't work well although their syntax is
> nearly identical, but just nearly...

Why not an universal wrapper script ?

maybe something like:

    magic-uncompress [-t <format>] [-c] [-o <output>] <input>
    
This script could try to find out the input format automatically
(the optional -t parameter allows to explicitly specifiy the format)

Once we have this script, ebuilds could be rewritten step by step
and no one (else than magic-uncompress) has to care about the actual 
commands behind. 

Some could be done w/ tar and zip, etc.


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
        http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
        http://patches.metux.de/
---------------------------------------------------------------------
-- 
gentoo-user@lists.gentoo.org mailing list

Reply via email to