2009-11-05 18:14:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Qwt < Formula
|
2011-05-05 18:47:00 +00:00
|
|
|
url 'http://sourceforge.net/projects/qwt/files/qwt/6.0.0/qwt-6.0.0.tar.bz2'
|
2009-11-05 18:14:59 +00:00
|
|
|
homepage 'http://qwt.sourceforge.net/'
|
2011-05-05 18:47:00 +00:00
|
|
|
md5 '1795cf075ebce3ae048255d2060cbac0'
|
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
|