2009-11-05 18:14:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Qwt < Formula
|
2009-11-05 18:14:59 +00:00
|
|
|
homepage 'http://qwt.sourceforge.net/'
|
2013-07-12 06:18:31 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/qwt/qwt/6.1.0/qwt-6.1.0.tar.bz2'
|
|
|
|
sha1 '48a967038f7aa9a9c87c64bcb2eb07c5df375565'
|
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
|
2013-01-21 09:33:56 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
The qwtmathml library contains code of the MML Widget from the Qt solutions package.
|
|
|
|
Beside the Qwt license you also have to take care of its license.
|
|
|
|
EOS
|
|
|
|
end
|
2009-11-05 18:14:59 +00:00
|
|
|
end
|