spdlog, bump version (#5262)

This commit is contained in:
Schrijvers Luc
2020-09-12 13:17:06 +02:00
committed by GitHub
parent 9fc2226a56
commit 5cc27fa0b7

View File

@@ -21,50 +21,54 @@ Features:
COPYRIGHT="Gabi Melman"
HOMEPAGE="https://github.com/gabime/spdlog"
LICENSE="MIT"
REVISION="2"
REVISION="1"
SOURCE_URI="https://github.com/gabime/spdlog/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="821c85b120ad15d87ca2bc44185fa9091409777c756029125a02f81354072157"
CHECKSUM_SHA256="1e68e9b40cf63bb022a4b18cdc1c9d88eb5d97e4fd64fa981950a9cacf57a4bf"
ARCHITECTURES="x86 x86_64"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
spdlog$secondaryArchSuffix = $portVersion compat >= 1
lib:libspdlog$secondaryArchSuffix = $portVersion compat >= 1
spdlog$secondaryArchSuffix = $portVersion
lib:libspdlog$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libfmt$secondaryArchSuffix
"
PROVIDES_devel="
spdlog${secondaryArchSuffix}_devel = $portVersion compat >= 1
devel:libspdlog$secondaryArchSuffix = $portVersion compat >= 1
spdlog${secondaryArchSuffix}_devel = $portVersion
devel:libspdlog$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
spdlog$secondaryArchSuffix == $portVersion
spdlog$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libfmt$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
mkdir -p build
cd build
mkdir -p build && cd build
cmake .. $cmakeDirArgs \
-DSPDLOG_BUILD_BENCH=no \
-DSPDLOG_BUILD_TESTS=no
-DSPDLOG_BUILD_BENCH=OFF \
-DSPDLOG_BUILD_TESTS=ON \
-DSPDLOG_BUILD_SHARED=ON \
-DSPDLOG_FMT_EXTERNAL=ON
make $jobArgs
}
@@ -73,7 +77,6 @@ INSTALL()
cd build
make install
# prepare develop/lib
prepareInstalledDevelLib libspdlog
fixPkgconfig
@@ -81,11 +84,11 @@ INSTALL()
# devel package
packageEntries devel \
$developDir \
$libDir
$libDir/cmake
}
TEST()
{
cd build
make check
make test
}