# -*- 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
categories-append python devel
maintainers {elelay @elelay} openmaintainer
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}
checksums md5 d247cf79b46cef7495deb0a76334f81d \
sha1 490693cf601793f50cef1a3c82ba75025497fc00 \
rmd160 52f5b5cc7c01be32525db7a2edc0f3dee41911ef
# Use the python subports feature but notify-python uses make
# rather than setup.py for building since there are compiled libraries.
# So the build procedure must unravel the python PortGroup settings
# and revert to values compatible with a make environment.
if {${name} ne ${subport}} {
depends_lib-append port:libnotify \
port:py${python.version}-pygtk
destroot.cmd ${build.cmd}
destroot.destdir DESTDIR=${destroot}
patchfiles patch-src-pynotifymodule-c.diff \
configure.python ${python.bin}
configure.pkg_config_path ${python.prefix}/lib/pkgconfig
configure.pre_args --prefix=${python.prefix}
livecheck.url ${master_sites}
livecheck.regex "${myname}-(\\d+(?:\\.\\d+)*)${extract.suffix}"