Ticket #31159: mongodb-2.0.0.diff
File mongodb-2.0.0.diff, 4.9 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
files/lion.patch
1 --- util/processinfo_darwin.cpp.orig2 +++ util/processinfo_darwin.cpp3 @@ -19,7 +19,7 @@4 #include "processinfo.h"5 #include "log.h"6 7 -8 +#include <mach/vm_statistics.h>9 #include <mach/task_info.h>10 11 #include <mach/mach_init.h>12 @@ -27,7 +27,7 @@13 #include <mach/mach_traps.h>14 #include <mach/task.h>15 #include <mach/vm_map.h>16 -#include <mach/shared_memory_server.h>17 +#include <mach/shared_region.h>18 #include <iostream>19 20 #include <sys/types.h> -
files/patch-distsrc-client-SConstruct.diff
1 --- distsrc/client/SConstruct.orig 2011-09-11 09:09:34.000000000 -0500 2 +++ distsrc/client/SConstruct 2011-09-13 03:50:05.000000000 -0500 3 @@ -39,7 +39,7 @@ 4 linux = False 5 6 if "darwin" == os.sys.platform: 7 - addExtraLibs( "/opt/local/" ) 8 + addExtraLibs( "@@PREFIX@@/" ) 9 nix = True 10 elif "linux2" == os.sys.platform or "linux3" == os.sys.platform: 11 nix = True -
files/patch-SConstruct.diff
1 --- SConstruct.orig 2011-0 3-16 10:33:30.000000000 -05002 +++ SConstruct 2011-0 3-27 03:30:06.000000000 -05003 @@ -4 47,21 +447,14 @@1 --- SConstruct.orig 2011-09-11 09:09:34.000000000 -0500 2 +++ SConstruct 2011-09-13 03:46:23.000000000 -0500 3 @@ -473,21 +473,14 @@ 4 4 darwin = True 5 5 platform = "osx" # prettier than darwin 6 6 … … 20 20 - env.Append( CPPPATH=filterExists(["/sw/include" , "/opt/local/include"]) ) 21 21 - env.Append( LIBPATH=filterExists(["/sw/lib/", "/opt/local/lib"]) ) 22 22 + env.Append( CPPPATH=["@@PREFIX@@/include"] ) 23 + env.Append( LIBPATH=["@@PREFIX@@/lib /"] )23 + env.Append( LIBPATH=["@@PREFIX@@/lib"] ) 24 24 + env["CFLAGS"] = os.getenv("CFLAGS") 25 25 + env["CXXFLAGS"] = os.getenv("CXXFLAGS") 26 26 + env["LINKFLAGS"] = os.getenv("LINKFLAGS") 27 27 + 28 28 29 elif "linux2" == os.sys.platform :29 elif "linux2" == os.sys.platform or "linux3" == os.sys.platform: 30 30 linux = True 31 @@ -931,11 +924,7 @@32 haveReadLine = False33 if darwin:34 myenv.Append( CPPDEFINES=[ "USE_READLINE" ] )35 - if force64:36 - myCheckLib( "readline" , True )37 - myCheckLib( "ncurses" , True )38 - else:39 - myenv.Append( LINKFLAGS=" /usr/lib/libreadline.dylib " )40 + myenv.Append( LINKFLAGS=" @@PREFIX@@/lib/libreadline.dylib " )41 elif openbsd:42 myenv.Append( CPPDEFINES=[ "USE_READLINE" ] )43 myCheckLib( "termcap" , True )44 @@ -1176,8 +1165,6 @@45 shellEnv["LINKFLAGS"].remove("-m64")46 shellEnv["CPPPATH"].remove( "/usr/64/include" )47 shellEnv["LIBPATH"].remove( "/usr/64/lib" )48 - shellEnv.Append( CPPPATH=filterExists(["/sw/include" , "/opt/local/include"]) )49 - shellEnv.Append( LIBPATH=filterExists(["/sw/lib/", "/opt/local/lib" , "/usr/lib", "/usr/local/lib" ]) )50 51 l = shellEnv["LIBS"]52 -
Portfile
5 5 6 6 name mongodb 7 7 epoch 1 8 version 1.8.38 version 2.0.0 9 9 license AGPL-3.0 10 10 categories databases 11 11 maintainers nomaintainer … … 19 19 master_sites http://downloads.mongodb.org/src/ 20 20 distname ${name}-src-r${version} 21 21 22 checksums rmd160 9662b6963e7e6a4b5adcbea3faa36dd50a794457\23 sha256 ee121c9698a48b819f1c5b5ba10a98d565bd732d527743f1475f54f697dd63e222 checksums rmd160 cbc2572b479713ab29011c5ed2495fa67e4ec760 \ 23 sha256 27565cb8781f95cf8af2ca1ccc22e86458da30144290ec7dd58d14e7550220b8 24 24 25 25 depends_build port:scons 26 26 … … 36 36 lib/libreadline.dylib \ 37 37 lib/libjs.dylib 38 38 39 patchfiles patch-SConstruct.diff 39 patchfiles patch-SConstruct.diff \ 40 patch-distsrc-client-SConstruct.diff 40 41 41 42 post-patch { 42 reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/SConstruct 43 reinplace "s|@@PREFIX@@|${prefix}|g" \ 44 ${worksrcpath}/SConstruct \ 45 ${worksrcpath}/distsrc/client/SConstruct 43 46 } 44 47 45 48 use_configure no … … 62 65 xinstall -W ${worksrcpath} mongobridge ${destroot}${prefix}/bin 63 66 } 64 67 65 platform darwin 11 {66 patchfiles-append lion.patch67 }68 69 68 livecheck.url ${homepage}downloads 70 69 livecheck.regex {mongodb-src-r(\d+\.\d*[02468]\.\d+)\.}