# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
# $Id: Portfile 116997 2014-02-12 08:15:41Z g5pw@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-swap
version             0.1.2
categories-append   devel
platforms           darwin
maintainers         g5pw openmaintainer
description         A Python library to communicate with SWAP networks through a panStamp.
long_description    ${description}

homepage            http://www.panstamp.com/

python.versions     25 26 27 31 32 33 34

if {${name} ne ${subport}} {

    fetch.type          svn
    svn.url             http://panstamp.googlecode.com/svn/trunk/python/pyswap
    svn.revision        714


    depends_lib	    port:py${python.version}-serial
    
    worksrcdir      pyswap/src
    
    post-destroot   {
        file mkdir ${destroot}${prefix}/share/doc/${subport}/html
        eval copy [glob ${worksrcpath}/../doc/*] ${destroot}${prefix}/share/doc/${subport}/html
        xinstall -m 644 -W ${worksrcpath} readme.py ${destroot}${prefix}/share/doc/${subport}
    }

}

livecheck.type  none
