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

class Vala < Formula
  homepage 'http://live.gnome.org/Vala'
  url 'http://ftp.gnome.org/pub/gnome/sources/vala/0.23/vala-0.23.3.tar.xz'
  sha1 '77496e829f49b0b718ffc72fe2be8893f8b09f5d'

  head 'git://git.gnome.org/vala'

  depends_on 'pkg-config' => :build
  depends_on 'gettext'
  depends_on 'glib'

  def install
    system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
    system "make" # Fails to compile as a single step
    system "make install"
  end

  test do
    system "#{bin}/valac", "--version"
  end
end