2014-11-03 03:02:13 +00:00
|
|
|
class Gammaray < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Examine and manipulate Qt application internals at runtime"
|
2015-07-10 20:54:51 +00:00
|
|
|
homepage "https://www.kdab.com/kdab-products/gammaray/"
|
2015-09-07 00:29:14 +00:00
|
|
|
url "https://github.com/KDAB/GammaRay/releases/download/v2.3.0/gammaray-2.3.0.tar.gz"
|
|
|
|
mirror "https://mirrors.kernel.org/debian/pool/main/g/gammaray/gammaray_2.3.0.orig.tar.gz"
|
|
|
|
sha256 "d3da28ff1f7ac5534e518a9d4a7b5d7d22267490d3ab3ae094b0592d33244799"
|
|
|
|
head "https://github.com/KDAB/GammaRay.git"
|
2014-11-03 03:02:13 +00:00
|
|
|
|
2014-11-03 03:17:00 +00:00
|
|
|
bottle do
|
2015-09-08 01:51:28 +00:00
|
|
|
sha256 "149fcf14623364258624a74de84c1ab286ab7de0cc978dd83f3ddc8a2d39322b" => :yosemite
|
|
|
|
sha256 "3ea0e2da59b8b73f0d51cc4b35f67f950ad06f7b00f0592efa4645e786c6ce5d" => :mavericks
|
|
|
|
sha256 "1e11205cfd53296ea2a45f08d64c510bade4e910288202bb2d695e3511c9178e" => :mountain_lion
|
2014-11-03 03:17:00 +00:00
|
|
|
end
|
|
|
|
|
2014-11-03 03:02:13 +00:00
|
|
|
option "without-qt4", "Build against Qt5 instead of Qt4 (default)"
|
|
|
|
option "with-vtk", "Build with VTK-with-Qt support, for object 3D visualizer"
|
|
|
|
|
|
|
|
needs :cxx11
|
|
|
|
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "qt" if build.with? "qt4"
|
|
|
|
depends_on "qt5" if build.without? "qt4"
|
|
|
|
depends_on "graphviz" => :recommended
|
2015-09-07 00:29:14 +00:00
|
|
|
|
2014-11-03 03:02:13 +00:00
|
|
|
# VTK needs to have Qt support, and it needs to match GammaRay's
|
|
|
|
depends_on "homebrew/science/vtk" => [:optional, ((build.with? "qt4") ? "with-qt" : "with-qt5")]
|
|
|
|
|
|
|
|
def install
|
2015-09-07 00:29:14 +00:00
|
|
|
# For Mountain Lion
|
|
|
|
ENV.libcxx
|
|
|
|
|
2014-11-03 03:02:13 +00:00
|
|
|
args = std_cmake_args
|
|
|
|
args << "-DGAMMARAY_ENFORCE_QT4_BUILD=" + ((build.with? "qt4") ? "ON" : "OFF")
|
2015-08-03 12:55:31 +00:00
|
|
|
args << "-DCMAKE_DISABLE_FIND_PACKAGE_VTK=" + ((build.without? "vtk") ? "ON" : "OFF")
|
|
|
|
args << "-DCMAKE_DISABLE_FIND_PACKAGE_Graphviz=" + ((build.without? "graphviz") ? "ON" : "OFF")
|
2014-11-03 03:02:13 +00:00
|
|
|
|
|
|
|
mkdir "build" do
|
|
|
|
system "cmake", "..", *args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-09-07 00:29:14 +00:00
|
|
|
(prefix/"GammaRay.app/Contents/MacOS/GammaRay").executable?
|
2014-11-03 03:02:13 +00:00
|
|
|
end
|
|
|
|
end
|