# -*- 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 107558 2013-07-03 00:39:21Z sean@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-dulwich
version             0.9.0
categories-append   devel
maintainers         yahoo.com.au:mail_ben_schmidt openmaintainer
description         Pure-Python Git Library
long_description    Simple Pure-Python implementation of the Git file \
                    formats and protocols. Dulwich is the place where \
                    Mr. and Mrs. Git live in one of the Monty Python sketches.
homepage            http://samba.org/~jelmer/dulwich/
platforms           darwin
master_sites        ${homepage}
license             GPL-2+
distname            dulwich-${version}

checksums           rmd160  012c989680d7bc2ae39e1a5ad53205a07f68ce4c \
                    sha256  bc6df3634216d01064d86c0bad8b39f26802dbfe37d34f1b0edf8a60c4ca8f25

python.versions     26 27

if {$subport != $name} {
    patchfiles      patch-strnlen-lion.diff

    build.target-append build_ext
    build.args          --inplace

    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.regex dulwich-(\[0-9.\]+)${extract.suffix}
}
