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

    py-cairo  most recent diff


    version 1.4.12

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


      The py-cairo Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: py-cairo
      set my_name pycairo
      # pycairo 1.6.4 does not support Python 2.4
      Version: 1.4.12
      Revision: 3
      Category: python x11
      Platform: darwin
      Maintainers: nomaintainer
      Description: Pycairo is set of Python bindings for the cairo graphics library

      Long Description: ${description}

      Homepage: http://cairographics.org/pycairo/
      Master Sites: http://cairographics.org/releases/
      distname ${my_name}-${version}

      Checksums: md5 c63199d35b1e1d3c5133509f315f70d7 sha1 580255db6f3ab4c44ac44dfe0a9f7d1f598c2ab3 rmd160 f44bb6bcc6b366568e0297689164537dc891b278

      depends_build port:pkgconfig
      depends_lib port:python24 path:lib/pkgconfig/cairo.pc:cairo port:py-numpy

      configure.python ${prefix}/bin/python2.4

      set python_prefix ${frameworks_dir}/Python.framework/Versions/2.4
      # change default includedir to avoid conflict with other python pycairo packages
      configure.args-append --includedir=${prefix}/include/python2.4

      platform darwin 9 {
      post-patch {
      reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/cairo/Makefile.in
      }
      }

      post-destroot {
      set docdir ${prefix}/share/doc/${name}-${version}
      xinstall -d ${destroot}${docdir}
      xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING NEWS doc/NOTES doc/FAQ README ${destroot}${docdir}

      # avoid conflict with other python pycairo packages
      # pkg-config based ports will have to set configure.pkg_config_path to find this package
      xinstall -d -m 0755 ${destroot}${python_prefix}/lib
      move ${destroot}${prefix}/lib/pkgconfig ${destroot}${python_prefix}/lib
      }

      livecheck.type regex
      livecheck.regex ${my_name}-(1\\.4\\.\\d+)

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.