diff --git a/dev-util/robin-map/robin_map-0.6.2.recipe b/dev-util/robin-map/robin_map-0.6.2.recipe new file mode 100644 index 000000000..e89acf4c1 --- /dev/null +++ b/dev-util/robin-map/robin_map-0.6.2.recipe @@ -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 +}