# -*- 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 86378 2011-10-24 23:32:21Z devans@macports.org $

PortSystem 1.0

name            upnp-inspector

PortGroup       python 1.0

version         0.2.2
revision        1
license         permissive
categories      net multimedia python
maintainers     devans openmaintainer

supported_archs noarch

description     UPnP-Inspector is an UPnP Device and Service analyzer, \
                based on the Coherence DLNA/UPnP framework.
long_description ${description}

platforms       darwin
homepage        http://coherence.beebits.net/wiki/UPnP-Inspector
master_sites    http://coherence.beebits.net/download/
distname        UPnP-Inspector-${version}

checksums       sha1    4885b612b98d3272d3ccb6b7539384ea5895d41c \
                rmd160  effc60387a78b62234665f91f638c602e6a823a6

variant python26 conflicts python27 description {Build for Python 2.6} {
        python.version 26
        depends_lib-append \
                port:py26-gtk \
                port:coherence
}

variant python27 conflicts python26 description {Build for Python 2.7} {
        python.version 27
        depends_lib-append \
                port:py27-gtk \
                port:coherence
}

if {![variant_isset python26]} {
        default_variants +python27
}
 
livecheck.type  regex
livecheck.url   [lindex ${master_sites} 0]
livecheck.regex "(?i)${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
