[prev in list] [next in list] [prev in thread] [next in thread]
List: macports-dev
Subject: Re: extract multiple files with formats
From: Bradley Giesbrecht <pixilla () macports ! org>
Date: 2014-08-26 21:10:51
Message-ID: 35E7F916-FFA1-45E3-85B8-823EB27FB9F7 () macports ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Aug 26, 2014, at 12:11 PM, Lawrence Velázquez <larryv@macports.org> wrote:
> On Aug 26, 2014, at 1:48 PM, Jeremy Lavergne <jeremy@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)
["signature.asc" (signature.asc)]
-----BEGIN PGP SIGNATURE-----
iQEcBAEBAgAGBQJT/PfcAAoJEM0eFGcnDFO6lKEH/197GIkJtH2Q/+jpDJj6uTNW
8xdDaIoVPD+UY6OtetTMHh51lSpnQNY4yBSjO9vJ2iSzjVU1OWO5ZcobwToHDBDv
hnE4xe00hgRr7QNuxH2Fj70na69ZFB7waXRPI103YR1U/jLedydP7s1GidcxDBkH
3M55afY7DPs9kMgIy87u9j8ro6AxH7Pcq0D64uxmO2U7D1+HJlK08nx0aF20raSN
X8ZTrmQS+GDJmphlxRZhGvQkgaehDrm0FnilWZQ6htq2nZ1PD6IXLdjlxiIN3Lw2
cvrO/QsXFh52sQP+YNKu++myi0IDt5H4i/r87xQuLWFvhPx4BI61ogxXbSmfisc=
=g1sF
-----END PGP SIGNATURE-----
_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic