source: trunk/dports/python/py27-cairo/Portfile @ 97358

Last change on this file since 97358 was 97335, checked in by ryandesign@…, 7 years ago

py*-cairo: add libpng dependency; increase revision for libpng 1.5

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
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 97335 2012-09-04 06:07:50Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            py27-cairo
7set my_name     py2cairo
8version         1.8.10
9revision        2
10categories      python x11
11license         {LGPL-2.1 MPL-1.1}
12platforms       darwin
13maintainers     nomaintainer
14description     Pycairo is set of Python bindings for the cairo graphics library
15
16long_description \
17    ${description}
18
19homepage        http://cairographics.org/pycairo/
20master_sites    http://cairographics.org/releases/
21distname        ${my_name}-${version}
22worksrcdir         pycairo-${version}
23
24checksums           md5     87421a6a70304120555ba7ba238f3dc3 \
25                    sha1    6bb0b3e0249bce9fc0480aadad0c602d32f26ec1 \
26                    rmd160  932e19f2f582bdf5735bdc92720b76edfb0a0c8e
27
28depends_build   port:pkgconfig
29depends_lib     port:python27 \
30                path:lib/pkgconfig/cairo.pc:cairo \
31                port:libpng
32
33# depends_test
34depends_build-append port:py27-numpy
35
36configure.python    ${prefix}/bin/python2.7
37
38set python_prefix  ${frameworks_dir}/Python.framework/Versions/2.7
39configure.pre_args-delete  --prefix=${prefix}
40configure.pre_args-append  --prefix=${python_prefix}
41configure.args-append      --includedir=${python_prefix}/include/python2.7
42
43platform darwin 9 {
44    post-patch {
45        reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/src/Makefile.in
46    }
47}
48
49post-destroot {
50    set docdir ${prefix}/share/doc/${name}
51    xinstall -d -m 0755 ${destroot}${docdir}
52    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING NEWS README \
53        ${destroot}${docdir}
54}
55
56depends_build-append port:py27-py
57test.run         yes
58test.cmd         "cd test && py.test-2.7"
59test.target     
60
61livecheck.type   regex
62livecheck.url    http://cairographics.org/releases/
63livecheck.regex "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.