aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/qwt.rb
blob: d79b8dc67932f4f817ac3a216e986ad01f590028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Qwt < Formula
  url 'http://sourceforge.net/projects/qwt/files/qwt/6.0.1/qwt-6.0.1.tar.bz2'
  homepage 'http://qwt.sourceforge.net/'
  md5 'ace68558eab873e2da7e641179c4ef0c'

  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 -config release"
    system "make install"
  end
end