diff options
| author | Mike McQuaid | 2015-04-11 19:08:02 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-21 09:33:42 +0100 |
| commit | d336ff57fbcb31bce5b168bd0594a97d8270330c (patch) | |
| tree | 5c733782b23c6a73c37ca1cdf35511f2613c0d80 /Library/Formula | |
| parent | bd6736040508f10846971d83826b8a4c30412225 (diff) | |
| download | homebrew-d336ff57fbcb31bce5b168bd0594a97d8270330c.tar.bz2 | |
mkvtoolnix: use RubyRequirement.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mkvtoolnix.rb | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/Library/Formula/mkvtoolnix.rb b/Library/Formula/mkvtoolnix.rb index 8080059c0..91e15a01c 100644 --- a/Library/Formula/mkvtoolnix.rb +++ b/Library/Formula/mkvtoolnix.rb @@ -1,24 +1,3 @@ -class Ruby19 < Requirement - fatal true - default_formula "ruby" - - satisfy :build_env => false do - next unless which "ruby" - version = /\d\.\d/.match `ruby --version 2>&1` - next unless version - Version.new(version.to_s) >= Version.new("1.9") - end - - env do - ENV.prepend_path "PATH", which("ruby").dirname - end - - def message; <<-EOS.undent - The mkvtoolnix buildsystem needs Ruby >=1.9 - EOS - end -end - class Mkvtoolnix < Formula homepage "https://www.bunkus.org/videotools/mkvtoolnix/" url "https://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-7.7.0.tar.xz" @@ -41,7 +20,7 @@ class Mkvtoolnix < Formula option "with-qt5", "Build with experimental QT GUI" depends_on "pkg-config" => :build - depends_on Ruby19 + depends_on :ruby => "1.9" depends_on "libogg" depends_on "libvorbis" depends_on "flac" => :recommended |
