qwtpolar: depend on qt5 instead of qt@5.7

Now possible to use 5.8.0 since QTBUG-57656 was patched.

Closes #9576.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
This commit is contained in:
ilovezfs 2017-02-02 07:03:44 -08:00 committed by Tomasz Pajor
parent d2d15e8631
commit de46f4139d

View file

@ -3,7 +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
revision 2
bottle do
sha256 "e734751a7cf473eadbb85ae4ccc80c219f96e7db7b2fc1e7bf2b57b782927d4f" => :sierra
@ -13,7 +13,7 @@ class Qwtpolar < Formula
option "without-plugin", "Skip building the Qt Designer plugin"
depends_on "qt@5.7"
depends_on "qt5"
depends_on "qwt"
# Update designer plugin linking back to qwtpolar framework/lib after install
@ -61,7 +61,7 @@ class Qwtpolar < Formula
s.gsub! "qwtPolarAddLibrary(qwtpolar)", "qwtPolarAddLibrary(qwtpolar)\nqwtPolarAddLibrary(qwt)"
end
cd "examples" do
system Formula["qt@5.7"].opt_bin/"qmake"
system Formula["qt5"].opt_bin/"qmake"
rm_rf "bin" # just in case
system "make"
assert File.exist?("bin/polardemo.app/Contents/MacOS/polardemo"), "Failed to build polardemo"