2011-06-16 23:48:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
def which_python
|
|
|
|
"python" + `python -c 'import sys;print(sys.version[:3])'`.strip
|
|
|
|
end
|
|
|
|
|
|
|
|
def site_package_dir
|
2011-08-26 18:25:36 +00:00
|
|
|
"lib/#{which_python}/site-packages"
|
2011-06-16 23:48:59 +00:00
|
|
|
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
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", ".", "-DSITE_PACKAGE=#{site_package_dir}", *std_cmake_args
|
2011-06-16 23:48:59 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|