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'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '4d05444300331518c3b66536aec3048454db3380'
|
2011-06-16 23:48:59 +00:00
|
|
|
|
|
|
|
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
|