Weird distfile URLs

Ryan Schmidt ryandesign at macports.org
Fri Aug 1 00:36:29 PDT 2008


On Aug 1, 2008, at 02:12, Caspar Florian Ebeling wrote:

> Is is possible to download distfiles with weird
> URLs like this:
> http://cvs.m17n.org/viewcvs/ruby/ruby-cvs.tar.gz?only_with_tag=ruby- 
> cvs-0_2

Yes, do this:

distname ruby-cvs
master_sites http://cvs.m17n.org/viewcvs/ruby/${distfiles}? 
only_with_tag=ruby-cvs-0_2&foo=

MacPorts will still append "/${distfiles}" to the end of the URL, but  
by putting a garbage parameter "foo=" at the end of the master_sites  
URL, the site will hopefully ignore it. I had to do that recently  
when I added a port for VirtualPlanetBuilder:

http://trac.macosforge.org/projects/macports/changeset/38705




More information about the macports-dev mailing list