Changeset 96549


Ignore:
Timestamp:
Aug 14, 2012, 1:46:36 AM (5 years ago)
Author:
ryandesign@…
Message:

mongodb: update to 2.0.7; ensure boost < 1.50 is active (#35118)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/mongodb/Portfile

    r95899 r96549  
    55name                mongodb
    66epoch               1
    7 version             2.0.6
     7version             2.0.7
    88license             AGPL-3
    99categories          databases
     
    1919distname            ${name}-src-r${version}
    2020
    21 checksums           rmd160  b9224e56096c4b1755a4e407060de449f5022d77 \
    22                     sha256  a972725a7dc3d079f8070d3631956141a7fe2f422d350e6cd3288c9e19fa314e
     21checksums           rmd160  7a80f463ea2f7f1de80972fcded3fbe982e6f8f0 \
     22                    sha256  b204d94bc912692bdc154402fbfc2e5c4bd60b09dcbe244f3b2b7657f0a82736
    2323
    2424depends_build       port:scons
     
    4646if {${configure.compiler} == "clang" && [vercmp ${xcodeversion} 4.3] < 0} {
    4747    configure.compiler llvm-gcc-4.2
     48}
     49
     50pre-configure {
     51    # https://trac.macports.org/ticket/35118
     52    # https://jira.mongodb.org/browse/SERVER-4314
     53    set boost_version_int [exec awk {/#define BOOST_VERSION/ {print $3}} ${prefix}/include/boost/version.hpp]
     54    scan ${boost_version_int} {%1d%3d%2d} boost_major boost_minor boost_patch
     55    set boost_version "${boost_major}.${boost_minor}.${boost_patch}"
     56    if {[vercmp ${boost_version} 1.50] >= 0} {
     57        ui_error "mongodb ${version} requires boost 1.49.x or older but you have boost ${boost_version}."
     58        ui_error "To downgrade boost, see https://trac.macports.org/wiki/howto/InstallingOlderPort"
     59        ui_error "or more specifically https://trac.macports.org/ticket/35118#comment:12"
     60        return -code error "boost ${boost_version} is too new"
     61    }
    4862}
    4963
Note: See TracChangeset for help on using the changeset viewer.