aboutsummaryrefslogtreecommitdiff
path: root/ports/value-ptr-lite
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2019-08-29 14:12:07 -0700
committerPhil Christensen <philc@microsoft.com>2019-08-29 14:12:07 -0700
commitf9fa4dc19a6c81fbae099c22d6734cde399708f2 (patch)
treea99428a410c09bd0aee47d9925f766c8e05ff568 /ports/value-ptr-lite
parent92c26a2527e17f58cb07f626b31c60acc24703bd (diff)
downloadvcpkg-f9fa4dc19a6c81fbae099c22d6734cde399708f2.tar.gz
vcpkg-f9fa4dc19a6c81fbae099c22d6734cde399708f2.zip
[status-value-lite, type-lite, value-ptr-lite] Add new ports (#7563)
* [status-value-lite, type-lite, value-ptr-lite] Add new ports
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)