[stduuid] Adding new port stduuid (#16382)

* [stduuid] Adding new port stduuid

* [stduuid] Making changes requested in pull request #16382.

* [stduuid] Changes from vcpkg x-add-version

* Update versions/s-/stduuid.json

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* Update ports/stduuid/portfile.cmake

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* [stduuid] Changes from .\vcpkg.exe x-add-version stduuid --overwrite-version.

* [stduuid] Changes requested from https://github.com/microsoft/vcpkg/pull/16382.

* [stduuid] Adding changes requested during PR.

* [stduuid] Updating version.

Co-authored-by: David McCloskey <davmcclo@gmail.com>
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
This commit is contained in:
dave-juicelabs 2021-09-13 23:33:09 -04:00 committed by GitHub
parent 9a23c096c5
commit e201002b4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,30 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mariusbancila/stduuid
REF 5890c94bfac2f00f22a1c1481e5839c51d6a6f3f
SHA512 82c5dc652c5c7cf0a51d4ec5d61203df1f55498d31b1a1812603391a09c95908d2cb3db396bd2e28c9ed42913cbc4c66b514fb5381bafdf50f6e32cbf545c3b9
HEAD_REF master
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
test UUID_BUILD_TESTS
system-gen UUID_SYSTEM_GENERATOR
cxx20-span UUID_USING_CXX20_SPAN
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

28
ports/stduuid/vcpkg.json Normal file
View File

@ -0,0 +1,28 @@
{
"name": "stduuid",
"version-date": "2021-08-30",
"description": "A C++17 cross-platform single-header library implementation for universally unique identifiers, simply know as either UUID or GUID (mostly on Windows)",
"homepage": "https://github.com/mariusbancila/stduuid",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"cxx20-span": {
"description": "Using span from std instead of gsl"
},
"system-gen": {
"description": "Enable operating system uuid generator"
},
"test": {
"description": "Build the unit tests"
}
}
}

View File

@ -6228,6 +6228,10 @@
"baseline": "2020-09-14",
"port-version": 1
},
"stduuid": {
"baseline": "2021-08-30",
"port-version": 0
},
"stlab": {
"baseline": "1.6.2",
"port-version": 1

9
versions/s-/stduuid.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "012e2fe37e183a722bedb2e469fb08daa3864f52",
"version-date": "2021-08-30",
"port-version": 0
}
]
}