homebrew-core/Formula/pyside-tools.rb
Simon Sigurdhsson a763d3df9f Remove global methods from formulae
Removes any global methods from formulae, and moves #kext_prefix (which
seems to be at least somewhat abstractable) into the Formula class. The
only formula with global methods is now aspell; it (and its generating
script in contrib) has been changed to prefix that method with
`aspell_`, to minimize the risk of name collisions.

Closes Homebrew/homebrew#19331.
Closes Homebrew/homebrew#19343.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-21 23:48:50 -05:00

20 lines
499 B
Ruby

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