# -*- 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 1.0.13
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  7233a52ae43b1fec4bc0ddaa3da2191c192fadee \
                    sha256  d9a68a1358bbfe73957bdad48a844272d98840935bcd9ae1ae71dac07183f0ce

python.versions     26 27 33 34

if {${name} ne ${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}]
"
}