From b716eeeed940216e91d67d6fbcee69c603665aef Mon Sep 17 00:00:00 2001 From: Andrei Gramakov Date: Wed, 11 Feb 2026 19:30:15 +0100 Subject: [PATCH] [abcmake] Add new port (#49876) Co-authored-by: Billy Robert O'Neal III --- ports/abcmake/portfile.cmake | 18 ++++++++++++++++++ ports/abcmake/usage | 4 ++++ ports/abcmake/vcpkg.json | 13 +++++++++++++ .../test_ports/vcpkg-ci-abcmake/portfile.cmake | 3 +++ .../vcpkg-ci-abcmake/project/CMakeLists.txt | 6 ++++++ .../vcpkg-ci-abcmake/project/src/main.cpp | 6 ++++++ scripts/test_ports/vcpkg-ci-abcmake/vcpkg.json | 12 ++++++++++++ versions/a-/abcmake.json | 9 +++++++++ versions/baseline.json | 4 ++++ 9 files changed, 75 insertions(+) create mode 100644 ports/abcmake/portfile.cmake create mode 100644 ports/abcmake/usage create mode 100644 ports/abcmake/vcpkg.json create mode 100644 scripts/test_ports/vcpkg-ci-abcmake/portfile.cmake create mode 100644 scripts/test_ports/vcpkg-ci-abcmake/project/CMakeLists.txt create mode 100644 scripts/test_ports/vcpkg-ci-abcmake/project/src/main.cpp create mode 100644 scripts/test_ports/vcpkg-ci-abcmake/vcpkg.json create mode 100644 versions/a-/abcmake.json diff --git a/ports/abcmake/portfile.cmake b/ports/abcmake/portfile.cmake new file mode 100644 index 0000000000..82a991b6c0 --- /dev/null +++ b/ports/abcmake/portfile.cmake @@ -0,0 +1,18 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO an-dr/abcmake + REF "v6.4.0" + SHA512 85724b25e158f41f0aa0e5f01ea0530a46f6b4397606b1af115c8aec1c29d317aaaf40a6161795687d713b6f00f66b13a1ab3982f351a139dc79a7d4ac42b7da +) + +set(VCPKG_BUILD_TYPE release) # CMake support file only port +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/ports/abcmake/usage b/ports/abcmake/usage new file mode 100644 index 0000000000..18cfea6d2b --- /dev/null +++ b/ports/abcmake/usage @@ -0,0 +1,4 @@ +abcmake provides CMake configs: + + find_package(abcmake CONFIG REQUIRED) + add_main_component(${PROJECT_NAME}) diff --git a/ports/abcmake/vcpkg.json b/ports/abcmake/vcpkg.json new file mode 100644 index 0000000000..51f4fe7766 --- /dev/null +++ b/ports/abcmake/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "abcmake", + "version": "6.4.0", + "description": "Simple, component-first CMake helper for small & medium C/C++ projects", + "homepage": "https://github.com/an-dr/abcmake", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] +} diff --git a/scripts/test_ports/vcpkg-ci-abcmake/portfile.cmake b/scripts/test_ports/vcpkg-ci-abcmake/portfile.cmake new file mode 100644 index 0000000000..7d4d2ec18b --- /dev/null +++ b/scripts/test_ports/vcpkg-ci-abcmake/portfile.cmake @@ -0,0 +1,3 @@ +set(VCPKG_POLICY_EMPTY_PACKAGE enabled) +vcpkg_cmake_configure(SOURCE_PATH "${CURRENT_PORT_DIR}/project") +vcpkg_cmake_build() diff --git a/scripts/test_ports/vcpkg-ci-abcmake/project/CMakeLists.txt b/scripts/test_ports/vcpkg-ci-abcmake/project/CMakeLists.txt new file mode 100644 index 0000000000..cdbd583233 --- /dev/null +++ b/scripts/test_ports/vcpkg-ci-abcmake/project/CMakeLists.txt @@ -0,0 +1,6 @@ +# from: +# https://github.com/an-dr/abcmake/tree/4a45dea784dd98473195132a29a2980ed29b3c75/examples/hello_with_find_package +cmake_minimum_required(VERSION 3.15) +project(HelloWorld) +find_package(abcmake CONFIG REQUIRED) +add_main_component(${PROJECT_NAME}) diff --git a/scripts/test_ports/vcpkg-ci-abcmake/project/src/main.cpp b/scripts/test_ports/vcpkg-ci-abcmake/project/src/main.cpp new file mode 100644 index 0000000000..ba24fb8a7d --- /dev/null +++ b/scripts/test_ports/vcpkg-ci-abcmake/project/src/main.cpp @@ -0,0 +1,6 @@ +#include + +int main() { + std::cout << "Hello from abcmake using find_package()!" << std::endl; + return 0; +} diff --git a/scripts/test_ports/vcpkg-ci-abcmake/vcpkg.json b/scripts/test_ports/vcpkg-ci-abcmake/vcpkg.json new file mode 100644 index 0000000000..e0dbacaf3e --- /dev/null +++ b/scripts/test_ports/vcpkg-ci-abcmake/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "vcpkg-ci-abcmake", + "version": "1.0.0", + "description": "Test port for abcmake", + "dependencies": [ + "abcmake", + { + "name": "vcpkg-cmake", + "host": true + } + ] +} diff --git a/versions/a-/abcmake.json b/versions/a-/abcmake.json new file mode 100644 index 0000000000..18869cab50 --- /dev/null +++ b/versions/a-/abcmake.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "ee7b2ca269c0bbca7802c6750bc3555d750506a7", + "version": "6.4.0", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index ab5631dc42..1c0cbc6660 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -8,6 +8,10 @@ "baseline": "25.1", "port-version": 1 }, + "abcmake": { + "baseline": "6.4.0", + "port-version": 0 + }, "ableton-link": { "baseline": "3.1.5", "port-version": 0