mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-27 05:00:42 +00:00
[function2] Add port version 4.0.0 (#9246)
This commit is contained in:
parent
0d5fc4c6ef
commit
19ed64967c
4
ports/function2/CONTROL
Normal file
4
ports/function2/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: function2
|
||||
Version: 4.0.0
|
||||
Homepage: https://github.com/Naios/function2
|
||||
Description: Improved drop-in replacement to std::function
|
14
ports/function2/disable-testing.patch
Normal file
14
ports/function2/disable-testing.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 684abe0..32a5cf6 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -75,7 +75,9 @@ if (FU2_IS_TOP_LEVEL_PROJECT)
|
||||
install(EXPORT "${PROJECT_NAME}Targets"
|
||||
NAMESPACE ${PROJECT_NAME}::
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
|
||||
+endif()
|
||||
|
||||
+if(0)
|
||||
# Setup CPack for bundling
|
||||
set(CPACK_GENERATOR "ZIP")
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
|
27
ports/function2/portfile.cmake
Normal file
27
ports/function2/portfile.cmake
Normal file
@ -0,0 +1,27 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Naios/function2
|
||||
REF d2acdb6c3c7612a6133cd03464ef941161258f4e
|
||||
SHA512 298f39db3c4e7a599e41fef71d1f953f3c5e20bc9f4af378c67bd47c10b126efd7be80be4ad919370a1151c8c5bc111ccd9054757a1aaf1ccf3f87ca958a7e3a
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
disable-testing.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
||||
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/Readme.md)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
||||
|
||||
# Put the installed licence file where vcpkg expects it
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
Loading…
Reference in New Issue
Block a user