2010-07-25 02:23:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2012-09-28 09:45:57 +00:00
|
|
|
class YoutubeDl < Formula
|
2013-04-07 02:34:41 +00:00
|
|
|
homepage 'http://rg3.github.io/youtube-dl/'
|
2013-04-11 17:23:05 +00:00
|
|
|
url 'http://youtube-dl.org/downloads/2013.04.11/youtube-dl-2013.04.11.tar.gz'
|
|
|
|
sha1 '6c5119cf3a80ab0dbba63ea63ab6a9dba8b5e3a2'
|
2012-09-28 09:45:57 +00:00
|
|
|
|
|
|
|
def install
|
2012-12-03 02:12:27 +00:00
|
|
|
system "make", "youtube-dl", "PREFIX=#{prefix}"
|
2012-09-28 09:45:57 +00:00
|
|
|
bin.install 'youtube-dl'
|
2013-01-04 20:56:29 +00:00
|
|
|
man1.install 'youtube-dl.1'
|
2013-01-18 11:34:49 +00:00
|
|
|
(prefix+'etc/bash_completion.d').install 'youtube-dl.bash-completion'
|
2012-09-28 09:45:57 +00:00
|
|
|
end
|
2013-01-24 12:54:40 +00:00
|
|
|
|
|
|
|
def caveats
|
|
|
|
"To use post-processing options, `brew install ffmpeg`."
|
|
|
|
end
|
2010-07-25 02:23:08 +00:00
|
|
|
end
|