aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-22 21:28:37 -0700
committerAdam Vandenberg2012-08-22 21:28:37 -0700
commitd7d650ab5d9c0528948bf658feb524ff49b785e0 (patch)
treed6a5752fdc62e87e670f91ccfed6acb47ff47f7f /Library/Formula
parent5401d76db054cf326f4b1532a194b6aaac971169 (diff)
downloadhomebrew-d7d650ab5d9c0528948bf658feb524ff49b785e0.tar.bz2
two-lame: use new dsl
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/two-lame.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Formula/two-lame.rb b/Library/Formula/two-lame.rb
index 00d1271de..7fe59e6b3 100644
--- a/Library/Formula/two-lame.rb
+++ b/Library/Formula/two-lame.rb
@@ -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