mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-23 11:19:43 +00:00
[string-view-lite] Add new port (1.3.0) (#6758)
This commit is contained in:
parent
dc45f21f9f
commit
fadd52d2a8
3
ports/string-view-lite/CONTROL
Normal file
3
ports/string-view-lite/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: string-view-lite
|
||||
Version: 1.3.0
|
||||
Description: A C++17-like string_view for C++98, C++11 and later in a single-file header-only library
|
31
ports/string-view-lite/portfile.cmake
Normal file
31
ports/string-view-lite/portfile.cmake
Normal file
@ -0,0 +1,31 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO martinmoene/string-view-lite
|
||||
REF v1.3.0
|
||||
SHA512 52fb76198249ade5352d95af4a4e305b3e22b464a5d0a702e4b2228b1ca30df98b90bb01d5bfd16ae6ebb7bab5aecac5bd4a867898c362e82e57c2aaf938e07a
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DSTRING_VIEW_LITE_OPT_BUILD_TESTS=OFF
|
||||
-DSTRING_VIEW_LITE_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
|
||||
)
|
Loading…
Reference in New Issue
Block a user