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/'
|
2011-08-08 15:35:17 +00:00
|
|
|
md5 'ace68558eab873e2da7e641179c4ef0c'
|
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
|
|
|
|
|
2009-11-05 18:14:59 +00:00
|
|
|
system "qmake -config release"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|