diff options
| author | myd7349 <myd7349@gmail.com> | 2021-09-10 12:11:53 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-09 21:11:53 -0700 |
| commit | f0679e2444508d2f0ac148e9405b45b5c343e4d4 (patch) | |
| tree | 285d9566a139b824f57ca78a51c6ac0af507fc44 | |
| parent | a07c1574afbba7d51eab514f62974d49bcb7dbe6 (diff) | |
| download | vcpkg-f0679e2444508d2f0ac148e9405b45b5c343e4d4.tar.gz vcpkg-f0679e2444508d2f0ac148e9405b45b5c343e4d4.zip | |
[uthash] Add new port (#19823)
* [uthash] Add new port
* [uthash] Version stuffs
| -rw-r--r-- | ports/uthash/portfile.cmake | 13 | ||||
| -rw-r--r-- | ports/uthash/vcpkg.json | 7 | ||||
| -rw-r--r-- | versions/baseline.json | 4 | ||||
| -rw-r--r-- | versions/u-/uthash.json | 9 |
4 files changed, 33 insertions, 0 deletions
diff --git a/ports/uthash/portfile.cmake b/ports/uthash/portfile.cmake new file mode 100644 index 000000000..c84a29b38 --- /dev/null +++ b/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/ports/uthash/vcpkg.json b/ports/uthash/vcpkg.json new file mode 100644 index 000000000..46e36906e --- /dev/null +++ b/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" +} diff --git a/versions/baseline.json b/versions/baseline.json index 5ad0793bd..623227de8 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6640,6 +6640,10 @@ "baseline": "1.2", "port-version": 2 }, + "uthash": { + "baseline": "2.3.0", + "port-version": 0 + }, "uthenticode": { "baseline": "1.0.4", "port-version": 1 diff --git a/versions/u-/uthash.json b/versions/u-/uthash.json new file mode 100644 index 000000000..c3e86b129 --- /dev/null +++ b/versions/u-/uthash.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "031c9a8367a7683fb4cd9b022ebcf504a53a0bfd", + "version-semver": "2.3.0", + "port-version": 0 + } + ] +} |
