# -*- 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: Portfile 78158 2011-04-26 13:15:48Z jmr@macports.org $

PortSystem 1.0

name                py26-goocanvas
version             0.14.1
set branch          [join [lrange [split ${version} .] 0 1] .]
description	GooCanvas python bindings
long_description \
	PyGoocanvas are the python bindings for GooCanvas which is a canvas \
	widget for GTK+ that uses the cairo 2D library for drawing.
maintainers         herbiet.net:guillaume-jean
categories	python gnome
platforms	darwin
homepage            http://live.gnome.org/PyGoocanvas
master_sites        gnome:sources/pygoocanvas/${branch}/
use_bzip2	no
distname	pygoocanvas-${version}
checksums       md5     d502dea5c0d2ac71d953895df81c32e8 \
                sha1    ea1e10a24ef15a1d3880552fff6352d8b0621ef5 \
                rmd160  162628947fd6a0d630bd20f9dec570c50fab2d23

depends_build	\
	port:docbook-xml-4.1.2 \
	port:docbook-xsl \
	port:pkgconfig
depends_lib	\
	port:goocanvas \
	port:py26-gtk

patchfiles          patch-configure.diff

set python_prefix  ${frameworks_dir}/Python.framework/Versions/2.6
configure.python ${python_prefix}/bin/python2.6
# needed to find Python pkg-config files
configure.pkg_config_path ${python_prefix}/lib/pkgconfig
