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

name                py-macholib
version             1.16.4
categories-append   devel
license             MIT
maintainers         {jmr @jmroot} openmaintainer
description         Mach-O header analysis and editing
long_description \
    macholib can be used to analyze and edit Mach-O headers, the executable \
    format used by Mac OS X. \
    It is typically used as a dependency analysis tool, and also to rewrite \
    dylib references in Mach-O headers to be @executable_path relative. \
    Though this tool targets a platform specific file format, it is pure \
    python code that is platform and endian independent.

platforms           {darwin any}
supported_archs     noarch

homepage            https://macholib.readthedocs.io/

checksums           md5 ec23806656a517d8201a87426fc1f856 \
                    rmd160 b06fa36ddd819c4347e3f6ba08c015eee087f80c \
                    sha256 f408c93ab2e995cd2c46e34fe328b130404be143469e41bc366c807448979362

python.versions     27 37 38 39 310 311 312 313 314

if {$subport ne $name} {
    depends_lib     port:py${python.version}-modulegraph
    if {${python.version} == 27} {
        # needs pkg_resources at runtime
        depends_lib-append  port:py${python.version}-setuptools
    }
    test.run        yes
    python.test_framework   unittest
    livecheck.type  none
}
