extract multiple files with formats

Bradley Giesbrecht pixilla at macports.org
Tue Aug 26 14:10:51 PDT 2014


On Aug 26, 2014, at 12:11 PM, Lawrence Velázquez <larryv at macports.org> wrote:

> On Aug 26, 2014, at 1:48 PM, Jeremy Lavergne <jeremy at lavergne.gotdns.org> wrote:
> 
>> vim might be a good example on this.
>> 
>>   distfiles-append    vim-7.4.16-fc19-breakindent.patch:breakindent
> 
> This only works for vim because extract.only is explicitly restricted to the tarball. Base downloads the patches and subsequently ignores them.

I'm doing this:
...
distfiles GeoLite2-City.mmdb.gz GeoLite2-City-CSV.zip
extract {

    extract.args        "'${distpath}/[lindex ${distfiles} 0]'"
    extract.suffix      .gz
    extract.post_args   | cat > ${worksrcpath}/GeoLite2-City.mmdb
    command_exec extract
    use_zip             yes
    portextract::extract_start
    extract.args        "'${distpath}/[lindex ${distfiles} 1]'"
    command_exec extract
}
...

and wishing tags worked here[1]:
...
distfiles GeoLite2-City.mmdb.gz:f1 GeoLite2-City-CSV.zip:f2
extract.suffix    .gz:f1
extract.post_args    | cat > ${worksrcpath}/GeoLite2-City.mmdb:f1
use_zip    yes:f2
...

[1] https://guide.macports.org/#reference.phases.fetch


Regards,
Bradley Giesbrecht (pixilla)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20140826/602388a0/attachment.sig>


More information about the macports-dev mailing list