| 1 | # -*- 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 |
|---|
| 2 | # $Id: Portfile 39097 2008-08-08 07:52:41Z mcalhoun@macports.org $ |
|---|
| 3 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | |
|---|
| 6 | name py25-cairo |
|---|
| 7 | set my_name pycairo |
|---|
| 8 | version 1.6.4 |
|---|
| 9 | categories python x11 |
|---|
| 10 | platforms darwin |
|---|
| 11 | maintainers mcalhoun |
|---|
| 12 | description Pycairo is set of Python bindings for the cairo graphics library |
|---|
| 13 | |
|---|
| 14 | long_description \ |
|---|
| 15 | ${description} |
|---|
| 16 | |
|---|
| 17 | homepage http://cairographics.org/pycairo/ |
|---|
| 18 | master_sites http://cairographics.org/releases/ |
|---|
| 19 | distname ${my_name}-${version} |
|---|
| 20 | |
|---|
| 21 | checksums md5 2c3aa21e6e610321498f9f81f7b625df \ |
|---|
| 22 | sha1 d3b3ecb6e999cc7b4a6ebcad00ae8d82c253c21c \ |
|---|
| 23 | rmd160 6197427df3d10b708847503f975670e3d02d57e5 |
|---|
| 24 | |
|---|
| 25 | depends_build port:pkgconfig |
|---|
| 26 | depends_lib port:python25 \ |
|---|
| 27 | port:cairo \ |
|---|
| 28 | port:py25-numpy |
|---|
| 29 | |
|---|
| 30 | configure.python ${prefix}/bin/python2.5 |
|---|
| 31 | |
|---|
| 32 | platform darwin 9 { |
|---|
| 33 | post-patch { |
|---|
| 34 | reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/cairo/Makefile.am |
|---|
| 35 | reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/cairo/Makefile.in |
|---|
| 36 | } |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | post-destroot { |
|---|
| 40 | set docdir ${prefix}/share/doc/${name}-${version} |
|---|
| 41 | xinstall -d ${destroot}${docdir} |
|---|
| 42 | xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING NEWS doc/NOTES doc/FAQ README \ |
|---|
| 43 | ${destroot}${docdir} |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | livecheck.check regex |
|---|
| 47 | livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*) |
|---|