[96549] trunk/dports/databases/mongodb/Portfile
ryandesign at macports.org
ryandesign at macports.org
Mon Aug 13 18:46:40 PDT 2012
Revision: 96549
https://trac.macports.org/changeset/96549
Author: ryandesign at macports.org
Date: 2012-08-13 18:46:36 -0700 (Mon, 13 Aug 2012)
Log Message:
-----------
mongodb: update to 2.0.7; ensure boost < 1.50 is active (#35118)
Modified Paths:
--------------
trunk/dports/databases/mongodb/Portfile
Modified: trunk/dports/databases/mongodb/Portfile
===================================================================
--- trunk/dports/databases/mongodb/Portfile 2012-08-14 00:22:18 UTC (rev 96548)
+++ trunk/dports/databases/mongodb/Portfile 2012-08-14 01:46:36 UTC (rev 96549)
@@ -4,7 +4,7 @@
name mongodb
epoch 1
-version 2.0.6
+version 2.0.7
license AGPL-3
categories databases
maintainers ryandesign
@@ -18,8 +18,8 @@
master_sites http://downloads.mongodb.org/src/
distname ${name}-src-r${version}
-checksums rmd160 b9224e56096c4b1755a4e407060de449f5022d77 \
- sha256 a972725a7dc3d079f8070d3631956141a7fe2f422d350e6cd3288c9e19fa314e
+checksums rmd160 7a80f463ea2f7f1de80972fcded3fbe982e6f8f0 \
+ sha256 b204d94bc912692bdc154402fbfc2e5c4bd60b09dcbe244f3b2b7657f0a82736
depends_build port:scons
@@ -47,6 +47,20 @@
configure.compiler llvm-gcc-4.2
}
+pre-configure {
+ # https://trac.macports.org/ticket/35118
+ # https://jira.mongodb.org/browse/SERVER-4314
+ set boost_version_int [exec awk {/#define BOOST_VERSION/ {print $3}} ${prefix}/include/boost/version.hpp]
+ scan ${boost_version_int} {%1d%3d%2d} boost_major boost_minor boost_patch
+ set boost_version "${boost_major}.${boost_minor}.${boost_patch}"
+ if {[vercmp ${boost_version} 1.50] >= 0} {
+ ui_error "mongodb ${version} requires boost 1.49.x or older but you have boost ${boost_version}."
+ ui_error "To downgrade boost, see https://trac.macports.org/wiki/howto/InstallingOlderPort"
+ ui_error "or more specifically https://trac.macports.org/ticket/35118#comment:12"
+ return -code error "boost ${boost_version} is too new"
+ }
+}
+
build.env TERM=xterm \
CFLAGS="[get_canonical_archflags cc]" \
CPPFLAGS="-I${prefix}/include/js" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120813/66f25f77/attachment.html>
More information about the macports-changes
mailing list