require 'formula' class YoutubeDl < Formula homepage 'http://rg3.github.io/youtube-dl/' url 'http://youtube-dl.org/downloads/2013.04.28/youtube-dl-2013.04.28.tar.gz' sha1 'e45e217e46d133a29cb2d92303489544d8f9b0d0' def install system "make", "youtube-dl", "PREFIX=#{prefix}" bin.install 'youtube-dl' man1.install 'youtube-dl.1' (prefix+'etc/bash_completion.d').install 'youtube-dl.bash-completion' end def caveats "To use post-processing options, `brew install ffmpeg`." end end