# -*- 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 104097 2013-03-15 22:08:22Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           github 1.0
PortGroup           cmake 1.0

github.setup        libgit2 libgit2 0.17.0 v
github.tarball_from downloads
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/

checksums           rmd160  2a8a83fc17d4d71792f34d63654a09c3b35efe9e \
                    sha256  068eed0b8fe852a7cc55aae46d2299e9c9e3e00badc1c293d72a9dd122226018

depends_lib         port:zlib

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

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