aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/uthash
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/uthash')
-rw-r--r--vcpkg/ports/uthash/portfile.cmake13
-rw-r--r--vcpkg/ports/uthash/vcpkg.json7
2 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/uthash/portfile.cmake b/vcpkg/ports/uthash/portfile.cmake
new file mode 100644
index 0000000..c84a29b
--- /dev/null
+++ b/vcpkg/ports/uthash/portfile.cmake
@@ -0,0 +1,13 @@
+# Header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO troydhanson/uthash
+ REF e493aa90a2833b4655927598f169c31cfcdf7861
+ SHA512 a4a2cdee11b238f57bdc3104eee1b3d2014359b65ada896dd26c7f21dda13921f63b44d3d0e7b6fa03731f64b4b4013861d0a49df8b54d7e3726454cbfebaa39
+ HEAD_REF master
+)
+
+file(GLOB uthash_PUBLIC_HEADERS ${SOURCE_PATH}/src/*.h)
+file(INSTALL ${uthash_PUBLIC_HEADERS} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/uthash/vcpkg.json b/vcpkg/ports/uthash/vcpkg.json
new file mode 100644
index 0000000..46e3690
--- /dev/null
+++ b/vcpkg/ports/uthash/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "uthash",
+ "version-semver": "2.3.0",
+ "description": "C macros for hash tables and more.",
+ "homepage": "https://troydhanson.github.io/uthash/",
+ "license": "BSD-1-Clause"
+}