# -*- 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

PortSystem      1.0

name            goocanvas
version         1.0.0
revision        2
set branch      [join [lrange [split ${version} .] 0 1] .]
description     A Cairo Canvas Widget for GTK+ version 2
long_description \
                GooCanvas is a canvas widget for GTK+ version 2 that uses the cairo 2D library \
                for drawing.
maintainers     nomaintainer
categories      gnome
license         LGPL
platforms       darwin
homepage        https://wiki.gnome.org/Projects/GooCanvas
master_sites    gnome:sources/${name}/${branch}/

use_bzip2       yes

checksums       rmd160  c55c6c037207fcef409d7a8d3ea83e4acef54e69 \
                sha256  1c072ef88567cad241fb4addee26e9bd96741b1503ff736d1c152fa6d865711e

set port_ver_major  [lindex [split ${version} .] 0]

depends_build   port:pkgconfig \
                port:gettext

depends_lib     path:lib/pkgconfig/gtk+-2.0.pc:gtk2

livecheck.type  gnome
livecheck.regex "LATEST-IS-(${port_ver_major}\\.\[02468\](?:\\.\\d+)*)"
