mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
52 lines
1.2 KiB
Bash
52 lines
1.2 KiB
Bash
SUMMARY="Reference implementation of Dragonbox in C++"
|
|
DESCRIPTION="This library is a reference implementation of Dragonbox in C++.
|
|
|
|
Dragonbox is a float-to-string conversion algorithm based on a beautiful algorithm Schubfach, \
|
|
developed by Raffaello Giulietti in 2017-2018. Dragonbox is further inspired by Grisu and Grisu-Exact."
|
|
HOMEPAGE="https://github.com/jk-jeon/dragonbox"
|
|
COPYRIGHT="2022 Junekey Jeon"
|
|
LICENSE="Apache v2 with LLVM Exception
|
|
Boost v1.0"
|
|
REVISION="1"
|
|
SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="09d63b05e9c594ec423778ab59b7a5aa1d76fdd71d25c7048b0258c4ec9c3384"
|
|
SOURCE_FILENAME="dragonbox-$portVersion.tar.gz"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
dragonbox$secondaryArchSuffix = $portVersion
|
|
devel:libdragonbox$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DDRAGONBOX_INSTALL_TO_CHARS=OFF
|
|
make -Cbuild $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -Cbuild install
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|