mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
robin-map: new recipe.
This commit is contained in:
54
dev-util/robin-map/robin_map-0.6.2.recipe
Normal file
54
dev-util/robin-map/robin_map-0.6.2.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user