Files
tigerbrew/Library/Formula/youtube-dl.rb
T
asaph ed1e97140b youtube-dl 2014.02.25.1
Closes #26997.

Signed-off-by: Brett Koonce <koonce@gmail.com>
2014-02-25 15:59:06 -06:00

25 lines
644 B
Ruby

require 'formula'
class YoutubeDl < Formula
homepage 'http://rg3.github.io/youtube-dl/'
url 'https://yt-dl.org/downloads/2014.02.25.1/youtube-dl-2014.02.25.1.tar.gz'
sha1 'd322895f31e06a2ff6ae5d78d620d6efb1444ec7'
depends_on 'rtmpdump' => :optional
def install
system "make", "youtube-dl", "PREFIX=#{prefix}"
bin.install 'youtube-dl'
man1.install 'youtube-dl.1'
bash_completion.install 'youtube-dl.bash-completion'
end
def caveats
"To use post-processing options, `brew install ffmpeg`."
end
test do
system "#{bin}/youtube-dl", '--simulate', 'http://www.youtube.com/watch?v=he2a4xK8ctk'
end
end