0
0
Fork 0
haikuports/dev-libs/libgit2/libgit2_25-0.25.1.recipe

93 lines
2.2 KiB
Bash

SUMMARY="A portable, pure C implementation of the Git core methods"
DESCRIPTION="The library provides:
* SHA conversions, formatting and shortening
* abstracted ODB backend system
* commit, tag, tree and blob parsing, editing, and write-back
* tree traversal
* revision walking
* index file (staging area) manipulation
* reference management (including packed references)
* config file management
* high level repository management
* thread safety and reentrancy
* descriptive and detailed error messages
* ...and more (over 175 different API calls)"
HOMEPAGE="http://libgit2.github.com/"
COPYRIGHT="2005-2017 libgit2 project"
LICENSE="GNU LGPL v2"
REVISION="3"
SOURCE_URI="https://github.com/libgit2/libgit2/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="465c7c0a3d9b3edf151d4ada31597f2805b7c2e80b92c03062a6345e03ef8c7b"
SOURCE_DIR="libgit2-$portVersion"
ARCHITECTURES="all !x86_gcc2 ?x86"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
libgit2_25$secondaryArchSuffix = $portVersion
lib:libgit2$secondaryArchSuffix = 0.25.1 compat >= 0.25
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libssh2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
libgit2_25${secondaryArchSuffix}_devel = $portVersion
devel:libgit2$secondaryArchSuffix = 0.25.1 compat >= 0.25
"
REQUIRES_devel="
libgit2_25$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix
devel:libcurl$secondaryArchSuffix
devel:libssh2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:curl_config$secondaryArchSuffix
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
mkdir -p build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX:PATH=$prefix \
-DBIN_INSTALL_DIR:PATH=$binDir \
-DINCLUDE_INSTALL_DIR:PATH=$includeDir \
-DLIB_INSTALL_DIR:PATH=$libDir \
-DBUILD_CLAR=OFF \
-DBUILD_EXAMPLES=OFF
make $jobArgs
}
INSTALL()
{
cd build
make install
prepareInstalledDevelLib libgit2
fixPkgconfig
packageEntries devel $developDir
}
TEST()
{
cd build
make check
}