youtube-dl: revert Python 2.x and 3.x support
This makes youtube-dl harder to use as just a script, and people who need it to call it from python can just install via pip. This reverts commit e83a9bec485e218dd449df93c5564c834fde1a2a.
This commit is contained in:
parent
aadcad99aa
commit
4be3f45676
1 changed files with 3 additions and 9 deletions
|
@ -5,16 +5,10 @@ class YoutubeDl < Formula
|
|||
url 'http://youtube-dl.org/downloads/2013.05.23/youtube-dl-2013.05.23.tar.gz'
|
||||
sha1 '68e70bf1f285536e84e4fdf71c3d27fefd830612'
|
||||
|
||||
depends_on :python => :recommended
|
||||
depends_on :python3 => :optional
|
||||
|
||||
def install
|
||||
python do
|
||||
system python, "setup.py", "install", "--prefix=#{prefix}",
|
||||
"--record=installed.txt",
|
||||
"--single-version-externally-managed"
|
||||
cp bin/'youtube-dl', bin/"youtube-dl#{python.version.major}"
|
||||
end
|
||||
system "make", "youtube-dl", "PREFIX=#{prefix}"
|
||||
bin.install 'youtube-dl'
|
||||
man1.install 'youtube-dl.1'
|
||||
bash_completion.install 'youtube-dl.bash-completion'
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue