# -*- 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 87805 2011-12-07 02:39:16Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-macholib
version             1.4.3
categories-append   devel
license             MIT
maintainers         jmr 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
supported_archs     noarch

homepage            http://undefined.org/python/#macholib
master_sites        http://pypi.python.org/packages/source/m/macholib/
distname            macholib-${version}

checksums           md5 308d478df389d525ce1a9113883a4f1c \
                    sha256 9a4b871efc4cdd0cdb5d71ef572df347690af7c0e3587c3b9db30d74d91033f5

python.versions     24 25 26 27

if {$subport != $name} {
    depends_lib     port:py${python.version}-modulegraph
    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   http://pypi.python.org/pypi/macholib/
    livecheck.regex {macholib ([0-9.]+)}
}
