two-lame: use new dsl

This commit is contained in:
Adam Vandenberg 2012-08-22 21:28:37 -07:00
parent c8a34157e9
commit 2d4d780670

View file

@ -5,14 +5,13 @@ class TwoLame < Formula
url 'http://downloads.sourceforge.net/twolame/twolame-0.3.13.tar.gz'
sha1 '3ca460472c2f6eeedad70291d8e37da88b64eb8b'
depends_on 'libsndfile' if ARGV.include? '--frontend'
option 'frontend', 'Build the twolame frontend using libsndfile'
def options
[['--frontend', 'Build the twolame frontend using libsndfile']]
end
depends_on 'libsndfile' if build.include? 'frontend'
def install
system './configure', "--prefix=#{prefix}", '--disable-dependency-tracking'
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system 'make install'
end
end