Skip to content

Commit

Permalink
[tsl-hopscotch-map] Add new port. (microsoft#5233)
Browse files Browse the repository at this point in the history
* [tsl-hopscotch-map] Add new port.

* Use PORT variable instead of hard coded tsl-hopscotch-map.
  • Loading branch information
Tessil authored and Codiferous committed Jan 27, 2019
1 parent 7ec4586 commit b3a4505
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ports/tsl-hopscotch-map/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Source: tsl-hopscotch-map
Version: 2.2.0
Description: C++ implementation of a fast hash map and hash set using hopscotch hashing
21 changes: 21 additions & 0 deletions ports/tsl-hopscotch-map/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Tessil/hopscotch-map
REF v2.2.0
SHA512 a3cd0fe47ff16de6d556c24e0bd96e420c1f06f2e44388e4f223fd8cf30a6cf0af20ade46af46f8cb5bbfd86a0fce2ca65658999cc2c14f4998d949f12afff2f
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
)

vcpkg_install_cmake()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)

file(INSTALL ${SOURCE_PATH}/LICENSE
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
RENAME copyright
)

0 comments on commit b3a4505

Please sign in to comment.