diff options
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/value-ptr-lite/CONTROL | 7 | ||||
| -rw-r--r-- | ports/value-ptr-lite/portfile.cmake | 22 | ||||
| -rw-r--r-- | ports/value-ptr-lite/vcpkg.json | 22 |
3 files changed, 32 insertions, 19 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." + } + } +} |
