youtube-dl: Add HEAD

Closes Homebrew/homebrew#29360.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jaime Marquínez Ferrándiz 2014-05-18 09:54:08 +02:00 committed by Jack Nagel
parent e6d3076881
commit fcf807ca01

View file

@ -15,10 +15,17 @@ class YoutubeDl < Formula
sha1 "dd26274166e03a674fc96b1cb37fb7023d119cda" => :lion sha1 "dd26274166e03a674fc96b1cb37fb7023d119cda" => :lion
end end
head do
url "https://github.com/rg3/youtube-dl.git"
depends_on "pandoc" => :build
end
depends_on "rtmpdump" => :optional depends_on "rtmpdump" => :optional
def install def install
system "make", "youtube-dl", "PREFIX=#{prefix}" # Remove the legacy executable from the git repo
rm "youtube-dl" if build.head?
system "make", "PREFIX=#{prefix}"
bin.install "youtube-dl" bin.install "youtube-dl"
man1.install "youtube-dl.1" man1.install "youtube-dl.1"
bash_completion.install "youtube-dl.bash-completion" bash_completion.install "youtube-dl.bash-completion"