Skip to content

Commit

Permalink
Merge pull request #30 from KDAB/kdutils
Browse files Browse the repository at this point in the history
Add KDUtils
  • Loading branch information
iamsergio authored Nov 19, 2024
2 parents e6ef473 + 309e0cd commit 34213ac
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
26 changes: 26 additions & 0 deletions kdutils.rb
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
}
Expand Down

0 comments on commit 34213ac

Please sign in to comment.