robin_map-0.6.2.recipe revision 644cd6af
1SUMMARY="C++ fast hash map and hash set using robin hood hashing"
2DESCRIPTION="The robin-map library is a C++ implementation of a fast hash map \
3and hash set using open-addressing and linear robin hood hashing with backward\
4 shift deletion to resolve collisions."
5HOMEPAGE="https://github.com/Tessil/robin-map"
6COPYRIGHT="2017 Tessil"
7LICENSE="MIT"
8REVISION="1"
9SOURCE_URI="https://github.com/Tessil/robin-map/archive/v$portVersion.tar.gz"
10CHECKSUM_SHA256="c08ec4b1bf1c85eb0d6432244a6a89862229da1cb834f3f90fba8dc35d8c8ef1"
11SOURCE_DIR="robin-map-$portVersion"
12
13ARCHITECTURES="any"
14
15PROVIDES="
16	robin_map = $portVersion
17	devel:robin_map = $portVersion
18	"
19REQUIRES="
20	haiku
21	"
22
23BUILD_REQUIRES="
24	haiku_devel
25	"
26BUILD_PREREQUIRES="
27	cmd:cmake
28	cmd:gcc
29	cmd:make
30	"
31TEST_REQUIRES="
32	devel:libboost_unit_test_framework
33	"
34
35BUILD()
36{
37	cmake . $cmakeDirArgs
38	make $jobArgs
39}
40
41INSTALL()
42{
43	make install
44}
45
46TEST()
47{
48	cd tests
49	rm -rf build
50	mkdir build && cd build
51	cmake ..
52	cmake --build .
53	./tsl_robin_map_tests
54}
55