Changes between Version 2 and Version 3 of howto/AvoidRedirects


Ignore:
Timestamp:
Aug 6, 2013, 7:52:44 PM (11 years ago)
Author:
mf2k (Frank Schima)
Comment:

break out the initial value and final Portfile change for clarity.

Legend:

Unmodified
Added
Removed
Modified
  • howto/AvoidRedirects

    v2 v3  
    1212== SourceForge ==
    1313
    14 Hopefully, the following example, using mediainfo version 0.7.60, will illuminate the process.  The SourceForge home page for mediainfo is [[http://mediainfo.sourceforge.net]].  Initially, just specifying  `'master_sites  sourceforge'` in the portfile under development worked to retrieve the distfile.  The log for `'port fetch'` showed:
     14Hopefully, the following example, using mediainfo version 0.7.60, will illuminate the process.  The SourceForge home page for mediainfo is [[http://mediainfo.sourceforge.net]].  Initially, just specifying  `'sourceforge'` in the portfile under development worked to retrieve the distfile. 
     15
     16{{{
     17master_sites  sourceforge
     18}}}
     19
     20The log for `'port fetch'` showed:
    1521
    1622{{{
     
    2632}}}
    2733
    28 To improve the `master_sites` parameter, extract the bit: `project/mediainfo/binary/mediainfo/0.7.60` (and replace "0.7.60"--the version number in this case--with ${version}).  Thus `'master_sites sourceforge:project/mediainfo/binary/mediainfo/${version}'`.
     34To improve the `master_sites` parameter, extract the bit: `project/mediainfo/binary/mediainfo/0.7.60` (and replace "0.7.60"--the version number in this case--with ${version}).  Thus you have:
     35
     36{{{
     37master_sites  sourceforge:project/mediainfo/binary/mediainfo/${version}
     38}}}
    2939
    3040Pat yourself on the back--you're done!
    3141
    32 
    33 
    3442[wiki:howto <- Back to the HOWTO section]