# -*- 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 80884 2011-07-20 05:09:16Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           cmake 1.0

name                libgit2
version             0.14.0
categories          devel
platforms           darwin
maintainers         nomaintainer
license             GPL-2

description         A portable, pure C implementation of the Git core methods

long_description    libgit2 is a portable, pure C implementation of the \
                    Git core methods provided as a re-entrant linkable \
                    library with a solid API, allowing you to write native \
                    speed custom Git applications in any language which \
                    supports C bindings.

homepage            http://libgit2.github.com/
master_sites        https://github.com/libgit2/libgit2/downloads

checksums           sha1    573fdd964fa2342a2e7205aaacf9880b5341ca13 \
                    rmd160  2cd8f01f920f51fbb2180b2b75d8e1f0d9eb4985

depends_lib         port:zlib

post-extract {
    file mkdir ${workpath}/build
}

configure.post_args ../${distname}
configure.dir       ${workpath}/build
build.dir           ${workpath}/build

livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\\d+\\.\\d+(\\.\\d+)+)
