diff options
| author | Charlie Sharpsteen | 2011-06-16 16:48:59 -0700 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-08-25 17:47:22 -0700 |
| commit | ef59039177207de9a5669bb1f3103467070c4e4f (patch) | |
| tree | 95d4c43f3f447bb3222950974658a88d0357aed3 /Library | |
| parent | 05d3a7e9c7b7ad8ca60d4e7c3213f8ac913aa6d3 (diff) | |
| download | homebrew-ef59039177207de9a5669bb1f3103467070c4e4f.tar.bz2 | |
New formula for PySideTools
The PySide Tools is a collection of developer utilities for compiling Qt user
interface and resource files for use by PySide applications.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/pyside-tools.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/pyside-tools.rb b/Library/Formula/pyside-tools.rb new file mode 100644 index 000000000..4de5937b3 --- /dev/null +++ b/Library/Formula/pyside-tools.rb @@ -0,0 +1,25 @@ +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 'qt' + depends_on 'pyside' + + def install + system "cmake . #{std_cmake_parameters} -DSITE_PACKAGE=#{site_package_dir}" + system "make install" + end +end |
