Py-bsddb version 2.5.2 - How to Download and Install on Mac OS X
Monday the 23rd of November, 2009

    py-bsddb  most recent diff


    version 2.5.2

      View the most recent changes for the py-bsddb port at: py-bsddb.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for py-bsddb.
      The raw portfile for py-bsddb 2.5.2 is located here:
      http://py-bsddb.darwinports.com/dports/python/py-bsddb/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/py-bsddb


      The py-bsddb Portfile 57613 2009-09-14 06:21:22Z toby macports.org $

      PortSystem 1.0
      PortGroup python24 1.0

      Name: py-bsddb
      Version: 2.5.2
      Category: python databases
      Platform: darwin
      Maintainers: mww
      Description: Python bindings to the db4 and db3 library
      Long Description: ${description}

      Homepage: http://www.python.org/doc/current/lib/module-dbm.html
      Master Sites: http://www.python.org/ftp/python/${version}/
      distname Python-${version}
      dist_subdir python24
      Checksums: sha1 4755d212f50af704c20224a6966e23acc5aea60f
      use_bzip2 yes

      worksrcdir ${worksrcdir}/Modules

      extract.post_args "| tar -xf - ${distname}/Modules/bsddbmodule.c ${distname}/Modules/_bsddb.c"
      post-extract {
      file copy ${filespath}/setup.py ${worksrcpath}
      }

      set libdir ${prefix}/lib/db46
      set incdir ${prefix}/include/db46
      depends_lib-append port:db46

      post-patch {
      reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
      reinplace "s|__LIBDIR__|${libdir}|g" ${worksrcpath}/setup.py
      reinplace "s|__INCDIR__|${incdir}|g" ${worksrcpath}/setup.py
      }

      livecheck.type regex
      livecheck.url http://www.python.org/download/releases/
      livecheck.regex Python (2.4.\[0-9\]+)

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/py-bsddb
      % sudo port install py-bsddb
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching py-bsddb
      ---> Verifying checksum for py-bsddb
      ---> Extracting py-bsddb
      ---> Configuring py-bsddb
      ---> Building py-bsddb with target all
      ---> Staging py-bsddb into destroot
      ---> Installing py-bsddb
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using py-bsddb with these commands:
      %  man py-bsddb
      % apropos py-bsddb
      % which py-bsddb
      % locate py-bsddb

     Where to find more information:

    Darwin Ports



    Lightbox this page.