blob: fb7018e0b4f056d57a54fb84862c9f93150e79ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  | 
require 'formula'
class Gpredict < Formula
  homepage 'http://gpredict.oz9aec.net/'
  url 'https://downloads.sourceforge.net/project/gpredict/Gpredict/1.3/gpredict-1.3.tar.gz'
  sha1 'a02a979fb68f9be8b9294a7c4ca248aaecd73b34'
  depends_on :x11
  depends_on 'pkg-config' => :build
  depends_on 'intltool' => :build
  depends_on 'curl'
  depends_on 'gettext'
  depends_on 'glib'
  depends_on 'goocanvas'
  depends_on 'gtk+'
  depends_on 'hamlib'
  def install
    gettext = Formula['gettext']
    ENV.append "CFLAGS", "-I#{gettext.include}"
    ENV.append "LDFLAGS", "-L#{gettext.lib}"
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make", "install"
  end
end
  |