robin-map: new recipe.

This commit is contained in:
Jerome Duval
2019-11-06 21:17:26 +01:00
parent 1ba89dcd6c
commit 644cd6af4f

View File

@@ -0,0 +1,54 @@
SUMMARY="C++ fast hash map and hash set using robin hood hashing"
DESCRIPTION="The robin-map library is a C++ implementation of a fast hash map \
and hash set using open-addressing and linear robin hood hashing with backward\
shift deletion to resolve collisions."
HOMEPAGE="https://github.com/Tessil/robin-map"
COPYRIGHT="2017 Tessil"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/Tessil/robin-map/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="c08ec4b1bf1c85eb0d6432244a6a89862229da1cb834f3f90fba8dc35d8c8ef1"
SOURCE_DIR="robin-map-$portVersion"
ARCHITECTURES="any"
PROVIDES="
robin_map = $portVersion
devel:robin_map = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc
cmd:make
"
TEST_REQUIRES="
devel:libboost_unit_test_framework
"
BUILD()
{
cmake . $cmakeDirArgs
make $jobArgs
}
INSTALL()
{
make install
}
TEST()
{
cd tests
rm -rf build
mkdir build && cd build
cmake ..
cmake --build .
./tsl_robin_map_tests
}