diff options
Diffstat (limited to 'vcpkg/ports/arun11299-cpp-subprocess')
4 files changed, 86 insertions, 0 deletions
diff --git a/vcpkg/ports/arun11299-cpp-subprocess/find-threads.patch b/vcpkg/ports/arun11299-cpp-subprocess/find-threads.patch new file mode 100644 index 0000000..ebe38c2 --- /dev/null +++ b/vcpkg/ports/arun11299-cpp-subprocess/find-threads.patch @@ -0,0 +1,12 @@ +diff --git a/cmake/subprocess-config.cmake b/cmake/subprocess-config.cmake +index 004d900..99c7ff9 100644 +--- a/cmake/subprocess-config.cmake ++++ b/cmake/subprocess-config.cmake +@@ -1,3 +1,7 @@ ++include(CMakeFindDependencyMacro) ++ ++find_dependency(Threads) ++ + set(SUBPROCESS_VERSION @PROJECT_VERSION@) + + @PACKAGE_INIT@ diff --git a/vcpkg/ports/arun11299-cpp-subprocess/fix-cmake-config-name.patch b/vcpkg/ports/arun11299-cpp-subprocess/fix-cmake-config-name.patch new file mode 100644 index 0000000..434d3c6 --- /dev/null +++ b/vcpkg/ports/arun11299-cpp-subprocess/fix-cmake-config-name.patch @@ -0,0 +1,30 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c21809e..a5b1034 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -28,14 +28,14 @@ if(SUBPROCESS_INSTALL) + include(CMakePackageConfigHelpers) + + configure_package_config_file( +- "${CMAKE_CURRENT_SOURCE_DIR}/cmake/subprocess-config.cmake.in" ++ "${CMAKE_CURRENT_SOURCE_DIR}/cmake/subprocess-config.cmake" + "${CMAKE_CURRENT_BINARY_DIR}/subprocess-config.cmake" + INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/subprocess" + PATH_VARS PROJECT_NAME PROJECT_VERSION + ) + + write_basic_package_version_file( +- "${CMAKE_CURRENT_BINARY_DIR}/beman.exemplar-version.cmake" ++ "${CMAKE_CURRENT_BINARY_DIR}/subprocess-version.cmake" + VERSION ${PROJECT_VERSION} + COMPATIBILITY ExactVersion + ) +@@ -50,7 +50,7 @@ if(SUBPROCESS_INSTALL) + + install( + EXPORT subprocess +- DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/beman.exemplar" ++ DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/subprocess" + NAMESPACE cpp-subprocess:: + FILE subprocess-targets.cmake + COMPONENT subprocess diff --git a/vcpkg/ports/arun11299-cpp-subprocess/portfile.cmake b/vcpkg/ports/arun11299-cpp-subprocess/portfile.cmake new file mode 100644 index 0000000..e753f63 --- /dev/null +++ b/vcpkg/ports/arun11299-cpp-subprocess/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO arun11299/cpp-subprocess + REF "v${VERSION}" + SHA512 9901e97003276255fa4b7d97c9d1cc17f9c3a5b29a108ad3c4ed10c9794fb379a568ba587858a556630df2387cffd288e83fafeceae327aa7928635ba3121a49 + HEAD_REF master + PATCHES + fix-cmake-config-name.patch + find-threads.patch +) + +set(VCPKG_BUILD_TYPE release) # header-only port + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DSUBPROCESS_TESTS=OFF + -DSUBPROCESS_INSTALL=ON +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME subprocess CONFIG_PATH lib/cmake/subprocess) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.MIT") diff --git a/vcpkg/ports/arun11299-cpp-subprocess/vcpkg.json b/vcpkg/ports/arun11299-cpp-subprocess/vcpkg.json new file mode 100644 index 0000000..2ea192a --- /dev/null +++ b/vcpkg/ports/arun11299-cpp-subprocess/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "arun11299-cpp-subprocess", + "version": "2.5", + "description": "Subprocessing with modern C++ ", + "homepage": "https://github.com/arun11299/cpp-subprocess", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |