homebrew-core/Formula/qwt.rb

21 lines
540 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Qwt < Formula
url 'http://sourceforge.net/projects/qwt/files/qwt/6.0.1/qwt-6.0.1.tar.bz2'
homepage 'http://qwt.sourceforge.net/'
sha1 '301cca0c49c7efc14363b42e082b09056178973e'
depends_on 'qt'
def install
inreplace 'qwtconfig.pri' do |s|
# change_make_var won't work because there are leading spaces
s.gsub! /^\s*QWT_INSTALL_PREFIX\s*=(.*)$/, "QWT_INSTALL_PREFIX=#{prefix}"
end
system "qmake -spec macx-g++ -config release"
system "make"
system "make install"
end
end