Py-libxml2 version 2.6.21 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    py-libxml2  most recent diff


    version 2.6.21

      View the most recent changes for the py-libxml2 port at: py-libxml2.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for py-libxml2.
      The raw portfile for py-libxml2 2.6.21 is located here:
      http://py-libxml2.darwinports.com/dports/python/py-libxml2/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-libxml2


      # -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
      The py-libxml2 Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup python24 1.0

      Name: py-libxml2
      Version: 2.6.21
      Category: python textproc
      Platform: darwin
      Maintainers: sfiera openmaintainer
      Description: Python bindings for libxml2
      Long Description: ${description}

      Homepage: http://xmlsoft.org/
      Master Sites: ftp://xmlsoft.org/libxml2/python/
      distname libxml2-python-${version}
      Checksums: md5 229dd2b3d110a77defeeaa73af83f7f3
      Patch Files: patch-setup.py.diff

      depends_lib-append port:libxml2 port:zlib

      build.env LDFLAGS=-L${prefix}/lib

      post-patch {
      reinplace "s| PREFIX |$prefix|" ${worksrcpath}/setup.py
      }

      post-destroot {
      # strip out anything related to libxslt, so py-libxml2 doesn't conflict with
      # py-libxslt
      fs-traverse file ${destroot} {
      if {[file isfile ${file}]} {
      if {[string match "*xslt*" ${file}]} {
      file delete ${file}
      }
      }
      }
      xinstall -m 644 -W ${worksrcpath} README TODO ${destroot}${prefix}/share/doc/${name}
      }

      livecheck.type md5
      livecheck.url ftp://xmlsoft.org/libxml2/python/
      livecheck.md5 a2cc31311f1b3fb52a08cf1056efda11

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.