homebrew-core/Formula/vala.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

23 lines
562 B
Ruby

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