# -*- 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 120227 2014-05-19 22:04:45Z mf2k@macports.org $

PortSystem          1.0

PortGroup           python 1.0

name                py-hachoir-urwid
version             1.1
categories          python
platforms           darwin
license             GPL-2
maintainers         nomaintainer

description         Binary file explorer using Hachoir and urwid libraries
long_description    hachoir-urwid is a binary file explorer based on Hachoir library to parse the \
                    files. Using this tool you can exactly know the meaning of each bit/byte of \
                    your files. With direction keys, you can navigate in the field tree. The \
                    key h will disable human display and switch to raw display. It is sometime \
                    useful when you would like to compare hexadecimal data and Hachoir reprensentation.

homepage            http://pypi.python.org/pypi/hachoir-urwid/${version}
master_sites        http://pypi.python.org/packages/source/h/hachoir-urwid/
distname            hachoir-urwid-${version}

checksums           rmd160  63964024d1b52bd3d485f493aae81ef57897406d \
                    sha256  95161ccc0708818958e974fde4d395ddf181cc05e92839e2c6aff1a8cac40681

python.versions     24 25 26 27
python.default_version  27

if {${name} ne ${subport}} {
    depends_lib         port:py${python.version}-hachoir-core \
                        port:py${python.version}-hachoir-parser \
                        port:py${python.version}-urwid

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       http://pypi.python.org/packages/source/h/hachoir-urwid/
    livecheck.regex     {hachoir-urwid-(\d+(?:\.\d+)*)\.tar\.gz}
}
