diff options
| author | Mike McQuaid | 2014-01-04 13:15:01 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-04 13:35:46 +0000 |
| commit | b5737a9aab96f3ea95c7adea752ad7316c84c841 (patch) | |
| tree | c2b1b5e8b71640d35fd6f53110aa15e53ed3d7fb /Library/Formula | |
| parent | 33e95cb74542e7655541ebe5a0b4260233fb7508 (diff) | |
| download | homebrew-b5737a9aab96f3ea95c7adea752ad7316c84c841.tar.bz2 | |
pyside-tools: cleanup python usage.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pyside-tools.rb | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/Library/Formula/pyside-tools.rb b/Library/Formula/pyside-tools.rb index 54c08a615..23fd45224 100644 --- a/Library/Formula/pyside-tools.rb +++ b/Library/Formula/pyside-tools.rb @@ -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 |
