# -*- 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
PortGroup           github 1.0
PortGroup           python 1.0

github.setup        snare voltron 0.1.7 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
categories          devel python
license             MIT
maintainers         nomaintainer

description         A debugger UI
long_description    Voltron is an extensible debugger UI toolkit written in \
                    Python. It aims to improve the user experience of various \
                    debuggers by enabling the attachment of utility views that \
                    can retrieve and display data from the debugger host. By \
                    running these views in other TTYs, you can build \
                    a customised debugger user interface to suit your needs.

checksums           rmd160  2ab053d2fc79bc1740f910a2cd707083758a9265 \
                    sha256  202e9ed2c9517671ef794d7946e369f887528ae07262f2ee8ff3c0ae93fe7628

python.default_version 27

depends_build-append port:py${python.version}-setuptools
depends_lib-append   port:py${python.version}-scruffington \
                     port:py${python.version}-flask \
                     port:py${python.version}-flask-restful \
                     port:py${python.version}-blessed \
                     port:py${python.version}-pygments \
                     port:py${python.version}-requests \
                     port:py${python.version}-requests-unixsocket

post-destroot {
    xinstall -d -m 755 ${destroot}${prefix}/libexec/voltron
    ln -s ${python.pkgd}/voltron/entry.py ${destroot}${prefix}/libexec/voltron/entry.py
}

notes "
    To use voltron, you should also install gdb +python27 and configure your .gdbinit to load voltron automatically:
        source ${prefix}/libexec/voltron/entry.py
        voltron init
        set disassembly-flavor intel

    See the upstream documentation for details:
        https://github.com/snare/voltron#quick-start
"
