# -*- 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 117341 2014-02-23 02:39:41Z devans@macports.org $

PortSystem          1.0
PortGroup           github 1.0
PortGroup           cmake 1.0

github.setup        libgit2 libgit2 0.20.0 v
categories          devel
platforms           darwin
maintainers         gmail.com:juanrgar openmaintainer
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/

checksums           rmd160  15d2635326274d1f6acefcb674a51506f8e319d8 \
                    sha256  7251daf92958b7f3e59e90a989542d6ef05b1c1d9acade0632fc2becd067d6c7

depends_lib         port:libiconv \
                    port:libssh2 \
                    port:openssl \
                    port:zlib

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

patchfiles          patch-strnlen-posix.h.diff

post-extract {
    file mkdir ${configure.dir}
}

configure.post_args ../${distname}
