blob: ca15636637f1ffd00bfc49f4cc9bb17146b3386f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
require 'formula'
class PysideTools < Formula
homepage 'http://www.pyside.org'
url 'http://qt-project.org/uploads/pyside/pyside-tools-0.2.14.tar.bz2'
sha1 'f654553bc9bfb35dbc5673da26830969393f9fe8'
depends_on 'cmake' => :build
depends_on 'pyside'
def which_python
"python" + `python -c 'import sys;print(sys.version[:3])'`.strip
end
def install
system "cmake", ".", "-DSITE_PACKAGE=lib/#{which_python}/site-packages", *std_cmake_args
system "make install"
end
end
|