1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Program for downloading videos from YouTube.com
8 HOMEPAGE= http://rg3.github.io/youtube-dl/
12 SITES[main]= https://github.com/rg3/youtube-dl/releases/download/2018.09.01/
13 DISTFILE[1]= youtube-dl-2018.09.01.tar.gz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 RUN_DEPENDS= rtmpdump:program:standard
26 LICENSE= PUBDOM:single
27 LICENSE_FILE= PUBDOM:{{WRKSRC}}/LICENSE
30 FPC_EQUIVALENT= www/youtube_dl
32 BUILD_TARGET= youtube-dl
33 MAKE_ARGS= PYTHON={{PYTHON_CMD}}
36 ${REINPLACE_CMD} -e 's|python devscripts/|${PYTHON_CMD} devscripts/|' \
40 # remove tarball provided version, build our own
41 ${RM} ${WRKSRC}/youtube-dl
43 [FILE:169:descriptions/desc.single]
44 youtube-dl is a small command-line program for downloading videos from
45 YouTube.com, metacafe.com, google video, photobucket videos, yahoo videos,
46 dailymotion and others
50 668067434b53f820749e881bb47c1cefb17ec9630beacabfb3ac68429f421d41 3032563 youtube-dl-2018.09.01.tar.gz
53 [FILE:116:manifests/plist.single]
54 @comment left after autoplist
55 etc/bash_completion.d/youtube-dl.bash-completion
56 etc/fish/completions/youtube-dl.fish
59 [FILE:1892:patches/patch-Makefile]
60 --- Makefile.orig 2018-04-24 18:11:43 UTC
62 @@ -12,7 +12,7 @@ SHAREDIR ?= $(PREFIX)/share
63 PYTHON ?= /usr/bin/env python
65 # set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local
66 -SYSCONFDIR = $(shell if [ $(PREFIX) = /usr -o $(PREFIX) = /usr/local ]; then echo /etc; else echo $(PREFIX)/etc; fi)
67 +SYSCONFDIR ?= $(PREFIX)/etc
69 # set markdown input format to "markdown-smart" for pandoc version 2 and to "markdown" for pandoc prior to version 2
70 MARKDOWN = $(shell if [ `pandoc -v | head -n1 | cut -d" " -f2 | head -c1` = "2" ]; then echo markdown-smart; else echo markdown; fi)
71 @@ -23,11 +23,11 @@ install: youtube-dl youtube-dl.1 youtube
72 install -d $(DESTDIR)$(MANDIR)/man1
73 install -m 644 youtube-dl.1 $(DESTDIR)$(MANDIR)/man1
74 install -d $(DESTDIR)$(SYSCONFDIR)/bash_completion.d
75 - install -m 644 youtube-dl.bash-completion $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/youtube-dl
76 + install -m 644 youtube-dl.bash-completion $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/youtube-dl.sh
77 install -d $(DESTDIR)$(SHAREDIR)/zsh/site-functions
78 install -m 644 youtube-dl.zsh $(DESTDIR)$(SHAREDIR)/zsh/site-functions/_youtube-dl
79 - install -d $(DESTDIR)$(SYSCONFDIR)/fish/completions
80 - install -m 644 youtube-dl.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/youtube-dl.fish
81 + install -d $(DESTDIR)$(SHAREDIR)/fish/completions
82 + install -m 644 youtube-dl.fish $(DESTDIR)$(SHAREDIR)/fish/completions/youtube-dl.fish
86 @@ -87,10 +87,6 @@ supportedsites:
88 pandoc -f $(MARKDOWN) -t plain README.md -o README.txt
90 -youtube-dl.1: README.md
91 - $(PYTHON) devscripts/prepare_manpage.py youtube-dl.1.temp.md
92 - pandoc -s -f $(MARKDOWN) -t man youtube-dl.1.temp.md -o youtube-dl.1
93 - rm -f youtube-dl.1.temp.md
95 youtube-dl.bash-completion: youtube_dl/*.py youtube_dl/*/*.py devscripts/bash-completion.in
96 $(PYTHON) devscripts/bash-completion.py
99 [FILE:851:patches/patch-youtube__dl_____init____.py]
100 --- youtube_dl/__init__.py.orig 2018-02-25 22:23:14 UTC
101 +++ youtube_dl/__init__.py
102 @@ -36,7 +36,6 @@ from .utils import (
106 -from .update import update_self
107 from .downloader import (
110 @@ -436,17 +435,13 @@ def _real_main(argv=None):
113 with YoutubeDL(ydl_opts) as ydl:
115 - if opts.update_self:
116 - update_self(ydl.to_screen, opts.verbose, ydl._opener)
123 if (len(all_urls) < 1) and (opts.load_info_filename is None):
124 - if opts.update_self or opts.rm_cachedir:
125 + if opts.rm_cachedir:
128 ydl.warn_if_short_id(sys.argv[1:] if argv is None else argv)
131 [FILE:671:patches/patch-youtube_dl__options.py]
132 --- youtube_dl/options.py.orig 2018-02-22 16:50:23 UTC
133 +++ youtube_dl/options.py
134 @@ -138,10 +138,6 @@ def parseOpts(overrideArguments=None):
136 help='Print program version and exit')
139 - action='store_true', dest='update_self',
140 - help='Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)')
141 - general.add_option(
142 '-i', '--ignore-errors',
143 action='store_true', dest='ignoreerrors', default=False,
144 help='Continue on download errors, for example to skip unavailable videos in a playlist')