This repository was archived by the owner on Jun 19, 2024. It is now read-only.
File tree 3 files changed +17
-11
lines changed
3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ def site_package_dir
10
10
11
11
class Pyside < Formula
12
12
homepage 'http://www.pyside.org'
13
- url 'http://www.pyside.org/files/pyside-qt4.7+1.1.0 .tar.bz2'
14
- md5 '233f0c6d2b3daf58cf88877d7f74557b '
13
+ url 'http://www.pyside.org/files/pyside-latest .tar.bz2'
14
+ md5 '0176d3746074afe47373d7302e1b4501 '
15
15
16
16
depends_on 'cmake' => :build
17
17
depends_on 'shiboken'
@@ -23,9 +23,12 @@ def install
23
23
qt = Formula . factory 'qt'
24
24
ENV . append_to_cflags "-F#{ qt . prefix } /Frameworks"
25
25
26
- # Also need `ALTERNATIVE_QT_INCLUDE_DIR` to prevent "missing file" errors.
27
- system "cmake #{ std_cmake_parameters } -DALTERNATIVE_QT_INCLUDE_DIR=#{ qt . prefix } /Frameworks -DSITE_PACKAGE=#{ site_package_dir } -DBUILD_TESTS=NO ."
28
- system 'make install'
26
+ mkdir 'build'
27
+ chdir 'build' do
28
+ # Also need `ALTERNATIVE_QT_INCLUDE_DIR` to prevent "missing file" errors.
29
+ system "cmake .. #{ std_cmake_parameters } -DALTERNATIVE_QT_INCLUDE_DIR=#{ qt . prefix } /Frameworks -DSITE_PACKAGE=#{ site_package_dir } -DBUILD_TESTS=NO"
30
+ system 'make install'
31
+ end
29
32
end
30
33
31
34
def caveats
Original file line number Diff line number Diff line change 2
2
3
3
class Shiboken < Formula
4
4
homepage 'http://www.pyside.org/docs/shiboken'
5
- url 'http://pyside.org/files/shiboken-1.1.0 .tar.bz2'
6
- md5 '9c9d696c8c426fb5abf28a6bd3759558 '
5
+ url 'http://www. pyside.org/files/shiboken-latest .tar.bz2'
6
+ md5 'fa451b6c4f3e06cce283a84550a96fd2 '
7
7
8
8
depends_on 'cmake' => :build
9
- depends_on 'generatorrunner '
9
+ depends_on 'qt '
10
10
11
11
def install
12
12
# Building the tests also runs them. Not building and running tests cuts
13
13
# install time in half.
14
- system "cmake #{ std_cmake_parameters } -DBUILD_TESTS=OFF ."
15
- system "make install"
14
+ mkdir 'build'
15
+ chdir 'build' do
16
+ system "cmake .. #{ std_cmake_parameters } -DBUILD_TESTS=OFF"
17
+ system "make install"
18
+ end
16
19
end
17
20
end
Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ def compiler
432
432
def make_jobs
433
433
# '-j' requires a positive integral argument
434
434
if self [ 'HOMEBREW_MAKE_JOBS' ] . to_i > 0
435
- self [ 'HOMEBREW_MAKE_JOBS' ]
435
+ self [ 'HOMEBREW_MAKE_JOBS' ] . to_i
436
436
else
437
437
Hardware . processor_count
438
438
end
You can’t perform that action at this time.
0 commit comments