Ravenports generated: 09 Jan 2022 18:36
[ravenports.git] / bucket_6B / youtube-dl
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               youtube-dl
4 VERSION=                2021.12.17
5 KEYWORDS=               www
6 VARIANTS=               standard
7 SDESC[standard]=        Program for downloading videos from YouTube.com
8 HOMEPAGE=               https://youtube-dl.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
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
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 RUN_DEPENDS=            rtmpdump:program:standard
21
22 USES=                   python:sutools
23
24 DISTNAME=               youtube-dl
25
26 LICENSE=                PUBDOM:single
27 LICENSE_FILE=           PUBDOM:{{WRKSRC}}/LICENSE
28 LICENSE_SCHEME=         solo
29
30 FPC_EQUIVALENT=         www/youtube_dl
31
32 BUILD_TARGET=           youtube-dl
33 MAKE_ARGS=              PYTHON={{PYTHON_CMD}}
34
35 post-patch:
36         ${REINPLACE_CMD} -e 's|python devscripts/|${PYTHON_CMD} devscripts/|' \
37                 ${WRKSRC}/Makefile
38
39 post-install:
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
43
44 post-extract:
45         # remove tarball provided version, build our own
46         ${RM} ${WRKSRC}/youtube-dl
47
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
52
53
54 [FILE:107:distinfo]
55 9f3b99c8b778455165b4525f21505e86c7ff565f3ac319e19733d810194135df      3332299 youtube-dl-2021.12.17.tar.gz
56
57
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
62
63
64 [FILE:1892:patches/patch-Makefile]
65 --- Makefile.orig       2021-05-16 15:59:22 UTC
66 +++ Makefile
67 @@ -12,7 +12,7 @@ SHAREDIR ?= $(PREFIX)/share
68  PYTHON ?= /usr/bin/env python
69  
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
73  
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
88  
89  codetest:
90         flake8 .
91 @@ -91,10 +91,6 @@ supportedsites:
92  README.txt: README.md
93         pandoc -f $(MARKDOWN) -t plain README.md -o README.txt
94  
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
99  
100  youtube-dl.bash-completion: youtube_dl/*.py youtube_dl/*/*.py devscripts/bash-completion.in
101         $(PYTHON) devscripts/bash-completion.py
102
103
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 (
108      write_string,
109      render_table,
110  )
111 -from .update import update_self
112  from .downloader import (
113      FileDownloader,
114  )
115 @@ -440,17 +439,13 @@ def _real_main(argv=None):
116      }
117  
118      with YoutubeDL(ydl_opts) as ydl:
119 -        # Update version
120 -        if opts.update_self:
121 -            update_self(ydl.to_screen, opts.verbose, ydl._opener)
122 -
123          # Remove cache dir
124          if opts.rm_cachedir:
125              ydl.cache.remove()
126  
127          # Maybe do nothing
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:
131                  sys.exit()
132  
133              ydl.warn_if_short_id(sys.argv[1:] if argv is None else argv)
134
135
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):
140          action='version',
141          help='Print program version and exit')
142      general.add_option(
143 -        '-U', '--update',
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')
150