homebrew-core/Formula/youtube-dl.rb
BrewTestBot 3f9b67a67a youtube-dl: update 2014.07.15 bottle.
Closes Homebrew/homebrew#30885.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-07-15 16:00:17 -07:00

41 lines
1.2 KiB
Ruby

require "formula"
# Please only update to versions that are published on PyPi as there are too
# many releases for us to update to every single one:
# https://pypi.python.org/pypi/youtube_dl
class YoutubeDl < Formula
homepage "http://rg3.github.io/youtube-dl/"
url "https://yt-dl.org/downloads/2014.07.15/youtube-dl-2014.07.15.tar.gz"
sha1 "b1636850084395d4c08a1f0a2654fed7fad6743b"
bottle do
cellar :any
sha1 "754fc148d5274446ad9a43e4ea99f96c4ee60d17" => :mavericks
sha1 "bef1521f5f5f20808447add68d1adc02ef2b9c12" => :mountain_lion
sha1 "213a060b3562d4cef9af5c13aab756615d98795d" => :lion
end
head do
url "https://github.com/rg3/youtube-dl.git"
depends_on "pandoc" => :build
end
depends_on "rtmpdump" => :optional
def install
# Remove the legacy executable from the git repo
rm "youtube-dl" if build.head?
system "make", "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