mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
libgit2: add recipe for version 0.26.0.
* keep a compatibility recipe for 0.25.
This commit is contained in:
91
dev-libs/libgit2/libgit2-0.26.0.recipe
Normal file
91
dev-libs/libgit2/libgit2-0.26.0.recipe
Normal file
@@ -0,0 +1,91 @@
|
||||
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="1"
|
||||
SOURCE_URI="https://github.com/libgit2/libgit2/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="6a62393e0ceb37d02fe0d5707713f504e7acac9006ef33da1e88960bd78b6eac"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
libgit2$secondaryArchSuffix = $portVersion
|
||||
lib:libgit2$secondaryArchSuffix = 0.26.0 compat >= 0.26
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libcurl$secondaryArchSuffix
|
||||
lib:libssh2$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libgit2${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libgit2$secondaryArchSuffix = 0.26.0 compat >= 0.26
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libgit2$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
|
||||
}
|
||||
92
dev-libs/libgit2/libgit2_25-0.25.1.recipe
Normal file
92
dev-libs/libgit2/libgit2_25-0.25.1.recipe
Normal file
@@ -0,0 +1,92 @@
|
||||
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="1"
|
||||
SOURCE_URI="https://github.com/libgit2/libgit2/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="465c7c0a3d9b3edf151d4ada31597f2805b7c2e80b92c03062a6345e03ef8c7b"
|
||||
SOURCE_DIR="libgit2-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user