# -*- 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
PortGroup legacysupport 1.0
# don't forget to update py-pygit2 and libgit2-glib as well
github.setup libgit2 libgit2 0.28.3 v
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 \
homepage https://libgit2.org/
checksums rmd160 9ec708b463971f4bc660e14ec35554442751ec48 \
sha256 8b842a961121c2130f23c5de40678b7e3f3979a472cd47029f95a7c3eb735099 \
path:lib/libssl.dylib:openssl \
variant threadsafe description {Build with threadsafe option} {
-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}"