distfiles in URL in mirror_sites.tcl
Ryan Schmidt
ryandesign at macports.org
Sun Feb 24 14:44:48 PST 2013
On Feb 24, 2013, at 06:13, Rainer Müller wrote:
> On 2013-02-23 15:19, Ryan Schmidt wrote:
>> Can I have ${distfiles} within a URL defined in a fetch group?
> Notwithstanding possible changes to base to accommodate such an URL in a
> better way, I would propose to use the following:
>
> mirror_sites.tcl:
> set portfetch::mirror_sites::sites(php) {
> http://us2.php.net/get/:nosubdir
> }
>
> Portfile:
> distname php-${version}
> use_bzip2 yes
> master_sites php:[suffix ${distname}]/from/this/mirror?dummy=
>
> If multiple files are required for a port, these could still be pinned
> to a specific master_site using tags. My solution is kind of a hack, as
> it abuses the subdir component, but I can't think of anything better
> with the current base.
Thanks! This hack looks great and hadn't occurred to me; it's much better than what I was fearing I would have to do. If the PHP people won't fix their server, this is what I'll use.
More information about the macports-dev
mailing list