mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-21 18:17:10 +01:00
[byte-lite] Add new port (v0.2.0) (#6630)
* [byte-lite] Add v0.2.0 * [byte-lite] Perform CMake install * [byte-lite] Use ${PORT}
This commit is contained in:
parent
7340d6ac55
commit
2e5e4818ea
3
ports/byte-lite/CONTROL
Normal file
3
ports/byte-lite/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: byte-lite
|
||||
Version: 0.2.0
|
||||
Description: A C++17-like byte type for C++98, C++11 and later in a single-file header-only library
|
31
ports/byte-lite/portfile.cmake
Normal file
31
ports/byte-lite/portfile.cmake
Normal file
@ -0,0 +1,31 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO martinmoene/byte-lite
|
||||
REF v0.2.0
|
||||
SHA512 eefc730a39453dfc367a4478a84d4825cd85721d3c332a57321d0a5c3040a4d45921603ff24220f968dd21df61acea856ae30db8bae6c1e835a1755fb03c84b7
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DBYTE_LITE_OPT_BUILD_TESTS=OFF
|
||||
-DBYTE_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…
x
Reference in New Issue
Block a user