aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2021-08-09 23:59:40 +0800
committerGitHub <noreply@github.com>2021-08-09 08:59:40 -0700
commit3d4c4cbdc7b4e86b3a9c846d303591b6033edd96 (patch)
tree7390321954f3b0479b24df74900bdcea70c119eb
parent8aa1541d793e159454d4fd2884924bbb3484db47 (diff)
downloadvcpkg-3d4c4cbdc7b4e86b3a9c846d303591b6033edd96.tar.gz
vcpkg-3d4c4cbdc7b4e86b3a9c846d303591b6033edd96.zip
[value-ptr-lite] Fix usage (#19457)
* [value-ptr-lite] Fix usage * Add port-version * Update version files
-rw-r--r--ports/value-ptr-lite/CONTROL7
-rw-r--r--ports/value-ptr-lite/portfile.cmake22
-rw-r--r--ports/value-ptr-lite/vcpkg.json22
-rw-r--r--versions/baseline.json2
-rw-r--r--versions/v-/value-ptr-lite.json5
5 files changed, 38 insertions, 20 deletions
diff --git a/ports/value-ptr-lite/CONTROL b/ports/value-ptr-lite/CONTROL
deleted file mode 100644
index 0891d31fd..000000000
--- a/ports/value-ptr-lite/CONTROL
+++ /dev/null
@@ -1,7 +0,0 @@
-Source: value-ptr-lite
-Version: 0.2.1
-Homepage: https://github.com/martinmoene/value-ptr-lite
-Description: A C++ smart-pointer with value semantics for C++98, C++11 and later in a single-file header-only library.
-
-Feature: test
-Description: Build with test \ No newline at end of file
diff --git a/ports/value-ptr-lite/portfile.cmake b/ports/value-ptr-lite/portfile.cmake
index f14895468..b272643d6 100644
--- a/ports/value-ptr-lite/portfile.cmake
+++ b/ports/value-ptr-lite/portfile.cmake
@@ -7,24 +7,22 @@ vcpkg_from_github(
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
- test BUILD_TESTS
+ FEATURES
+ test VALUE_PTR_LITE_OPT_BUILD_TESTS
)
-vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA
- OPTIONS
- -DVALUE_PTR_LITE_OPT_BUILD_TESTS=${BUILD_TESTS}
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS ${FEATURE_OPTIONS}
-DVALUE_PTR_LITE_OPT_BUILD_EXAMPLES=OFF
)
-vcpkg_install_cmake()
+vcpkg_cmake_install()
-vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/value_ptr-lite)
+vcpkg_cmake_config_fixup(PACKAGE_NAME value_ptr-lite CONFIG_PATH lib/cmake/value_ptr-lite)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
# Handle copyright
-file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
+file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/value-ptr-lite/vcpkg.json b/ports/value-ptr-lite/vcpkg.json
new file mode 100644
index 000000000..3615f4971
--- /dev/null
+++ b/ports/value-ptr-lite/vcpkg.json
@@ -0,0 +1,22 @@
+{
+ "name": "value-ptr-lite",
+ "version-semver": "0.2.1",
+ "port-version": 1,
+ "description": "A C++ smart-pointer with value semantics for C++98, C++11 and later in a single-file header-only library.",
+ "homepage": "https://github.com/martinmoene/value-ptr-lite",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ],
+ "features": {
+ "test": {
+ "description": "Build and perform value_ptr-lite tests."
+ }
+ }
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index 0b72c0093..20d1f4ba2 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -6586,7 +6586,7 @@
},
"value-ptr-lite": {
"baseline": "0.2.1",
- "port-version": 0
+ "port-version": 1
},
"vamp-sdk": {
"baseline": "2.9",
diff --git a/versions/v-/value-ptr-lite.json b/versions/v-/value-ptr-lite.json
index 75cbf942d..c4efc83e5 100644
--- a/versions/v-/value-ptr-lite.json
+++ b/versions/v-/value-ptr-lite.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "69db499989a256cd9ce0397cb16814c6444b4877",
+ "version-semver": "0.2.1",
+ "port-version": 1
+ },
+ {
"git-tree": "c678a31c0e75e1cf5b53dc2f6ed0eecc156d9133",
"version-string": "0.2.1",
"port-version": 0