Ignore:
Timestamp:
Dec 14, 2008, 4:50:14 AM (11 years ago)
Author:
blb@…
Message:

sysutils/MacPorts - version update to 1.7.0, clean up how resources are handled, and MacPorts violates the mtree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/MacPorts/Portfile

    r43059 r43738  
    44
    55name                MacPorts
    6 version             1.6.0
     6version             1.7.0
    77
    88categories          sysutils
     
    1717homepage            http://www.macports.org
    1818master_sites        macports:${distname}
    19 
    20 checksums           md5 67e61ebf25389ccee8ab09b859397c83 \
    21                     sha1 e47667954c265ff6dc73a3330085cbe14246b011 \
    22                     rmd160 3cdc362a8f7c9ec9ba2e14c57d4ad45e16d35c04
     19use_bzip2           yes
     20
     21checksums           md5     c6e7827d495e34d9e61cc927ca5cad66 \
     22                    sha1    5ab0f590836dd204693fe8e1474da1e4a5c69fba \
     23                    rmd160  02599e15bca00e58e38f34e0ee93e3471b2356b4
     24
     25pre-fetch {
     26   if {${prefix} != {/opt/local}} {
     27      return -code error "You need to use a MacPorts from /opt/local to safely build the MacPorts port (ticket #17633)"
     28   }
     29}
     30
     31use_parallel_build  yes
    2332
    2433# Readline is disabled by default to avoid support issues with people who
     
    3645configure.ccache no
    3746
     47set resources_scripts ${workpath}/${name}-${version}.pkg/Contents/Resources
     48set resources_lang ${workpath}/${name}-${version}.pkg/Contents/Resources
     49
    3850post-pkg {
    39     if {[file exists ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj]} {
    40         set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj
    41     } else {
    42         set resources ${workpath}/${name}-${version}.pkg/Contents/Resources
    43     }
    44     file copy -force -- ${worksrcpath}/portmgr/dmg/ReadMe.rtf ${resources}
    45     file copy -force -- ${worksrcpath}/portmgr/dmg/License.html ${resources}
    46     file copy -force -- ${worksrcpath}/portmgr/dmg/preflight ${resources}
    47     file copy -force -- ${worksrcpath}/portmgr/dmg/postflight ${resources}
     51    global resources_scripts resources_lang
     52    if {[file exists ${resources_scripts}/English.lproj]} {
     53        set resources_lang ${resources_scripts}/English.lproj
     54    }
     55    file copy -force -- ${worksrcpath}/portmgr/dmg/ReadMe.rtf ${resources_lang}
     56    file copy -force -- ${worksrcpath}/portmgr/dmg/License.html ${resources_lang}
     57    file copy -force -- ${worksrcpath}/portmgr/dmg/preflight ${resources_scripts}
     58    file copy -force -- ${worksrcpath}/portmgr/dmg/postflight ${resources_scripts}
     59    file copy -force -- ${worksrcpath}/src/dep_map_clean.tcl ${resources_scripts}
     60    file copy -force -- ${worksrcpath}/src/upgrade_sources_conf_default.tcl ${resources_scripts}
    4861}
    4962
    5063platform darwin 7 {
    5164    post-pkg {
    52         if {[file exists ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj]} {
    53             set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj
    54         } else {
    55             set resources ${workpath}/${name}-${version}.pkg/Contents/Resources
    56         }
    57         reinplace "s|__XVERS__|10.3|" ${resources}/ReadMe.rtf
    58         reinplace "s|or newer ||" ${resources}/Welcome.html
     65        global resources_lang
     66        reinplace "s|__XVERS__|10.3|" ${resources_lang}/ReadMe.rtf
     67        reinplace "s|or newer ||" ${resources_lang}/Welcome.html
    5968    }
    6069}
     
    6271platform darwin 8 {
    6372    post-pkg {
    64         if {[file exists ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj]} {
    65             set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj
    66         } else {
    67             set resources ${workpath}/${name}-${version}.pkg/Contents/Resources
    68         }
    69         reinplace "s|is built|contains a Universal installer|" ${resources}/ReadMe.rtf
    70         reinplace "s|__XVERS__|10.4|" ${resources}/ReadMe.rtf
    71         reinplace "s|3|4|" ${resources}/Welcome.html
    72         reinplace "s|or newer ||" ${resources}/Welcome.html
     73        global resources_lang
     74        reinplace "s|is built|contains a Universal installer|" ${resources_lang}/ReadMe.rtf
     75        reinplace "s|__XVERS__|10.4|" ${resources_lang}/ReadMe.rtf
     76        reinplace "s|3|4|" ${resources_lang}/Welcome.html
     77        reinplace "s|or newer ||" ${resources_lang}/Welcome.html
    7378    }
    7479}
     
    99104platform darwin 9 {
    100105    post-pkg {
    101         if {[file exists ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj]} {
    102             set resources ${workpath}/${name}-${version}.pkg/Contents/Resources/English.lproj
    103         } else {
    104             set resources ${workpath}/${name}-${version}.pkg/Contents/Resources
    105         }
    106         reinplace "s|is built|contains a Universal installer|" ${resources}/ReadMe.rtf
    107         reinplace "s|__XVERS__|10.5|" ${resources}/ReadMe.rtf
    108         reinplace "s|3|5|" ${resources}/Welcome.html
    109         reinplace "s|or newer ||" ${resources}/Welcome.html
     106        global resources_lang
     107        reinplace "s|is built|contains a Universal installer|" ${resources_lang}/ReadMe.rtf
     108        reinplace "s|__XVERS__|10.5|" ${resources_lang}/ReadMe.rtf
     109        reinplace "s|3|5|" ${resources_lang}/Welcome.html
     110        reinplace "s|or newer ||" ${resources_lang}/Welcome.html
    110111    }
    111112}
     
    134135}
    135136
     137destroot.violate_mtree yes
    136138destroot.keepdirs    ${destroot}${prefix}/include \
    137139                     ${destroot}${prefix}/lib \
Note: See TracChangeset for help on using the changeset viewer.