homebrew-core/Formula/qwt.rb
Tzu-ping Chung cb56b4ebee Qwt 6.1.0
Closes Homebrew/homebrew#21164.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-07-12 08:55:04 -07:00

26 lines
750 B
Ruby

require 'formula'
class Qwt < Formula
homepage 'http://qwt.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/qwt/qwt/6.1.0/qwt-6.1.0.tar.bz2'
sha1 '48a967038f7aa9a9c87c64bcb2eb07c5df375565'
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
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
end