New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80938


Ignore:
Timestamp:
07/21/11 13:50:09 (4 years ago)
Author:
jmr@…
Message:

MacPorts port: update to 2.0.0

File:
1 edited

Legend:

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

    r77219 r80938  
    44 
    55name                MacPorts 
    6 version             1.9.2 
     6version             2.0.0 
    77 
    88categories          sysutils 
     
    1515   management of freely available software on Mac OS X 10.4 or newer systems. 
    1616 
     17notes "This port cannot directly be used to upgrade MacPorts; use 'port\ 
     18selfupdate' for that." 
     19 
    1720homepage            http://www.macports.org/ 
    18 master_sites        macports_distfiles 
     21master_sites 
    1922# testing subdir is for non-final releases only 
    2023#dist_subdir         ${name}/testing 
    2124use_bzip2           yes 
    2225 
    23 checksums           md5     a8da5dfaffe03d6f9369572f14ff085a \ 
    24                     sha1    553b2a55e970d3ed92caa634c1345054ff87cd1f \ 
    25                     rmd160  511599576cff3a0c3aa200e9af96aa69fa54c17a 
     26checksums           md5     7506e08151d5c919da39c03ac2be0b18 \ 
     27                    sha1    5899f39fd277613720a99ea32c9c6aea0031c882 \ 
     28                    rmd160  0abf2ee0b04744f5d89572a143bd1e596fd248b6 
    2629 
    2730variant keep_prefix description "Use configured prefix instead of enforcing /opt/local" {} 
     
    4245configure.cppflags 
    4346configure.ldflags 
    44  
    45 if {[info exists configure.cc_archflags]} { 
    46     configure.cc_archflags 
    47     configure.objc_archflags 
    48 } 
    49 if {[info exists configure.ld_archflags]} { 
    50     configure.ld_archflags 
    51 } 
    52 if {[info exists compiler.cpath]} { 
    53     compiler.cpath 
    54     compiler.library_path 
    55 } 
     47configure.cc_archflags 
     48configure.objc_archflags 
     49configure.ld_archflags 
     50compiler.cpath 
     51compiler.library_path 
    5652 
    5753# MacPorts' configure removes ${prefix}/bin from $PATH, 
     
    6258    # Only install .default versions of config files. 
    6359    delete ${destroot}${prefix}/etc/macports/macports.conf 
     60    delete ${destroot}${prefix}/etc/macports/pubkeys.conf 
    6461    delete ${destroot}${prefix}/etc/macports/sources.conf 
    6562    delete ${destroot}${prefix}/etc/macports/variants.conf 
     
    7976    file copy -force -- ${worksrcpath}/portmgr/dmg/InstallationCheck ${resources_scripts} 
    8077    file copy -force -- ${worksrcpath}/portmgr/dmg/InstallationCheck.strings ${resources_lang} 
    81     file copy -force -- ${worksrcpath}/src/dep_map_clean.tcl ${resources_scripts} 
    8278    file copy -force -- ${worksrcpath}/src/upgrade_sources_conf_default.tcl ${resources_scripts} 
    83      
     79    file copy -force -- ${worksrcpath}/src/images_to_archives.tcl ${resources_scripts} 
     80 
    8481    reinplace "s|__PREFIX__|${prefix}|g" \ 
    8582              ${resources_scripts}/InstallationCheck \ 
     
    169166        reinplace "s|or newer ||" ${resources_lang}/Welcome.html 
    170167        reinplace "s|__DARWINVERS__|10|" ${resources_scripts}/InstallationCheck 
     168    } 
     169} 
     170 
     171platform darwin 11 { 
     172    # Supply architecture flags to build MacPorts universal. 
     173    configure.cflags-append -arch x86_64 -arch i386 
     174    configure.args-append SHLIB_LDFLAGS='-arch x86_64 -arch i386' 
     175    post-pkg { 
     176        global resources_scripts resources_lang 
     177        reinplace "s|is built|contains a Universal installer|" ${resources_lang}/ReadMe.rtf 
     178        reinplace "s|__XVERS__|10.7|" ${resources_lang}/ReadMe.rtf \ 
     179            ${resources_lang}/InstallationCheck.strings 
     180        reinplace "s|10.4|10.7|" ${resources_lang}/Welcome.html 
     181        reinplace "s|or newer ||" ${resources_lang}/Welcome.html 
     182        reinplace "s|__DARWINVERS__|11|" ${resources_scripts}/InstallationCheck 
    171183    } 
    172184} 
     
    285297                     ${destroot}${prefix}/var/macports/build \ 
    286298                     ${destroot}${prefix}/var/macports/distfiles \ 
    287                      ${destroot}${prefix}/var/macports/receipts \ 
    288                      ${destroot}${prefix}/var/macports/registry \ 
    289                      ${destroot}${prefix}/var/macports/packages 
     299                     ${destroot}${prefix}/var/macports/registry 
Note: See TracChangeset for help on using the changeset viewer.