aboutsummaryrefslogtreecommitdiff
path: root/ports/value-ptr-lite
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2019-11-22 09:47:40 -0800
committerGitHub <noreply@github.com>2019-11-22 09:47:40 -0800
commit45f4b820e5743b89bca3508ba2028cdd5d8bbd17 (patch)
treef874a8c4a7392309bdbb86447288597ec0a4a281 /ports/value-ptr-lite
parent62d67d3bf8eeff1afa8009041fd08b8822676b7b (diff)
parent8831e8f25f1ff6546ee4a5291b91d599421637b3 (diff)
downloadvcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.tar.gz
vcpkg-45f4b820e5743b89bca3508ba2028cdd5d8bbd17.zip
Merge branch 'master' into vcpkg_nuget
Diffstat (limited to 'ports/value-ptr-lite')
-rw-r--r--ports/value-ptr-lite/CONTROL7
-rw-r--r--ports/value-ptr-lite/portfile.cmake32
2 files changed, 39 insertions, 0 deletions
diff --git a/ports/value-ptr-lite/CONTROL b/ports/value-ptr-lite/CONTROL
new file mode 100644
index 000000000..0891d31fd
--- /dev/null
+++ b/ports/value-ptr-lite/CONTROL
@@ -0,0 +1,7 @@
+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
new file mode 100644
index 000000000..a0e429b33
--- /dev/null
+++ b/ports/value-ptr-lite/portfile.cmake
@@ -0,0 +1,32 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO martinmoene/value-ptr-lite
+ REF v0.2.1
+ SHA512 96bea32310b3b3f91d19706d8ae9bdfa9a6ba485f529562e3b7cf89311d1e9b99fd24c0c6f23d169c5a7c84ebd9bd7b8ace972ee279b38c4c1caa398a3dd1590
+ HEAD_REF master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ test BUILD_TESTS
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DVALUE_PTR_LITE_OPT_BUILD_TESTS=${BUILD_TESTS}
+ -DVALUE_PTR_LITE_OPT_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/value_ptr-lite)
+
+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)