2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-19 09:30:48 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Vala < Formula
|
2009-11-25 10:19:18 +00:00
|
|
|
homepage 'http://live.gnome.org/Vala'
|
2012-02-26 11:00:28 +00:00
|
|
|
url 'http://download.gnome.org/sources/vala/0.15/vala-0.15.2.tar.xz'
|
|
|
|
md5 '773562e7ba7bc0b40d87b7ad2db72443'
|
|
|
|
|
|
|
|
head 'git://git.gnome.org/vala'
|
2009-09-19 09:30:48 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-02-18 00:56:36 +00:00
|
|
|
depends_on 'xz' => :build
|
2009-09-21 18:00:13 +00:00
|
|
|
depends_on 'gettext'
|
2010-04-01 16:58:37 +00:00
|
|
|
depends_on 'glib'
|
2009-09-19 09:30:48 +00:00
|
|
|
|
|
|
|
def install
|
2012-03-11 01:06:42 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
|
|
system "make" # Fails to compile as a single step
|
2009-09-19 09:30:48 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2010-11-21 12:53:59 +00:00
|
|
|
|
|
|
|
def test
|
2011-09-01 20:00:28 +00:00
|
|
|
system "#{bin}/valac --version"
|
2010-11-21 12:53:59 +00:00
|
|
|
end
|
2009-09-19 09:30:48 +00:00
|
|
|
end
|