ode: use new dsl

This commit is contained in:
Adam Vandenberg 2012-08-26 22:49:12 -07:00
parent 7d34c0c0dc
commit 56cb7cab0b

View file

@ -9,14 +9,14 @@ class Ode < Formula
depends_on 'pkg-config' => :build
if ARGV.build_head?
if build.head?
# Requires newer automake and libtool
depends_on 'automake' => :build
depends_on 'libtool' => :build
end
def install
if ARGV.build_head?
if build.head?
ENV['LIBTOOLIZE'] = 'glibtoolize'
inreplace 'autogen.sh', 'libtoolize', '$LIBTOOLIZE'
system "./autogen.sh"