libgit2: bump to 0.26.2, add debuginfo. (#2305)

* Add SOURCE_FILENAME.
* "Fix" broken TEST().
This commit is contained in:
fbrosson
2018-03-12 15:40:25 +00:00
committed by GitHub
parent 66a0e87fe5
commit bad16e3a5b

View File

@@ -12,19 +12,23 @@ DESCRIPTION="The library provides:
* 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"
HOMEPAGE="https://libgit2.github.com/"
COPYRIGHT="2005-2018 libgit2 project"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://github.com/libgit2/libgit2/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="6a62393e0ceb37d02fe0d5707713f504e7acac9006ef33da1e88960bd78b6eac"
CHECKSUM_SHA256="747b47d5b02a2387ff81301c694763785181b895690b6eb91ed1ae4b7904307b"
SOURCE_FILENAME="libgit2-$portVersion.tar.gz"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
PROVIDES="
libgit2$secondaryArchSuffix = $portVersion
lib:libgit2$secondaryArchSuffix = 0.26.0 compat >= 0.26
lib:libgit2$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -36,7 +40,7 @@ REQUIRES="
PROVIDES_devel="
libgit2${secondaryArchSuffix}_devel = $portVersion
devel:libgit2$secondaryArchSuffix = 0.26.0 compat >= 0.26
devel:libgit2$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libgit2$secondaryArchSuffix == $portVersion base
@@ -58,6 +62,9 @@ BUILD_PREREQUIRES="
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage libgit2$secondaryArchSuffix \
"$libDir"/libgit2.so.$libVersion
BUILD()
{
mkdir -p build && cd build
@@ -86,6 +93,6 @@ INSTALL()
TEST()
{
cd build
make check
# See tests/README.md
true
}