fetch aliases?

Darren Weber dweber at macports.org
Thu May 7 16:46:12 PDT 2009


OK, so all the files and checksums are in the variant (using append
clauses), but the extract phase should not work on these data files.  Will
something like this work:

variant somedata {
   master_sites-append http://extraDataFileURL/
   distfiles-append  aBunchOfDataFiles
   checksums-append  yadda yadda ;-)
   extract {}
   post-destroot {
       # use tar on the $distfiles to extract all the data somewhere useful
   }
}

Thanks in advance,
Darren


On Thu, May 7, 2009 at 4:21 PM, nox <n.oxyde at gmail.com> wrote:

> Bad idea. Every fetched file need to have its checksums verified.
> If you have the checksums, you inevitably also have the filenames and thus
> do not have to use a glob pattern.
> If you don't have fhe filenames, then you don't have the checksums.
>
> Regards.
>
> Le 8 mai 09 à 01:07, Darren Weber a écrit :
>
>
>> For a variant in the InsightToolkit, it would be useful to get all the
>> data files from here:
>> http://public.kitware.com/pub/itk/Data/BrainWeb/
>>
>> ie: <snip/>
>>
>> Is it possible to specify a fetch filename alias to get all the files like
>> "BrainPart*.tgz"?
>>
>> Would you override the fetch phase in a variant, maybe something like:
>>
>> variant braindata {
>>   fetch {
>>      exec wget -r -l1 --no-parent -A.tgz
>> http://public.kitware.com/pub/itk/Data/BrainWeb/
>>      # some code to put these downloads in the right place, like
>> ${distfiles}
>>   }
>> }
>>
>>
>> Thanks in advance,
>> Darren
>>
>> _______________________________________________
>> macports-dev mailing list
>> macports-dev at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20090507/af2a32e5/attachment.html>


More information about the macports-dev mailing list