diff options
| author | Mike McQuaid | 2014-01-04 13:15:51 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-04 13:35:47 +0000 |
| commit | 562c6efedd4425e77bf1110e37535c4e3b51602b (patch) | |
| tree | 586550d6b99a2f7f7afb9650bd8219f3dbad0ff5 /Library/Formula | |
| parent | f13a30c3fc86aa0dce7b158ac1695314e229b944 (diff) | |
| download | homebrew-562c6efedd4425e77bf1110e37535c4e3b51602b.tar.bz2 | |
qscintilla2: cleanup python usage.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/qscintilla2.rb | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/Library/Formula/qscintilla2.rb b/Library/Formula/qscintilla2.rb index c47ba3c8f..65edc3f7d 100644 --- a/Library/Formula/qscintilla2.rb +++ b/Library/Formula/qscintilla2.rb @@ -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 |
