Skip to content

Commit

Permalink
qg
Browse files Browse the repository at this point in the history
Closes #517.

Signed-off-by: paperchalice <29250197+paperchalice@users.noreply.github.com>
  • Loading branch information
PaperChalice authored and paperchalice committed Oct 14, 2023
1 parent a822271 commit 0122efa
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Formula/qt/qt-graphs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
class QtGraphs < Formula
desc "Qt for graph data visualization"
homepage "https://www.qt.io/"
url "https://download.qt.io/official_releases/qt/6.6/6.6.0/submodules/qtgraphs-everywhere-src-6.6.0.tar.xz"
sha256 "56e147fc89031b77002a87da2970c1d6ebf3f595268d0cae52f5f71278e15e7f"
license all_of: ["GFDL-1.3-only", "GPL-2.0-only", "GPL-3.0-only", "LGPL-2.1-only", "LGPL-3.0-only"]
head "https://code.qt.io/qt/qtgraphs.git", branch: "dev"

depends_on "cmake" => [:build, :test]
depends_on "ninja" => :build
depends_on "pkgconf" => :build
depends_on "vulkan-headers" => [:build, :test]

depends_on "qt-quick3d"

def install
cmake_args = std_cmake_args(install_prefix: HOMEBREW_PREFIX) + %W[
-D CMAKE_STAGING_PREFIX=#{prefix}

-S .
]
system "cmake", *cmake_args
system "cmake", "--build", "."
system "cmake", "--install", ".", "--strip"

lib.glob("*.framework") do |f|
frameworks.install_symlink f
include.install_symlink f/"Headers" => f.stem
lib.install_symlink f/f.stem => shared_library("lib#{f.stem}")
end
end

test do
system "echo"
end
end

0 comments on commit 0122efa

Please sign in to comment.