Subversion-python24bindings version 1.6.5 - How to Download and Install on Mac OS X
Thursday the 18th of March, 2010

    subversion-python24bindings  most recent diff


    version 1.6.5

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


      The subversion-python24bindings Portfile 55986 2009-08-22 21:11:39Z blair macports.org $

      PortSystem 1.0

      Name: subversion-python24bindings
      Version: 1.6.5
      Category: devel python
      Platform: darwin
      Maintainers: blair
      Description: Python bindings for the subversion version control system.

      Long Description: Subversion is a version control system designed to be as similar to cvs(1) as possible, while fixing many outstanding problems with cvs(1). The python bindings provide access to subversion API from python.

      Homepage: http://subversion.tigris.org/
      Master Sites: ${homepage}/downloads
      use_bzip2 yes
      Checksums: md5 1a53a0e72bee0bf814f4da83a9b6a636 sha1 c575c5facf972e501049ad47a9be05c5cf228388 rmd160 eb2dad92de044352dbe16e0f9c81cadcd5dcd17e
      distname subversion-${version}
      dist_subdir subversion

      depends_lib port:expat port:neon port:apr port:apr-util port:db46 port:subversion port:python24 port:py-bsddb port:sqlite3 port:gettext port:libiconv port:serf port:cyrus-sasl2

      post-patch {
      system "cd ${worksrcpath}; find build* Makefile.in subversion/bindings/swig/python -type f -print0 | xargs -0 perl -w -p -i -e 's/libsvn_swig_py/libsvn_swig_py24/g'"
      file rename ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py24
      }

      configure.args --with-berkeley-db=:${prefix}/include/db46:${prefix}/lib/db46:db-4.6 --with-neon=${prefix} --with-apr=${prefix}/bin/apr-1-config --with-apr-util=${prefix}/bin/apu-1-config --without-apxs --mandir=\\\${prefix}/share/man --disable-neon-version-check --with-serf=${prefix} --with-sasl=${prefix}

      configure.env ac_cv_path_PYTHON=${prefix}/bin/python2.4 ac_cv_python_includes=-I${prefix}/include/python2.4 ac_cv_python_link="${configure.compiler} -L${prefix}lib -bundle -undefined dynamic_lookup -lpython2.4" ac_cv_python_libs="-L${prefix}lib -bundle -undefined dynamic_lookup -lpython2.4"

      use_parallel_build yes
      build.target swig-py
      destroot.target install-swig-py DESTDIR=${destroot}

      test.run yes
      test.target check-swig-py

      pre-test {
      set x {}
      fs-traverse dir ${worksrcpath}/subversion {
      if {[file tail ${dir}] == ".libs" && [file isdirectory ${dir}]} {
      lappend x ${dir}
      continue
      }
      }
      test.env-append DYLD_LIBRARY_PATH=[join ${x} ":"]
      }

      pre-configure { reinplace "s|hardcode_direct=yes|hardcode_direct=no|g" ${worksrcpath}/configure
      }

      post-configure { reinplace "s|need_relink=yes|need_relink=no|g" ${worksrcpath}/libtool
      }

      Variant: no_bdb description {Build without support for BerkeleyDB repositories} {
      depends_lib-delete port:db46 port:py-bsddb
      configure.args-delete --with-berkeley-db=:${prefix}/include/db46:${prefix}/lib/db46:db-4.6
      configure.args-append --without-berkeley-db
      }

      Variant: no_neon description {Build without neon (http/https support)} {
      depends_lib-delete port:neon
      configure.args-append --without-neon
      configure.args-delete --with-neon=${prefix}
      }

      post-destroot {
      set PYTHON_PATH ${prefix}/lib/python2.4

      xinstall -m 755 -d ${destroot}${PYTHON_PATH}/site-packages
      xinstall -m 755 ${portpath}/${filesdir}/svn-python.pth ${destroot}${PYTHON_PATH}/site-packages
      reinplace "s| PREFIX |${prefix}|g" ${destroot}${PYTHON_PATH}/site-packages/svn-python.pth

      file rename "${destroot}/${prefix}/lib/svn-python" "${destroot}/${prefix}/lib/svn-python2.4"
      }

      # 10.3 says -> CarbonCore/MacTypes.h: No such file or directory
      platform darwin 7 { configure.args-append --disable-keychain
      }

    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/subversion-python24bindings
      % sudo port install subversion-python24bindings
      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 subversion-python24bindings
      ---> Verifying checksum for subversion-python24bindings
      ---> Extracting subversion-python24bindings
      ---> Configuring subversion-python24bindings
      ---> Building subversion-python24bindings with target all
      ---> Staging subversion-python24bindings into destroot
      ---> Installing subversion-python24bindings
    - 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 subversion-python24bindings with these commands:
      %  man subversion-python24bindings
      % apropos subversion-python24bindings
      % which subversion-python24bindings
      % locate subversion-python24bindings

     Where to find more information:

    Darwin Ports



    Lightbox this page.