[53316] trunk/dports/databases

blb at macports.org blb at macports.org
Thu Jul 2 22:46:16 PDT 2009


Revision: 53316
          http://trac.macports.org/changeset/53316
Author:   blb at macports.org
Date:     2009-07-02 22:46:15 -0700 (Thu, 02 Jul 2009)
Log Message:
-----------
New port - databases/mongodb, High-performance, schema-free document-oriented database

Added Paths:
-----------
    trunk/dports/databases/mongodb/
    trunk/dports/databases/mongodb/Portfile
    trunk/dports/databases/mongodb/files/
    trunk/dports/databases/mongodb/files/patch-SConstruct.diff

Added: trunk/dports/databases/mongodb/Portfile
===================================================================
--- trunk/dports/databases/mongodb/Portfile	                        (rev 0)
+++ trunk/dports/databases/mongodb/Portfile	2009-07-03 05:46:15 UTC (rev 53316)
@@ -0,0 +1,46 @@
+# $Id$
+
+PortSystem          1.0
+name                mongodb
+version             0.9.5
+categories          databases
+maintainers         blb openmaintainer
+description         High-performance, schema-free document-oriented database
+long_description    ${description}
+
+platforms           darwin
+
+homepage            http://www.mongodb.org/
+master_sites        http://github.com/mongodb/mongo/tarball/r${version}
+
+checksums           md5     796d401d6cc31d6d31cbe0e051780690 \
+                    sha1    d73db4a5e160761a78503dec5f72ab4d73016f61 \
+                    rmd160  2f1c12c4494d79299785bd201eb2792022ab765a
+
+set mongodb_version_hash   d4570964455bbd57c52f753fbe6a0a0828022991
+worksrcdir          ${name}-mongo-${mongodb_version_hash}
+
+depends_build       port:scons
+depends_lib         port:boost port:pcre port:spidermonkey port:libpcap \
+                    port:readline
+
+patchfiles          patch-SConstruct.diff
+post-patch {
+   reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/SConstruct
+}
+
+use_configure       no
+
+build.args          --usesm
+build.env           CC=${configure.cc} CXX=${configure.cxx} CPP=${configure.cpp}
+build.cmd           scons
+build.target        all mongobridge mongosniff
+
+destroot.cmd        scons
+destroot.destdir    --prefix=${destroot}${prefix}
+destroot.env        ${build.env}
+post-destroot {
+   xinstall -m 755 -W ${worksrcpath} mongobridge mongosniff \
+      ${destroot}${prefix}/bin
+}
+


Property changes on: trunk/dports/databases/mongodb/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/databases/mongodb/files/patch-SConstruct.diff
===================================================================
--- trunk/dports/databases/mongodb/files/patch-SConstruct.diff	                        (rev 0)
+++ trunk/dports/databases/mongodb/files/patch-SConstruct.diff	2009-07-03 05:46:15 UTC (rev 53316)
@@ -0,0 +1,53 @@
+--- SConstruct.orig	2009-06-23 11:41:23.000000000 -0600
++++ SConstruct	2009-07-02 19:55:42.000000000 -0600
+@@ -273,23 +273,16 @@
+ 
+     env.Append( CPPPATH=[ "-I/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Headers/" ] )
+ 
+-    env.Append( CPPFLAGS=" -mmacosx-version-min=10.4 " )
+     if not nojni:
+         env.Append( FRAMEWORKS=["JavaVM"] )
+ 
+-    if os.path.exists( "/usr/bin/g++-4.2" ):
+-        env["CXX"] = "g++-4.2"
+-
+     nix = True
+ 
+-    if force64:
+-        env.Append( CPPPATH=["/usr/64/include"] )
+-        env.Append( LIBPATH=["/usr/64/lib"] )
+-        if installDir == DEFAULT_INSTALl_DIR and not distBuild:
+-            installDir = "/usr/64/"
+-    else:
+-        env.Append( CPPPATH=[ "/sw/include" , "/opt/local/include"] )
+-        env.Append( LIBPATH=["/sw/lib/", "/opt/local/lib"] )
++    env.Append( CPPPATH=["@@PREFIX@@/include"] )
++    env.Append( LIBPATH=["@@PREFIX@@/lib/"] )
++    env["CC"] = os.environ["CC"]
++    env["CPP"] = os.environ["CPP"]
++    env["CXX"] = os.environ["CXX"]
+ 
+ elif "linux2" == os.sys.platform:
+     linux = True
+@@ -586,11 +579,7 @@
+         haveReadLine = False
+         if darwin:
+             myenv.Append( CPPDEFINES=[ "USE_READLINE" ] )
+-            if force64:
+-                myCheckLib( "readline" , True )
+-                myCheckLib( "ncurses" , True )
+-            else:
+-                myenv.Append( LINKFLAGS=" /usr/lib/libreadline.dylib " )
++            myenv.Append( LINKFLAGS=" @@PREFIX@@/lib/libreadline.dylib " )
+         elif myCheckLib( "readline" , release and nix , staticOnly=release ):
+             myenv.Append( CPPDEFINES=[ "USE_READLINE" ] )
+             myCheckLib( "tinfo" , staticOnly=release )
+@@ -757,8 +746,6 @@
+         shellEnv["LINKFLAGS"].remove("-m64")
+         shellEnv["CPPPATH"].remove( "/usr/64/include" )
+         shellEnv["LIBPATH"].remove( "/usr/64/lib" )
+-        shellEnv.Append( CPPPATH=[ "/sw/include" , "/opt/local/include"] )
+-        shellEnv.Append( LIBPATH=[ "/sw/lib/", "/opt/local/lib" , "/usr/lib" ] )
+ 
+     l = shellEnv["LIBS"]
+     if linux64:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090702/de0c9cd8/attachment-0001.html>


More information about the macports-changes mailing list