diff options
| author | Jack Nagel | 2012-08-13 09:35:38 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-13 09:35:38 -0500 |
| commit | e4c89eef4c46af2c504383ae98c7bcd066a8cb90 (patch) | |
| tree | 3f65a16db1749b76ba066fbb5bc39a0009a714f5 /Library | |
| parent | e87a6f7bc02d9b2a4edf731ae90de6213382e480 (diff) | |
| download | homebrew-e4c89eef4c46af2c504383ae98c7bcd066a8cb90.tar.bz2 | |
x264: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/x264.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/x264.rb b/Library/Formula/x264.rb index 9270c768d..8c57b7eb9 100644 --- a/Library/Formula/x264.rb +++ b/Library/Formula/x264.rb @@ -10,17 +10,15 @@ class X264 < Formula depends_on 'yasm' => :build - def options - [["--10-bit", "Make a 10-bit x264. (default: 8-bit)"]] - end + option '10-bit', 'Build a 10-bit x264 (default: 8-bit)' def install - if ARGV.build_head? + if build.head? ENV['GIT_DIR'] = cached_download/'.git' system './version.sh' end args = ["--prefix=#{prefix}", "--enable-shared"] - args << "--bit-depth=10" if ARGV.include?('--10-bit') + args << "--bit-depth=10" if build.include? '10-bit' system "./configure", *args |
