-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from KDAB/kdutils
Add KDUtils
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters