mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
libfmt, bump version, switch default (#11645)
This commit is contained in:
@@ -2,11 +2,11 @@ SUMMARY="Small, safe and fast formatting library"
|
||||
DESCRIPTION="fmt is an open-source formatting library for C++. It can be used \
|
||||
as a safe and fast alternative to (s)printf and IOStreams."
|
||||
HOMEPAGE="https://github.com/fmtlib/fmt"
|
||||
COPYRIGHT="2012-2022 Victor Zverovich"
|
||||
COPYRIGHT="2012-present Victor Zverovich"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/fmtlib/fmt/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="3d794d3cf67633b34b2771eb9f073bde87e846e0d395d254df7b211ef1ec7346"
|
||||
CHECKSUM_SHA256="d8773cf062cc806d4dd4df658111f15ba7a2c9c65db5084d2491696828b1eb97"
|
||||
SOURCE_FILENAME="fmt-$portVersion.tar.gz"
|
||||
SOURCE_DIR="fmt-$portVersion"
|
||||
|
||||
@@ -42,17 +42,14 @@ BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
"
|
||||
|
||||
defineDebugInfoPackage libfmt$secondaryArchSuffix \
|
||||
"$libDir"/libfmt.so.$portVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -B build -S . \
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DFMT_TEST=OFF \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DFMT_INC_DIR=$includeDir \
|
||||
$cmakeDirArgs -L
|
||||
-DFMT_TEST=OFF
|
||||
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
@@ -72,6 +69,6 @@ INSTALL()
|
||||
|
||||
TEST()
|
||||
{
|
||||
# enable test in BUILD()
|
||||
make -C build test
|
||||
# 86% tests passed, 3 tests failed out of 21
|
||||
ctest --test-dir build --output-on-failure
|
||||
}
|
||||
@@ -2,11 +2,11 @@ SUMMARY="Small, safe and fast formatting library"
|
||||
DESCRIPTION="fmt is an open-source formatting library for C++. It can be used \
|
||||
as a safe and fast alternative to (s)printf and IOStreams."
|
||||
HOMEPAGE="https://github.com/fmtlib/fmt"
|
||||
COPYRIGHT="2012-2022 Victor Zverovich"
|
||||
COPYRIGHT="2012-present Victor Zverovich"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/fmtlib/fmt/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="7d009f7f89ac84c0a83f79ed602463d092fbf66763766a907c97fd02b100f5e9"
|
||||
CHECKSUM_SHA256="3d794d3cf67633b34b2771eb9f073bde87e846e0d395d254df7b211ef1ec7346"
|
||||
SOURCE_FILENAME="fmt-$portVersion.tar.gz"
|
||||
SOURCE_DIR="fmt-$portVersion"
|
||||
|
||||
@@ -17,7 +17,7 @@ libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libfmt11$secondaryArchSuffix = $portVersion
|
||||
libfmt8$secondaryArchSuffix = $portVersion
|
||||
lib:libfmt$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
@@ -25,11 +25,11 @@ REQUIRES="
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libfmt11${secondaryArchSuffix}_devel = $portVersion
|
||||
libfmt8${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libfmt$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libfmt11$secondaryArchSuffix == $portVersion base
|
||||
libfmt8$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
CONFLICTS_devel="
|
||||
libfmt${secondaryArchSuffix}_devel
|
||||
@@ -45,17 +45,14 @@ BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
"
|
||||
|
||||
defineDebugInfoPackage libfmt11$secondaryArchSuffix \
|
||||
"$libDir"/libfmt.so.$portVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -B build -S . \
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DFMT_TEST=ON \
|
||||
-DFMT_INC_DIR=$includeDir
|
||||
-DFMT_INC_DIR=$includeDir \
|
||||
-DFMT_TEST=OFF
|
||||
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
@@ -75,6 +72,5 @@ INSTALL()
|
||||
|
||||
TEST()
|
||||
{
|
||||
# enable test in BUILD()
|
||||
ctest --test-dir build --output-on-failure
|
||||
make -C build test
|
||||
}
|
||||
Reference in New Issue
Block a user