# -*- 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

PortSystem          1.0

name                rgm3800py
version             25
categories          comms python
platforms           darwin
supported_archs     noarch
license             GPL-3+
maintainers         nomaintainer

description         Access Royaltek RGM-3800 and compatible GPS datalogger
long_description    \
    With this command line utility you can:\
    * Dump tracks off your RGM-3800 GPS datalogger in NMEA and GPX format.\
    * List tracks with information.\
    * Configure logging format and interval.\
    * Check memory usage.\
    * Erase all tracks.

homepage            https://code.google.com/p/rgm3800py/
master_sites        googlecode
distfiles           rgm3800-rev${version}.py

checksums           md5     28f575cf28d32a00615a2fc8b69f54b0 \
                    sha1    e8cf2f6aad55ea00b5b81a3dca03e18c3859960d \
                    rmd160  d339eeb8a892e3aaf53209483f61cfbc39bd1d64

use_configure       no

extract.mkdir       yes
extract {
    copy ${distpath}/${distfiles} ${worksrcpath}
}

build               {}

destroot {
     xinstall ${worksrcpath}/${distfiles} ${destroot}${prefix}/bin/${name}.py
}

notes "RGM3800 needs a PL2303 USB driver, i.e. http://osx-pl2303.sourceforge.net/"