# -*- 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 86377 2011-10-24 23:27:43Z devans@macports.org $

PortSystem 1.0

name            coherence

PortGroup       python 1.0

version         0.6.6.2
revision        2
license         permissive
categories      net multimedia python
maintainers     devans openmaintainer
description     Coherence, a Python UPnP and DLNA media framework
long_description \
                Coherence is a framework written in Python, \
                providing several UPnP MediaServers and MediaRenderers, \
                and enabling your application to participate in digital living networks.

platforms       darwin

supported_archs noarch

homepage        http://coherence.beebits.net/
master_sites    http://coherence.beebits.net/download/
distname        Coherence-${version}

checksums       sha1    c8f3aedf6f393e400b012b9b79a45faf6bc3c809 \
                rmd160  f3cea9a846059723c846cb2254aae73ff1a6a5e9

depends_lib-append \
                port:gst-plugins-base

variant python26 conflicts python27 description {Build for python 2.6} {
        python.version 26
        depends_lib-append \
                port:py26-elementtree \
                port:py26-twisted \
                port:py26-gdata \
                port:py26-feedparser \
                port:py26-axiom \
                port:py26-id3lib
}

variant python27 conflicts python26 description {Build for python 2.7} {
        python.version 27
        depends_lib-append \
                port:py27-elementtree \
                port:py27-twisted \
                port:py27-gdata \
                port:py27-feedparser \
                port:py27-axiom \
                port:py27-id3lib
}

if {![variant_isset python26]} {
    default_variants +python27
}

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