# -*- 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 66109 2010-04-06 04:22:44Z jmr@macports.org $

PortSystem          1.0
PortGroup python26  1.0

name                py26-macholib
version             1.2.1
revision            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
if {[info exists supported_archs]} {
    supported_archs noarch
}

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

depends_lib-append  path:${python.pkgd}/modulegraph/__init__.py:py26-modulegraph

# patch taken from <http://mail.python.org/pipermail/pythonmac-sig/2009-December/021998.html>
patchfiles      macholib-lp64.diff
patch.pre_args  -p1

checksums       md5     7f7f44e62a057d19b92e813fb2f3d05b \
                sha1    bbe56f3b03ee5b431f34fb66cf22993587687ef8 \
                rmd160  fa408bc5f1f3f58c0ff3ab43eb56f644bd6b83fa

livecheck.type  regex
livecheck.url   http://pypi.python.org/pypi/macholib/
livecheck.regex {macholib ([0-9.]+)}
