# -*- 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 85522 2011-10-14 05:35:18Z jeremyhu@macports.org $

PortSystem          1.0

name                py26-notify-python
set myname			notify-python
version             0.1.1
revision        2
categories-append   python devel
license             GPL-2
maintainers         elelay
platforms           darwin
description         libnotify python bindings

long_description    libnotify sends desktop notifications\
					to a notification daemon, as defined in\
					the Desktop Notifications spec.\
					These notifications can be used to inform \
					the user about an event or display some form \
					of information without getting in the user's way.\
					python-notify provides the Python bindings for libnotify

homepage            http://www.galago-project.org/
master_sites        http://www.galago-project.org/files/releases/source/${myname}

distname			${myname}-${version}
use_bzip2			yes

checksums          	md5     d247cf79b46cef7495deb0a76334f81d \
                    sha1    490693cf601793f50cef1a3c82ba75025497fc00 \
                    rmd160  52f5b5cc7c01be32525db7a2edc0f3dee41911ef

depends_build       port:pkgconfig
depends_lib         port:libnotify\
                    port:py26-gtk

patchfiles			patch-src-pynotifymodule-c.diff\
					patch-src-pynotify-c.diff
                    
set my_python "${frameworks_dir}/Python.framework/Versions/2.6"

configure.pkg_config_path   ${my_python}/lib/pkgconfig
configure.pre_args	--prefix=${my_python}
    
livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "${myname}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
