1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Program for downloading videos from YouTube.com
8 HOMEPAGE= https://youtube-dl.org/
12 SITES[main]= https://github.com/ytdl-org/youtube-dl/releases/download/2021.12.17/
13 DISTFILE[1]= youtube-dl-2021.12.17.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 # there's no docs subpackage, so remove README.txt
41 # Worse, it's not even in $STD_DOCDIR
42 ${RM} -r ${STAGEDIR}${PREFIX}/share/doc/youtube_dl
45 # remove tarball provided version, build our own
46 ${RM} ${WRKSRC}/youtube-dl
48 [FILE:169:descriptions/desc.single]
49 youtube-dl is a small command-line program for downloading videos from
50 YouTube.com, metacafe.com, google video, photobucket videos, yahoo videos,
51 dailymotion and others
55 9f3b99c8b778455165b4525f21505e86c7ff565f3ac319e19733d810194135df 3332299 youtube-dl-2021.12.17.tar.gz
58 [FILE:116:manifests/plist.single]
59 @comment left after autoplist
60 etc/bash_completion.d/youtube-dl.bash-completion
61 etc/fish/completions/youtube-dl.fish
64 [FILE:1892:patches/patch-Makefile]
65 --- Makefile.orig 2021-05-16 15:59:22 UTC
67 @@ -12,7 +12,7 @@ SHAREDIR ?= $(PREFIX)/share
68 PYTHON ?= /usr/bin/env python
70 # set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local
71 -SYSCONFDIR = $(shell if [ $(PREFIX) = /usr -o $(PREFIX) = /usr/local ]; then echo /etc; else echo $(PREFIX)/etc; fi)
72 +SYSCONFDIR ?= $(PREFIX)/etc
74 # set markdown input format to "markdown-smart" for pandoc version 2 and to "markdown" for pandoc prior to version 2
75 MARKDOWN = $(shell if [ `pandoc -v | head -n1 | cut -d" " -f2 | head -c1` = "2" ]; then echo markdown-smart; else echo markdown; fi)
76 @@ -23,11 +23,11 @@ install: youtube-dl youtube-dl.1 youtube
77 install -d $(DESTDIR)$(MANDIR)/man1
78 install -m 644 youtube-dl.1 $(DESTDIR)$(MANDIR)/man1
79 install -d $(DESTDIR)$(SYSCONFDIR)/bash_completion.d
80 - install -m 644 youtube-dl.bash-completion $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/youtube-dl
81 + install -m 644 youtube-dl.bash-completion $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/youtube-dl.sh
82 install -d $(DESTDIR)$(SHAREDIR)/zsh/site-functions
83 install -m 644 youtube-dl.zsh $(DESTDIR)$(SHAREDIR)/zsh/site-functions/_youtube-dl
84 - install -d $(DESTDIR)$(SYSCONFDIR)/fish/completions
85 - install -m 644 youtube-dl.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/youtube-dl.fish
86 + install -d $(DESTDIR)$(SHAREDIR)/fish/completions
87 + install -m 644 youtube-dl.fish $(DESTDIR)$(SHAREDIR)/fish/completions/youtube-dl.fish
91 @@ -91,10 +91,6 @@ supportedsites:
93 pandoc -f $(MARKDOWN) -t plain README.md -o README.txt
95 -youtube-dl.1: README.md
96 - $(PYTHON) devscripts/prepare_manpage.py youtube-dl.1.temp.md
97 - pandoc -s -f $(MARKDOWN) -t man youtube-dl.1.temp.md -o youtube-dl.1
98 - rm -f youtube-dl.1.temp.md
100 youtube-dl.bash-completion: youtube_dl/*.py youtube_dl/*/*.py devscripts/bash-completion.in
101 $(PYTHON) devscripts/bash-completion.py
104 [FILE:851:patches/patch-youtube__dl_____init____.py]
105 --- youtube_dl/__init__.py.orig 2021-05-16 15:59:22 UTC
106 +++ youtube_dl/__init__.py
107 @@ -36,7 +36,6 @@ from .utils import (
111 -from .update import update_self
112 from .downloader import (
115 @@ -440,17 +439,13 @@ def _real_main(argv=None):
118 with YoutubeDL(ydl_opts) as ydl:
120 - if opts.update_self:
121 - update_self(ydl.to_screen, opts.verbose, ydl._opener)
128 if (len(all_urls) < 1) and (opts.load_info_filename is None):
129 - if opts.update_self or opts.rm_cachedir:
130 + if opts.rm_cachedir:
133 ydl.warn_if_short_id(sys.argv[1:] if argv is None else argv)
136 [FILE:671:patches/patch-youtube_dl__options.py]
137 --- youtube_dl/options.py.orig 2021-05-16 15:59:22 UTC
138 +++ youtube_dl/options.py
139 @@ -138,10 +138,6 @@ def parseOpts(overrideArguments=None):
141 help='Print program version and exit')
144 - action='store_true', dest='update_self',
145 - help='Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)')
146 - general.add_option(
147 '-i', '--ignore-errors',
148 action='store_true', dest='ignoreerrors', default=False,
149 help='Continue on download errors, for example to skip unavailable videos in a playlist')