Skip to content

Getty/p5-alien-libgit2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alien::Libgit2

Find or build libgit2, the linkable Git library.

Synopsis

use Alien::Libgit2;

# For XS consumers
my $cflags = Alien::Libgit2->cflags;
my $libs   = Alien::Libgit2->libs;

# For FFI consumers (FFI::Platypus, Git::Libgit2)
my @libs = Alien::Libgit2->dynamic_libs;

Description

Alien::Libgit2 provides the C library libgit2 for use by other CPAN modules that need to link against it.

It first checks whether a system libgit2 (>= 1.5) is available via pkg-config. If not, it builds libgit2 from a bundled source tarball using CMake. No network access is required during install.

Installation

cpanm Alien::Libgit2

Requires a libgit2 shared library (>= 1.5). If pkg-config libgit2 is not found, the module builds from the bundled libgit2-1.9.3 tarball using CMake.

Build dependencies (share install)

  • cmake
  • C compiler
  • pkg-config
  • OpenSSL headers (HTTPS backend)
  • libssh2 headers (SSH transport)

Used by

  • Git::Libgit2 — low-level FFI::Platypus bindings against libgit2
  • Git::Native — high-level Moo wrapper on top of Git::Libgit2

See also

License

This software is copyright (c) 2026 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages