qscintilla2: cleanup python usage.

This commit is contained in:
Mike McQuaid 2014-01-04 13:15:51 +00:00
parent 3f524a365a
commit 67bfafb19e

View file

@ -7,7 +7,6 @@ class Qscintilla2 < Formula
depends_on 'pyqt'
depends_on 'sip'
depends_on :python
def install
@ -24,22 +23,15 @@ class Qscintilla2 < Formula
system "make", "install"
end
python do
cd 'Python' do
(share/"sip#{python.if3then3}").mkpath
system python, 'configure.py', "-o", lib, "-n", include,
"--apidir=#{prefix}/qsci",
"--destdir=#{python.site_packages}/PyQt4",
"--qsci-sipdir=#{share}/sip#{python.if3then3}",
"--pyqt-sipdir=#{HOMEBREW_PREFIX}/share/sip#{python.if3then3}"
system 'make'
system 'make', 'install'
end
cd 'Python' do
(share/"sip").mkpath
system 'python', 'configure.py', "-o", lib, "-n", include,
"--apidir=#{prefix}/qsci",
"--destdir=#{lib}/python2.7/site-packages/PyQt4",
"--qsci-sipdir=#{share}/sip",
"--pyqt-sipdir=#{HOMEBREW_PREFIX}/share/sip"
system 'make'
system 'make', 'install'
end
end
def caveats
python.standard_caveats if python
end
end