On Oct 20, 2015, at 11:01 AM, Brandon Allbery <[email protected]> wrote:

> On Tue, Oct 20, 2015 at 11:27 AM, Mojca Miklavec <[email protected]> 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.

_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to