New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82942


Ignore:
Timestamp:
08/22/11 04:24:21 (4 years ago)
Author:
jmr@…
Message:

pypy: update to 1.6 (#30888)

Location:
trunk/dports/lang/pypy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/pypy/Portfile

    r78296 r82942  
    55 
    66name                pypy 
    7 version             1.5 
     7version             1.6 
    88categories          lang python devel 
    99license             MIT PSF 
     
    1818 
    1919homepage            http://pypy.org/ 
    20 master_sites        http://pypy.org/download/ 
     20master_sites        https://bitbucket.org/pypy/pypy/get/ 
    2121use_bzip2           yes 
    22 distname            ${name}-${version}-src 
     22distname            release-${version} 
     23worksrcdir          ${name}-${name}-release-${version} 
    2324 
    24 checksums           md5 cb9ada2c50666318c3a2863da1fbe487 \ 
    25                     sha1 0ebcecaa4c725bf1a48272033d9f429b8a82b7e1 \ 
    26                     rmd160 9c7d479ac5cd51c3789f3db99674b4c2936d88e0 
     25checksums           rmd160 74170120f53d13ed931b56ae8dbf1a27ec7649d3 \ 
     26                    sha256 83060354ab1ea2a068e28ab2a61f0d17020e20530a3f83a46f4af0bb0751acac 
    2727 
    2828depends_build       port:pkgconfig 
     
    3131 
    3232patchfiles          darwin.py.diff 
    33 post-patch { 
    34     reinplace "s|__MDT__|${macosx_deployment_target}|g" ${worksrcpath}/pypy/translator/platform/darwin.py 
    35 } 
    3633 
    3734use_configure       no 
    3835 
    39 platform darwin 10 { 
    40     # 4.2 is known not to work, sigh... 
     36# use pypy to build if it's already installed 
     37# XXX 1.5 segfaults building 1.6 
     38#if {[file executable ${prefix}/lib/pypy/pypy-c]} { 
     39#    build.cmd       ${prefix}/lib/pypy/pypy-c 
     40#} else { 
     41    build.cmd       ${prefix}/bin/python2.7 
     42#} 
     43platform darwin { 
     44    # gcc-4.2 and llvm are known not to work, sigh... 
    4145    configure.compiler gcc-4.0 
    4246    # and Xcode 4 doesn't have gcc-4.0... 
    43     pre-fetch { 
    44         if {![file executable ${configure.cc}]} { 
    45             ui_error "$name must be compiled with ${configure.compiler}" 
    46             error "${configure.cc} not found" 
    47         } 
     47    if {![file executable ${configure.cc}]} { 
     48        depends_lib-append port:gcc45 
     49        configure.compiler macports-gcc-4.5 
     50    } 
     51    # use arch -foo if available 
     52    if {${os.major} >= 9} { 
     53        build.cmd arch -${build_arch} ${build.cmd} 
    4854    } 
    4955} 
    50  
    5156build.dir           ${worksrcpath}/pypy/translator/goal 
    52 # use pypy to build if it's already installed 
    53 if {[file executable ${prefix}/lib/pypy/pypy-c]} { 
    54     build.cmd       ${prefix}/lib/pypy/pypy-c 
    55 } else { 
    56     build.cmd       ${prefix}/bin/python2.7 
    57 } 
    5857build.args          --batch --cc=${configure.cc} --opt=jit \ 
    5958                    --make-jobs=${build.jobs} \ 
     
    6665    build.args-delete --opt=jit 
    6766    build.args-append --opt=3 
    68 } 
    69  
    70 platform darwin { 
    71     # use arch -foo if available 
    72     if {${os.major} >= 9} { 
    73         build.cmd arch -${build_arch} ${build.cmd} 
    74     } 
    7567} 
    7668 
  • trunk/dports/lang/pypy/files/darwin.py.diff

    r78296 r82942  
    1616     def check___thread(self): 
    1717         # currently __thread is not supported by Darwin gccs 
    18 @@ -68,12 +70,12 @@ 
    19   
    20  class Darwin_i386(Darwin): 
    21      name = "darwin_i386" 
    22 -    link_flags = ('-arch', 'i386', '-mmacosx-version-min=10.4') 
    23 +    link_flags = ('-arch', 'i386', '-mmacosx-version-min=__MDT__') 
    24      cflags = ('-arch', 'i386', '-O3', '-fomit-frame-pointer', 
    25 -              '-mmacosx-version-min=10.4') 
    26 +              '-mmacosx-version-min=__MDT__') 
    27   
    28  class Darwin_x86_64(Darwin): 
    29      name = "darwin_x86_64" 
    30 -    link_flags = ('-arch', 'x86_64', '-mmacosx-version-min=10.4') 
    31 +    link_flags = ('-arch', 'x86_64', '-mmacosx-version-min=__MDT__') 
    32      cflags = ('-arch', 'x86_64', '-O3', '-fomit-frame-pointer', 
    33 -              '-mmacosx-version-min=10.4') 
    34 +              '-mmacosx-version-min=__MDT__') 
Note: See TracChangeset for help on using the changeset viewer.