folly/build/fbcode_builder/manifests/libgit2

[manifest]
name = libgit2

[homebrew]
libgit2

[rpms]
libgit2-devel

[pps]
libgit2

# Ubuntu 18.04 libgit2 has clash with libcurl4-openssl-dev as it depends on
# libcurl4-gnutls-dev.  Should be ok from 20.04 again
# There is a description at https://github.com/r-hub/sysreqsdb/issues/77
[debs.not(all(distro=ubuntu,distro_vers="18.04"))]
libgit2-dev

[download]
url = https://github.com/libgit2/libgit2/archive/v0.28.1.tar.gz
sha256 = 0ca11048795b0d6338f2e57717370208c2c97ad66c6d5eac0c97a8827d13936b

[build]
builder = cmake
subdir = libgit2-0.28.1

[cmake.defines]
# Could turn this on if we also wanted to add a manifest for libssh2
USE_SSH = OFF
BUILD_CLAR = OFF
# Have to build shared to work around annoying problems with cmake
# mis-parsing the frameworks required to link this on macos :-/
BUILD_SHARED_LIBS = ON