qwtpolar: depend on qt@5.7

Closes #9321.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-01-27 00:33:08 -08:00
parent a13f1342d6
commit 968b219ccb

View file

@ -3,6 +3,7 @@ class Qwtpolar < Formula
homepage "http://qwtpolar.sourceforge.net/"
url "https://downloads.sourceforge.net/project/qwtpolar/qwtpolar/1.1.1/qwtpolar-1.1.1.tar.bz2"
sha256 "6168baa9dbc8d527ae1ebf2631313291a1d545da268a05f4caa52ceadbe8b295"
revision 1
bottle do
sha256 "d251c45be1aaa0f07d9d0b883b1f3469879d3f31ba5b7326f423d96fd73a986b" => :sierra
@ -12,7 +13,7 @@ class Qwtpolar < Formula
option "without-plugin", "Skip building the Qt Designer plugin"
depends_on "qt5"
depends_on "qt@5.7"
depends_on "qwt"
# Update designer plugin linking back to qwtpolar framework/lib after install
@ -60,7 +61,7 @@ class Qwtpolar < Formula
s.gsub! "qwtPolarAddLibrary(qwtpolar)", "qwtPolarAddLibrary(qwtpolar)\nqwtPolarAddLibrary(qwt)"
end
cd "examples" do
system Formula["qt5"].opt_bin/"qmake"
system Formula["qt@5.7"].opt_bin/"qmake"
rm_rf "bin" # just in case
system "make"
assert File.exist?("bin/polardemo.app/Contents/MacOS/polardemo"), "Failed to build polardemo"