Exotic ways of fetching the tarbals

Ryan Schmidt ryandesign at macports.org
Tue Oct 20 16:15:28 PDT 2015


On Oct 20, 2015, at 11:01 AM, Brandon Allbery <allbery.b at gmail.com> wrote:

> On Tue, Oct 20, 2015 at 11:27 AM, Mojca Miklavec <mojca at macports.org> wrote:
>> I would like to know if there is any way to implement the following
>> inside a Portfile:
>> (a) if a tarball with the given checksums exists, use that one
>> (b) else, execute some relatively non-standard commands to generate
>> the tarball first, then continue with (a)
>> 
> I think you can override the fetch stage completely if you want? Dunno if you can easily invoke the default from a custom one though.

The muniveral portgroup overrides the configure, build and destroot phases with custom blocks, which then internally call the original code. Perhaps the same method could be used when overriding the fetch phase.



More information about the macports-dev mailing list