# -*- 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        gdabah distorm 3.5 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            1
name                py-distorm
categories-append   devel
maintainers         {khindenburg @kurthindenburg} openmaintainer
license             GPL-3

description         powerful disassembler library for x86/AMD64

long_description \
    diStorm3 is really a decomposer, which means it takes an instruction \
    and returns a binary structure which describes it rather than static \
    text, which is great for advanced binary code analysis.

checksums           rmd160  89c26b9d980566330c470a0bb3aa7ef3f38ff10b \
                    sha256  d79110e81295f1bcff7c99563916b7ef273bebb52e9aeefa5cf36e30b237cd9a \
                    size    491621

python.versions     27 312

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools

    depends_test-append port:yasm

    test.run            yes
    python.test_framework
    test.cmd            ${python.bin} python/test_distorm3.py
}
