diff options
author | Alex Dupre <ale@FreeBSD.org> | 2013-03-29 08:56:13 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2013-03-29 08:56:13 +0000 |
commit | 62166b29b30b86fcbf9b04b69e1b1bf11965b16f (patch) | |
tree | 6f87c1c82c1e497b2b3d31d3b77b31dab36589e9 /databases/mongodb/files/patch-SConstruct | |
parent | 0d883f21c44f82b8069695ddbc8e08ee5fb56d52 (diff) | |
download | ports-62166b29b30b86fcbf9b04b69e1b1bf11965b16f.tar.gz ports-62166b29b30b86fcbf9b04b69e1b1bf11965b16f.zip |
Update to 2.4.1 release and overhaul:
- use bundled boost lib, since 1.52 from ports make mongod segfaulting
- set LICENSE
- use V8 Javascript engine by default (SM still an option, deprecated)
- make SSL optional (ON by default)
- add support for running regression tests
- enhance rc script
- add support for ccache
- install c++ driver / client library
- take maintainership
Approved by: maintainer timeout (> 6 months)
Notes
Notes:
svn path=/head/; revision=315530
Diffstat (limited to 'databases/mongodb/files/patch-SConstruct')
-rw-r--r-- | databases/mongodb/files/patch-SConstruct | 93 |
1 files changed, 13 insertions, 80 deletions
diff --git a/databases/mongodb/files/patch-SConstruct b/databases/mongodb/files/patch-SConstruct index 1afbf3cc91db..7fccb9f6a9fb 100644 --- a/databases/mongodb/files/patch-SConstruct +++ b/databases/mongodb/files/patch-SConstruct @@ -1,7 +1,15 @@ -diff -ru ./SConstruct ../../mongodb-src-r2.2.0/SConstruct ---- ./SConstruct 2012-08-28 09:28:11.000000000 +0400 -+++ ../../mongodb-src-r2.2.0/SConstruct 2012-10-14 14:04:31.000000000 +0400 -@@ -790,6 +790,20 @@ +--- SConstruct.orig 2013-03-22 20:55:25.000000000 +0100 ++++ SConstruct 2013-03-26 20:22:38.000000000 +0100 +@@ -702,7 +702,7 @@ + env.Append( LIBS=[] ) + + #make scons colorgcc friendly +- for key in ('HOME', 'TERM'): ++ for key in ('HOME', 'TERM', 'PATH', 'CCACHE_DIR'): + try: + env['ENV'][key] = os.environ[key] + except KeyError: +@@ -805,6 +805,20 @@ print( "c++ compiler not installed!" ) Exit(1) @@ -15,85 +23,10 @@ diff -ru ./SConstruct ../../mongodb-src-r2.2.0/SConstruct + if not conf.CheckLib("snappy"): + Exit(1) + -+ if use_system_version_of_library("js"): ++ if usesm and use_system_version_of_library("js"): + if not conf.CheckLib("js"): + Exit(1) + if use_system_version_of_library("boost"): if not conf.CheckCXXHeader( "boost/filesystem/operations.hpp" ): print( "can't find boost headers" ) -@@ -1100,7 +1114,7 @@ - Export("has_option use_system_version_of_library") - Export("installSetup") - Export("usesm usev8") --Export("darwin windows solaris linux nix") -+Export("darwin windows solaris linux nix freebsd") - - env.SConscript( 'src/SConscript', variant_dir='$BUILD_DIR', duplicate=False ) - env.SConscript( 'src/SConscript.client', variant_dir='$BUILD_DIR/client_build', duplicate=False ) -diff -ru ./src/SConscript.client ../../mongodb-src-r2.2.0/src/SConscript.client ---- ./src/SConscript.client 2012-08-28 09:28:11.000000000 +0400 -+++ ../../mongodb-src-r2.2.0/src/SConscript.client 2012-10-14 16:48:25.000000000 +0400 -@@ -134,7 +134,7 @@ - # install - prefix = GetOption("prefix") - --env.Install(prefix + "/lib", '${LIBPREFIX}mongoclient${LIBSUFFIX}') -+env.InstallAs(prefix + "/lib", '${LIBPREFIX}mongoclient${LIBSUFFIX}') - - for x in clientHeaderDirectories: - env.Install(prefix + "/include/mongo/" + x, -diff -ru ./src/mongo/SConscript ../../mongodb-src-r2.2.0/src/mongo/SConscript ---- ./src/mongo/SConscript 2012-08-28 09:28:11.000000000 +0400 -+++ ../../mongodb-src-r2.2.0/src/mongo/SConscript 2012-10-14 21:34:12.000000000 +0400 -@@ -11,7 +11,7 @@ - Import("has_option") - Import("usesm usev8") - Import("installSetup") --Import("darwin windows solaris linux nix") -+Import("darwin windows solaris linux nix freebsd") - - env.SConscript(['platform/SConscript', - 'unittest/SConscript']) -@@ -170,7 +170,7 @@ - - if usesm: - env.StaticLibrary('scripting', scripting_common_files + ['scripting/engine_spidermonkey.cpp'], -- LIBDEPS=['$BUILD_DIR/third_party/js-1.7/js', 'bson_template_evaluator']) -+ LIBDEPS=['bson_template_evaluator'], CPPDEFINES=["XP_UNIX"]) - elif usev8: - env.StaticLibrary('scripting', scripting_common_files + ['scripting/engine_v8.cpp', - 'scripting/v8_db.cpp', -@@ -519,7 +519,7 @@ - if (not has_option( "no-glibc-check" ) and linux and "s3dist" in COMMAND_LINE_TARGETS): - e.AddPostAction( name, checkGlibc ) - -- if (solaris or linux) and (not has_option("nostrip")): -+ if (solaris or linux or freebsd) and (not has_option("nostrip")): - name = e.Command('stripped/%s' % name, name, Copy('$TARGET', '$SOURCE'))[0] - e.AddPostAction(name, 'strip $TARGET') - -diff -ru ./src/mongo/scripting/engine_spidermonkey.cpp ../../mongodb-src-r2.2.0/src/mongo/scripting/engine_spidermonkey.cpp ---- ./src/mongo/scripting/engine_spidermonkey.cpp 2012-08-28 09:28:11.000000000 +0400 -+++ ../../mongodb-src-r2.2.0/src/mongo/scripting/engine_spidermonkey.cpp 2012-10-14 21:34:33.000000000 +0400 -@@ -25,7 +25,7 @@ - #include <boost/date_time/posix_time/posix_time.hpp> - #endif - --#include <third_party/js-1.7/jsdate.h> -+#include <jsdate.h> - - #include "mongo/util/mongoutils/str.h" - -diff -ru ./src/mongo/scripting/engine_spidermonkey.h ../../mongodb-src-r2.2.0/src/mongo/scripting/engine_spidermonkey.h ---- ./src/mongo/scripting/engine_spidermonkey.h 2012-08-28 09:28:11.000000000 +0400 -+++ ../../mongodb-src-r2.2.0/src/mongo/scripting/engine_spidermonkey.h 2012-10-14 21:35:21.000000000 +0400 -@@ -29,7 +29,7 @@ - #define JS_PUBLIC_DATA(t) t - #endif - --#include <third_party/js-1.7/jsapi.h> -+#include <jsapi.h> - - // END inc hacking - |