aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave-juicelabs <70105130+dave-juicelabs@users.noreply.github.com>2021-09-13 23:33:09 -0400
committerGitHub <noreply@github.com>2021-09-13 20:33:09 -0700
commite201002b4f4827d7b7b672f0c5c672a77fc3b77d (patch)
tree8bb30f30974dd7b6c91f8ede87f2baa213ccb1a4
parent9a23c096c57479523765f9c6ca9d24e3241d276f (diff)
downloadvcpkg-e201002b4f4827d7b7b672f0c5c672a77fc3b77d.tar.gz
vcpkg-e201002b4f4827d7b7b672f0c5c672a77fc3b77d.zip
[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>
-rw-r--r--ports/stduuid/portfile.cmake30
-rw-r--r--ports/stduuid/vcpkg.json28
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/s-/stduuid.json9
4 files changed, 71 insertions, 0 deletions
diff --git a/ports/stduuid/portfile.cmake b/ports/stduuid/portfile.cmake
new file mode 100644
index 000000000..ca21c5f9f
--- /dev/null
+++ b/ports/stduuid/portfile.cmake
@@ -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)
diff --git a/ports/stduuid/vcpkg.json b/ports/stduuid/vcpkg.json
new file mode 100644
index 000000000..3646fbd87
--- /dev/null
+++ b/ports/stduuid/vcpkg.json
@@ -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"
+ }
+ }
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index 16508a0ac..03050a42d 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -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
diff --git a/versions/s-/stduuid.json b/versions/s-/stduuid.json
new file mode 100644
index 000000000..430b96954
--- /dev/null
+++ b/versions/s-/stduuid.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "012e2fe37e183a722bedb2e469fb08daa3864f52",
+ "version-date": "2021-08-30",
+ "port-version": 0
+ }
+ ]
+}