pyside-tools: cleanup python usage.
This commit is contained in:
parent
0373411a1c
commit
f5d1b73b28
1 changed files with 2 additions and 20 deletions
|
@ -8,28 +8,10 @@ class PysideTools < Formula
|
|||
head 'git://gitorious.org/pyside/pyside-tools.git'
|
||||
|
||||
depends_on 'cmake' => :build
|
||||
depends_on :python => :recommended
|
||||
depends_on :python3 => :optional
|
||||
depends_on 'pyside'
|
||||
|
||||
def install
|
||||
python do
|
||||
args = std_cmake_args
|
||||
args << "-DSITE_PACKAGE=#{python.site_packages}"
|
||||
# The next two lines are because pyside needs this to switch Python
|
||||
# versions in HOMEBREW_PREFIX/lib/cmake/PySide-X.Y.Z/PySideConfig.cmake
|
||||
args << "-DPYTHON_BASENAME=-python2.7" if python2
|
||||
args << "-DPYTHON_BASENAME=.cpython-33m" if python3
|
||||
# And these two lines are because the ShibokenConfig.cmake needs this to
|
||||
# switch python versions. The price for supporting both versions:
|
||||
args << "-DPYTHON_SUFFIX='-python2.7'" if python2
|
||||
args << "-DPYTHON_SUFFIX='.cpython-33m'" if python3
|
||||
system "cmake", ".", *args
|
||||
system "make install"
|
||||
end
|
||||
end
|
||||
|
||||
def caveats
|
||||
python.standard_caveats if python
|
||||
system "cmake", ".", "-DSITE_PACKAGE=lib/python2.7/site-packages", *std_cmake_args
|
||||
system "make install"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue