# -*- 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 PortSystem 1.0 PortGroup github 1.0 PortGroup cmake 1.1 PortGroup legacysupport 1.0 # don't forget to update py-pygit2 and libgit2-glib as well github.setup libgit2 libgit2 0.28.3 v revision 1 epoch 1 categories devel platforms darwin maintainers {devans @dbevans} license {GPL-2 Permissive} 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 https://libgit2.org/ checksums rmd160 9ec708b463971f4bc660e14ec35554442751ec48 \ sha256 8b842a961121c2130f23c5de40678b7e3f3979a472cd47029f95a7c3eb735099 \ size 4982304 depends_build-append \ port:pkgconfig depends_lib port:curl \ port:libiconv \ port:libssh2 \ path:lib/libssl.dylib:openssl \ port:zlib 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 # customize regex to avoid release candidates, alpha, beta, etc livecheck.regex "archive/v(\\d+(?:\\.\\d+)*)${extract.suffix}"