aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mongodb/mongodb-2.2.4-use-system-version.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-06-11 08:20:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-06-11 08:20:49 +0000
commit5212570b3d01388b221efe65d6749837a95359f1 (patch)
tree5a5c51c5cf21c574f2393b203c6592318643a510 /testing/mongodb/mongodb-2.2.4-use-system-version.patch
parent26c4e189e825d62d0249fb5f499bcb545d40e1ab (diff)
downloadaports-5212570b3d01388b221efe65d6749837a95359f1.tar.bz2
aports-5212570b3d01388b221efe65d6749837a95359f1.tar.xz
testing/mongodb: new aport
High-performance, schema-free document-oriented database http://www.mongodb.org ref #1182
Diffstat (limited to 'testing/mongodb/mongodb-2.2.4-use-system-version.patch')
-rw-r--r--testing/mongodb/mongodb-2.2.4-use-system-version.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/mongodb/mongodb-2.2.4-use-system-version.patch b/testing/mongodb/mongodb-2.2.4-use-system-version.patch
new file mode 100644
index 0000000000..3f9ec2d3df
--- /dev/null
+++ b/testing/mongodb/mongodb-2.2.4-use-system-version.patch
@@ -0,0 +1,42 @@
+diff -urp mongodb-src-r2.2.4.orig/SConstruct mongodb-src-r2.2.4/SConstruct
+--- mongodb-src-r2.2.4.orig/SConstruct 2013-05-02 14:59:37.226000000 -0500
++++ mongodb-src-r2.2.4/SConstruct 2013-05-02 15:04:25.164000000 -0500
+@@ -249,7 +249,7 @@ def printLocalInfo():
+
+ printLocalInfo()
+
+-boostLibs = [ "thread" , "filesystem" , "program_options", "system" ]
++boostLibs = [ "thread" , "filesystem" , "iostreams" , "program_options", "system" ]
+
+ onlyServer = len( COMMAND_LINE_TARGETS ) == 0 or ( len( COMMAND_LINE_TARGETS ) == 1 and str( COMMAND_LINE_TARGETS[0] ) in [ "mongod" , "mongos" , "test" ] )
+ nix = False
+@@ -791,6 +791,28 @@ def doConfigure(myenv):
+ print( "c++ compiler not installed!" )
+ Exit(1)
+
++ if use_system_version_of_library("snappy"):
++ if not conf.CheckCXXHeader("snappy.h"):
++ print( "can't find snappy header" )
++ Exit(1)
++ if not conf.CheckLib("libsnappy"):
++ print( "can't find snappy library" )
++ Exit(1)
++
++ if use_system_version_of_library("pcre"):
++ if not conf.CheckCXXHeader("pcre.h"):
++ print( "can't find pcre header" )
++ Exit(1)
++ if not conf.CheckLib("libpcre"):
++ print( "can't find pcre library" )
++ Exit(1)
++ if not conf.CheckCXXHeader("pcrecpp.h"):
++ print( "can't find pcrecpp header" )
++ Exit(1)
++ if not conf.CheckLib("libpcrecpp"):
++ print( "can't find pcrecpp library" )
++ Exit(1)
++
+ if use_system_version_of_library("boost"):
+ if not conf.CheckCXXHeader( "boost/filesystem/operations.hpp" ):
+ print( "can't find boost headers" )
+Only in mongodb-src-r2.2.4: SConstruct.orig