Py25-cairo version 1.8.2 - How to Download and Install on Mac OS X
Friday the 19th of March, 2010

    py25-cairo  most recent diff


    version 1.8.2

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
      The py25-cairo Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: py25-cairo
      set my_name pycairo
      Version: 1.8.2
      Category: python x11
      Platform: darwin
      Maintainers: mcalhoun
      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 bbfc0c2fef08dfb0c5b8baa5f0b67a87 sha1 b457949ccfa3af82afcffae8a396a1c840a9428a rmd160 ce48a6b71b802f07d0e0d3cfa140fd39ab5fe4d7

      depends_build port:pkgconfig
      depends_lib port:python25 path:lib/pkgconfig/cairo.pc:cairo port:py25-numpy

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

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

      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 -m 0755 ${destroot}${docdir}
      xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING NEWS 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.url http://cairographics.org/releases/
      livecheck.regex LATEST-pycairo-(\\d+(?:\\.\\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/py25-cairo
      % sudo port install py25-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 py25-cairo
      ---> Verifying checksum for py25-cairo
      ---> Extracting py25-cairo
      ---> Configuring py25-cairo
      ---> Building py25-cairo with target all
      ---> Staging py25-cairo into destroot
      ---> Installing py25-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 py25-cairo with these commands:
      %  man py25-cairo
      % apropos py25-cairo
      % which py25-cairo
      % locate py25-cairo

     Where to find more information:

    Darwin Ports



    Lightbox this page.