# -*- 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 147775 2016-04-15 19:55:41Z devans@macports.org $ PortSystem 1.0 PortGroup github 1.0 PortGroup cmake 1.0 cmake.out_of_source yes # don't forget to update libgit2-glib as well github.setup libgit2 libgit2 0.24.1 v epoch 1 categories devel platforms darwin maintainers juanrgar devans 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 b3aad037cb7f4e51548eecf7e54b73278d35f14e \ sha256 0dca325abf94b8396beb90ef9307e631bce77be42bacc585324ef40610018867 depends_build-append \ port:pkgconfig depends_lib port:curl \ port:libiconv \ port:libssh2 \ path:lib/libssl.dylib:openssl \ port:zlib patchfiles patch-strnlen-posix.h.diff configure.args-append \ -DTHREADSAFE:BOOL=OFF \ -DUSE_ICONV:BOOL=ON variant threadsafe description {Build with threadsafe option} { configure.args-replace \ -DTHREADSAFE:BOOL=OFF -DTHREADSAFE:BOOL=ON } default_variants +threadsafe livecheck.regex "archive/v(\\d+(?:\\.\\d+)*)${extract.suffix}"