From 309e0cda334c3c330f2ff5207495b467f3b0f77d Mon Sep 17 00:00:00 2001 From: Sergio Martins <@> Date: Tue, 19 Nov 2024 19:53:45 +0000 Subject: [PATCH] Add KDUtils --- .github/workflows/build.yml | 2 ++ kdutils.rb | 26 ++++++++++++++++++++++++++ utils.py | 1 + 3 files changed, 29 insertions(+) create mode 100644 kdutils.rb diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a065b85..d431256 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,3 +41,5 @@ jobs: brew install --build-from-source --formula ./kddockwidgets-qt5.rb brew install --build-from-source --formula ./kddockwidgets-qt6.rb brew install --build-from-source --formula ./gammaray-qt5.rb + brew install --build-from-source --formula ./kdbindings.rb + brew install --build-from-source --formula ./kdutils.rb diff --git a/kdutils.rb b/kdutils.rb new file mode 100644 index 0000000..343ff08 --- /dev/null +++ b/kdutils.rb @@ -0,0 +1,26 @@ +class Kdutils < Formula + desc "Helpers and wrappers around the C++ STL and a base for cross-platform applications, similar to QtCore" + homepage "https://github.com/KDAB/KDUtils" + url "https://github.com/KDAB/KDUtils/archive/refs/tags/v0.1.10.tar.gz" + sha256 "eb57188e1e8b0d90c6940ed48cce3069c57f3b5218c0ab115e26460bf7c5618b" + head "https://github.com/KDAB/KDUtils.git" + + depends_on "cmake" => :build + depends_on "ninja" => :build + depends_on "KDBindings" + depends_on "spdlog" + depends_on "fmt" + + def install + # Upstream of the following repos aren't in brew, require FetchContent + # https://github.com/gpakosz/whereami + # https://github.com/mandreyel/mio.git + system "cmake", ".", "-G", "Ninja", "-DKDUTILS_BUILD_TESTS=OFF", "-DKDUTILS_BUILD_EXAMPLES=OFF", *std_cmake_args, "-DHOMEBREW_ALLOW_FETCHCONTENT=ON" + system "ninja" + system "ninja", "install" + end + + test do + system "ctest" + end +end diff --git a/utils.py b/utils.py index d37c62b..3d7de7f 100644 --- a/utils.py +++ b/utils.py @@ -17,6 +17,7 @@ 'gammaray-qt5.rb': {"repo": "KDAB/Gammaray"}, 'kdmactouchbar-qt5.rb': {"repo": "KDAB/KDMacTouchBar"}, 'kdbindings.rb': {"repo": "KDAB/KDBindings"}, + 'kdutils.rb': {"repo": "KDAB/KDUtils"}, # 'kdstatemachineeditor-qt5.rb': {"repo": "KDAB/KDStateMachineEditor"}, # 'kdstatemachineeditor-qt6.rb': {"repo": "KDAB/KDStateMachineEditor"}, }