e466dae5c2
Determining build-time deps as part of the download strategy is probably a Homebrew 2 topic, so avoid the "you need to install xz" warning by declaring xz as a dep where used. The "don't use xz if there are alternatives" policy is still in effect, though. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
23 lines
578 B
Ruby
23 lines
578 B
Ruby
require 'formula'
|
|
|
|
class Vala < Formula
|
|
head 'git://git.gnome.org/vala'
|
|
url 'http://download.gnome.org/sources/vala/0.15/vala-0.15.1.tar.xz'
|
|
homepage 'http://live.gnome.org/Vala'
|
|
md5 '639c8a85e184647a2c912a4f6ac28ed1'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'xz' => :build
|
|
depends_on 'gettext'
|
|
depends_on 'glib'
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
|
system "make" # Single step fails to compile for 0.8.0
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
system "#{bin}/valac --version"
|
|
end
|
|
end
|