youtube-dl: Add HEAD
Closes Homebrew/homebrew#29360. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
e6d3076881
commit
fcf807ca01
1 changed files with 8 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue