# -*- 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.3
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 e1cb59e281ef2958d94e4d9546d67e63 \
                    rmd160 fb8f25832ff026e892cfbe05511b61b5d7e3961f \
                    sha256 07ae9e15e8e4cd9a788013d81f5908b3609aa76f9b1421bae9c4d7606ec86a30

python.versions     27 37 38 39 310 311

if {$subport ne $name} {
    depends_lib     port:py${python.version}-modulegraph
    if {${python.version} >= 36} {
        python.pep517   yes
    } else {
        # needs pkg_resources at runtime
        depends_lib-append  port:py${python.version}-setuptools
    }
    livecheck.type  none
}
