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 Thibaut Goetghebuer-Planchon"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/Tessil/robin-map/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="e6654c8c2598f63eb0b1d52ff8bdf39cfcc91d81dd5d05274a6dca91241cd72f"
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
}
