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