From f63c635dc9dfb2bb76110a838fe1aa09b3e75a4a Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Thu, 16 Jun 2011 16:48:59 -0700 Subject: [PATCH] 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. --- Formula/pyside-tools.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Formula/pyside-tools.rb diff --git a/Formula/pyside-tools.rb b/Formula/pyside-tools.rb new file mode 100644 index 00000000000..4de5937b341 --- /dev/null +++ b/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