diff --git a/ports/reaction/portfile.cmake b/ports/reaction/portfile.cmake new file mode 100644 index 0000000000..a7b0f6f674 --- /dev/null +++ b/ports/reaction/portfile.cmake @@ -0,0 +1,26 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO lumia431/reaction + REF "${VERSION}" + SHA512 7747b621c790318d3240f8634bf2310420c93b1418f9ac1384d784ab08658f12d2631e59d5927dc2b81c7801d150a785ea1cdfbb0b7025ea0531047023f8dab1 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_EXAMPLES=OFF + -DBUILD_TESTS=OFF + -DBUILD_BENCHMARKS=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/reaction) +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug" + "${CURRENT_PACKAGES_DIR}/lib" +) + diff --git a/ports/reaction/usage b/ports/reaction/usage new file mode 100644 index 0000000000..9ef9045738 --- /dev/null +++ b/ports/reaction/usage @@ -0,0 +1,4 @@ +reaction is a header-only library that provides CMake targets: + + find_package(reaction CONFIG REQUIRED) + target_link_libraries(main PRIVATE reaction::reaction) diff --git a/ports/reaction/vcpkg.json b/ports/reaction/vcpkg.json new file mode 100644 index 0000000000..496a8dada5 --- /dev/null +++ b/ports/reaction/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "reaction", + "version": "1.0.0", + "description": "A lightweight, header-only, high-performance reactive programming framework for C++20", + "homepage": "https://github.com/lumia431/reaction", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index edf9a24615..184c13fda4 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -8312,6 +8312,10 @@ "baseline": "2025-08-12", "port-version": 0 }, + "reaction": { + "baseline": "1.0.0", + "port-version": 0 + }, "reactiveplusplus": { "baseline": "2.1.1", "port-version": 0 diff --git a/versions/r-/reaction.json b/versions/r-/reaction.json new file mode 100644 index 0000000000..aed733d861 --- /dev/null +++ b/versions/r-/reaction.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "db46571080109d8ff5e35597158e1da1d03eb0ba", + "version": "1.0.0", + "port-version": 0 + } + ] +}