# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 56053 2009-08-23 22:46:48Z ryandesign@macports.org $

PortSystem 1.0

name            libspectre
version         0.2.2
description     Libspectre is a small library for rendering PostScript documents.
long_description \
                ${description} \
                It provides a convenient easy to use API for handling and rendering \
                PostScript documents.
maintainers     devans openmaintainer
categories      print
platforms       darwin
homepage        http://libspectre.freedesktop.org/wiki/
master_sites    http://libspectre.freedesktop.org/releases/

checksums       md5     0600653653d9313e3be135b2217ea7fd \
                sha1    d5968d34c4bc93cd280ea35d8db53cf41f811edc \
                rmd160  aca3ec7b9ffb521c4e38cf32a14cb9af07d2f009

depends_build   port:pkgconfig \
                port:doxygen

depends_lib     port:ghostscript \
                path:lib/pkgconfig/cairo.pc:cairo

livecheck.check regex
livecheck.url   ${master_sites}
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
