Download and Install py-bsddb version 2.4.5 on Mac OS X
Wednesday the 23rd of July, 2008

    py-bsddb  most recent diff


      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.4.5 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
      Google
      Web Darwinports.com



      # $Id: Portfile 37637 2008-06-16 18:57:31Z dluke macports.org $

      PortSystem 1.0
      PortGroup python24 1.0

      Name: py-bsddb
      Version: 2.4.5
      revision 1
      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 6e9e1ac2b70cc10c36063a25ab5a5ddb53177107
      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

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

      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.check 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



    image test