homebrew-core/Formula/pyside-tools.rb
Jack Nagel c7630f5ff4 Use new std_cmake_args method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-22 22:22:00 -05:00

24 lines
525 B
Ruby

require 'formula'
def which_python
"python" + `python -c 'import sys;print(sys.version[:3])'`.strip
end
def site_package_dir
"lib/#{which_python}/site-packages"
end
class PysideTools < Formula
homepage 'http://www.pyside.org'
url 'http://www.pyside.org/files/pyside-tools-0.2.13.tar.bz2'
md5 '14d3a36df06d680357d7bc1960f19a6d'
depends_on 'cmake' => :build
depends_on 'pyside'
def install
system "cmake", ".", "-DSITE_PACKAGE=#{site_package_dir}", *std_cmake_args
system "make install"
end
end