From a2a478a93d582a4b395a4dc4b7052bfcb42c1f8e Mon Sep 17 00:00:00 2001 From: Markus87 Date: Tue, 27 Jan 2026 21:34:08 +0100 Subject: [PATCH] Add any++ (#49574) Co-authored-by: Kai Pastor --- ports/anyxx/portfile.cmake | 22 ++++++++++++++++++++++ ports/anyxx/usage | 4 ++++ ports/anyxx/vcpkg.json | 17 +++++++++++++++++ versions/a-/anyxx.json | 9 +++++++++ versions/baseline.json | 4 ++++ 5 files changed, 56 insertions(+) create mode 100644 ports/anyxx/portfile.cmake create mode 100644 ports/anyxx/usage create mode 100644 ports/anyxx/vcpkg.json create mode 100644 versions/a-/anyxx.json diff --git a/ports/anyxx/portfile.cmake b/ports/anyxx/portfile.cmake new file mode 100644 index 0000000000..2a0553e752 --- /dev/null +++ b/ports/anyxx/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO bitfactory-software/anyxx + REF "${VERSION}" + SHA512 2dff8f7def0489a469485f3130d0d7f7dcaec675f46110504b60c7a2b8247ca302b523316011c0172154a4ff833f6e903eea8e99f958cfd4b24d32327095f234 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -Danyxx_INSTALL_ONLY=ON +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME "anyxx") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/anyxx/usage b/ports/anyxx/usage new file mode 100644 index 0000000000..2e1380b84f --- /dev/null +++ b/ports/anyxx/usage @@ -0,0 +1,4 @@ +anyxx provides CMake targets: + + find_package(anyxx CONFIG REQUIRED) + target_link_libraries(main PRIVATE bit_factory::anyxx) diff --git a/ports/anyxx/vcpkg.json b/ports/anyxx/vcpkg.json new file mode 100644 index 0000000000..f3992c475c --- /dev/null +++ b/ports/anyxx/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "anyxx", + "version": "0.4.1", + "description": "any++ / header only C++ vocabulary for programming on a large scale", + "homepage": "https://github.com/bitfactory-software/anyxx", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/a-/anyxx.json b/versions/a-/anyxx.json new file mode 100644 index 0000000000..0099bbfb98 --- /dev/null +++ b/versions/a-/anyxx.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "f1d82e9c161ddbcd9fdbaa58d98c3ea4b23a0fa3", + "version": "0.4.1", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 1526366ed5..c4d1f684cb 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -164,6 +164,10 @@ "baseline": "2021-08-24", "port-version": 2 }, + "anyxx": { + "baseline": "0.4.1", + "port-version": 0 + }, "aom": { "baseline": "3.13.1", "port-version": 1