Ticket #17050: Portfile

File Portfile, 1.4 KB (added by stromnov (Andrey Stromnov), 16 years ago)

python/py25-cairo/Portfile

Line 
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
4PortSystem      1.0
5
6name            py25-cairo
7set my_name     pycairo
8version         1.6.4
9categories      python x11
10platforms       darwin
11maintainers     mcalhoun
12description     Pycairo is set of Python bindings for the cairo graphics library
13
14long_description \
15    ${description}
16
17homepage        http://cairographics.org/pycairo/
18master_sites    http://cairographics.org/releases/
19distname        ${my_name}-${version}
20
21checksums       md5 2c3aa21e6e610321498f9f81f7b625df \
22                sha1 d3b3ecb6e999cc7b4a6ebcad00ae8d82c253c21c \
23                rmd160 6197427df3d10b708847503f975670e3d02d57e5
24
25depends_build   port:pkgconfig
26depends_lib     port:python25 \
27                port:cairo \
28                port:py25-numpy
29
30configure.python    ${prefix}/bin/python2.5
31
32platform 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
39post-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
46livecheck.check regex
47livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)