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

github.setup        py4n6 pytsk 20150111
revision            0
platform darwin 20 {
    revision        1
}
name                py-tsk
categories-append   security
platforms           darwin
maintainers         nomaintainer
license             Apache-2

python.versions     27

description         Python binding for the SleuthKit
long_description    ${description}

## https://github.com/py4n6/pytsk/wiki/Building
distname            pytsk-${version}
extract.suffix      .tgz

checksums           rmd160  ae38d154d53a97e12520357ec295e32426834e6c \
                    sha256  73e5b811611ac57fc8081c67f9f011c5fee23e85d2ee07a0de2ea5d91ff22dc0

depends_lib-append  port:sleuthkit \
                    port:talloc

patchfiles          patch-setup_py.diff patch-misc.h.diff

build.env           TSK_HEADERS_PATH=${prefix}/include
destroot.env        TSK_HEADERS_PATH=${prefix}/include

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     pytsk-(\[0-9.\]+)${extract.suffix}
