@@ -5,16 +5,25 @@ class PyqtAT4 < Formula
55 sha256 "3224ab2c4d392891eb0abbc2bf076fef2ead3a5bb36ceae2383df4dda00ccce5"
66 revision 1
77
8+ bottle do
9+ rebuild 1
10+ root_url "https://dl.bintray.com/cartr/autobottle-qt4"
11+ sha256 mojave : "e44d7923a06753626ffc9bf6736b9641eb2b653bbd6ea34c841e1aaf2b9aadae"
12+ sha256 high_sierra : "5c6d1faf80702fbf842192da0823615a933b4e6198824cf923c2ad52da5c598c"
13+ sha256 sierra : "60e060eea471ae89cad6c16c14f4c7d3ad300840de3a4694259166ce91b377f2"
14+ sha256 el_capitan : "73742cd1d51d3cf121e36a15fdde6ebe0d4c55abb5ca45a219a1776cec3f5b6d"
15+ sha256 yosemite : "ea4bcda9e317579d71969c231cb3dcf3dd84b1aeb5d8cecd50ca128645e38838"
16+ end
17+
818 option "without-python@2" , "Build without python 2 support"
19+ depends_on "cartr/qt4/qt@4"
20+ depends_on "cartr/qt4/[email protected] " => :recommended 921 depends_on "python" => :optional
1022
1123 if build . without? ( "python" ) && build . without? ( "python@2" )
1224 odie "pyqt: --with-python must be specified when using --without-python@2"
1325 end
1426
15- depends_on "cartr/qt4/qt@4"
16- depends_on "cartr/qt4/[email protected] " => :recommended 17-
1827 if build . with? "python"
1928 depends_on "sip" => "with-python"
2029 else
@@ -23,9 +32,7 @@ class PyqtAT4 < Formula
2332
2433 def install
2534 # On Mavericks we want to target libc++, this requires a non default qt makespec
26- if ENV . compiler == :clang && MacOS . version >= :mavericks
27- ENV . append "QMAKESPEC" , "unsupported/macx-clang-libc++"
28- end
35+ ENV . append "QMAKESPEC" , "unsupported/macx-clang-libc++" if ENV . compiler == :clang && MacOS . version >= :mavericks
2936
3037 Language ::Python . each_python ( build ) do |python , version |
3138 ENV . append_path "PYTHONPATH" , "#{ Formula [ "sip" ] . opt_lib } /python#{ version } /site-packages"
@@ -64,9 +71,7 @@ def install
6471 end
6572
6673 # On Mavericks we want to target libc++, this requires a non default qt makespec
67- if ENV . compiler == :clang && MacOS . version >= :mavericks
68- args << "--spec" << "unsupported/macx-clang-libc++"
69- end
74+ args << "--spec" << "unsupported/macx-clang-libc++" if ENV . compiler == :clang && MacOS . version >= :mavericks
7075
7176 args << "--no-stubs"
7277
@@ -91,14 +96,4 @@ def caveats
9196 system python , "test.py"
9297 end
9398 end
94-
95- bottle do
96- rebuild 1
97- root_url "https://dl.bintray.com/cartr/autobottle-qt4"
98- sha256 "e44d7923a06753626ffc9bf6736b9641eb2b653bbd6ea34c841e1aaf2b9aadae" => :mojave
99- sha256 "5c6d1faf80702fbf842192da0823615a933b4e6198824cf923c2ad52da5c598c" => :high_sierra
100- sha256 "60e060eea471ae89cad6c16c14f4c7d3ad300840de3a4694259166ce91b377f2" => :sierra
101- sha256 "73742cd1d51d3cf121e36a15fdde6ebe0d4c55abb5ca45a219a1776cec3f5b6d" => :el_capitan
102- sha256 "ea4bcda9e317579d71969c231cb3dcf3dd84b1aeb5d8cecd50ca128645e38838" => :yosemite
103- end
10499end
0 commit comments