diff options
| author | Griffin Downs <35574547+grdowns@users.noreply.github.com> | 2019-05-31 03:22:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-31 03:22:39 -0700 |
| commit | a196cc29132fa264650325c2a430f10b3c731197 (patch) | |
| tree | d86e585ff91b903007b7689e0dadb36876c3352e | |
| parent | a0108b715334f0672470484d1c79681dc5810caf (diff) | |
| parent | 516431de82a566e559e70c2e7742a072f8b035e6 (diff) | |
| download | vcpkg-a196cc29132fa264650325c2a430f10b3c731197.tar.gz vcpkg-a196cc29132fa264650325c2a430f10b3c731197.zip | |
[observer-ptr-lite] Add new port (0.4.0, was: 0.3.0) (#6652)
* [observer-ptr-lite] Add new port (0.3.0)
* Use dash in unit name for vcpkg_fixup_cmake_targets()
| -rw-r--r-- | ports/observer-ptr-lite/CONTROL | 3 | ||||
| -rw-r--r-- | ports/observer-ptr-lite/portfile.cmake | 31 |
2 files changed, 34 insertions, 0 deletions
diff --git a/ports/observer-ptr-lite/CONTROL b/ports/observer-ptr-lite/CONTROL new file mode 100644 index 000000000..547e64289 --- /dev/null +++ b/ports/observer-ptr-lite/CONTROL @@ -0,0 +1,3 @@ +Source: observer-ptr-lite
+Version: 0.4.0
+Description: A C++17-like observer_ptr for C++98 and later in a single-file header-only library
diff --git a/ports/observer-ptr-lite/portfile.cmake b/ports/observer-ptr-lite/portfile.cmake new file mode 100644 index 000000000..4fea768f5 --- /dev/null +++ b/ports/observer-ptr-lite/portfile.cmake @@ -0,0 +1,31 @@ +include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO martinmoene/observer-ptr-lite
+ REF v0.4.0
+ SHA512 4e53d8e0ce595604880bda423440071e7c207dd63e7b6bfa09cc7a870a010f09c51c31e640142c565ce261c4911acab13c6e9f5970853ad8fc2da3e4034ab7d7
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DNSOP_OPT_BUILD_TESTS=OFF
+ -DNSOP_OPT_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(
+ CONFIG_PATH lib/cmake/${PORT}
+)
+
+file(REMOVE_RECURSE
+ ${CURRENT_PACKAGES_DIR}/debug
+ ${CURRENT_PACKAGES_DIR}/lib
+)
+
+file(INSTALL
+ ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
+)
|
