# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0
PortGroup           github 1.0

github.setup        Kozea CairoSVG 0.5
name                py-cairosvg

categories-append   graphics
license             LGPL-3+
platforms           darwin
supported_archs     noarch
maintainers         sean openmaintainer

description         SVG converter based on Cairo

long_description    CairoSVG is a SVG converter based on Cairo. It can export SVG \
                    files to PDF, PostScript and PNG files.

checksums           rmd160  d7a1049f37fff2b0d7b75e2d06dfbeb517baf7b5 \
                    sha256  24d935e04c1f22d64206b13fd07aec097ddd63a09ad8168b5d3dfa048f2e77fa

python.versions     26 27 31 32 33

if {${name} != ${subport}} {
    depends_lib-append  port:py${python.version}-cairo

    depends_run         port:py-cairosvg_select

    select.group        py-cairosvg
    select.file         ${filespath}/py${python.version}-cairosvg

    livecheck.type      none

    notes "
To make the Python ${python.branch} version of py-cairosvg the one that is run\
when you execute the commands without a version suffix, e.g. 'cairosvg', run:

port select --set ${select.group} [file tail ${select.file}]
"
}
