multiple distfiles from multiple sources and with multiple compression types
Mojca Miklavec
mojca at macports.org
Wed Mar 30 13:06:52 PDT 2016
On 30 March 2016 at 19:25, René J. V. wrote:
>
>> It is fairly obvious how to extract these files. There is usually no
>> need to specify how these files should be extracted, since most
>> compression methods can be deduced from the filename.
>>
>> The command 'use_* yes' would then only set the extract.suffix
>> accordingly, instead of the explicit extract.cmd. These two options
>> would then be equivalent:
>>
>> use_xz yes
>> extract.suffix .tar.xz
>
> Still, how would that be implemented in "base", except by an algorithm that
> determines how to extract each file (that is to be handled in the extract phase)
> based on the filename or (better) from a magic cookie?
Those are the details. If a distfile has a standard extension, it's no
problem figuring out how to extract it.
I opened
https://trac.macports.org/ticket/50969
Mojca
More information about the macports-dev
mailing list