From 651dbea97131ba5412fdb19c5644c55b5e0cd31c Mon Sep 17 00:00:00 2001 From: miqlas Date: Sat, 14 Jan 2017 19:08:14 +0100 Subject: [PATCH] LibGIT2 Haiku recipe (#752) * LibGIT2 Haiku recipe Recipe fix Recipe fix, sorry, my BeFS went corrupted. Whitespace fix Fixed description Fixed recipe Fix * libgit2: bump version * Fixed reqs. --- dev-libs/libgit2/libgit2-0.25.1.recipe | 91 ++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 dev-libs/libgit2/libgit2-0.25.1.recipe diff --git a/dev-libs/libgit2/libgit2-0.25.1.recipe b/dev-libs/libgit2/libgit2-0.25.1.recipe new file mode 100644 index 000000000..f165eedc9 --- /dev/null +++ b/dev-libs/libgit2/libgit2-0.25.1.recipe @@ -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="7ae8e699ff7ff9a1fa702249140ee31ea6fd556bf7968e84e38165870667bcb1" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + libgit2$secondaryArchSuffix = $portVersion + lib:libgit2$secondaryArchSuffix = 0.24.0 compat >= 0 + " +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.24.0 compat >= 0 + " +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 +}