Ravenports generated: 03 Sep 2018 17:00
[ravenports.git] / bucket_6B / youtube-dl
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               youtube-dl
4 VERSION=                2018.09.01
5 KEYWORDS=               www
6 VARIANTS=               standard
7 SDESC[standard]=        Program for downloading videos from YouTube.com
8 HOMEPAGE=               http://rg3.github.io/youtube-dl/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
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
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
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-extract:
40         # remove tarball provided version, build our own
41         ${RM} ${WRKSRC}/youtube-dl
42
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
47
48
49 [FILE:107:distinfo]
50 668067434b53f820749e881bb47c1cefb17ec9630beacabfb3ac68429f421d41      3032563 youtube-dl-2018.09.01.tar.gz
51
52
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
57
58
59 [FILE:1892:patches/patch-Makefile]
60 --- Makefile.orig       2018-04-24 18:11:43 UTC
61 +++ Makefile
62 @@ -12,7 +12,7 @@ SHAREDIR ?= $(PREFIX)/share
63  PYTHON ?= /usr/bin/env python
64  
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
68  
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
83  
84  codetest:
85         flake8 .
86 @@ -87,10 +87,6 @@ supportedsites:
87  README.txt: README.md
88         pandoc -f $(MARKDOWN) -t plain README.md -o README.txt
89  
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
94  
95  youtube-dl.bash-completion: youtube_dl/*.py youtube_dl/*/*.py devscripts/bash-completion.in
96         $(PYTHON) devscripts/bash-completion.py
97
98
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 (
103      write_string,
104      render_table,
105  )
106 -from .update import update_self
107  from .downloader import (
108      FileDownloader,
109  )
110 @@ -436,17 +435,13 @@ def _real_main(argv=None):
111      }
112  
113      with YoutubeDL(ydl_opts) as ydl:
114 -        # Update version
115 -        if opts.update_self:
116 -            update_self(ydl.to_screen, opts.verbose, ydl._opener)
117 -
118          # Remove cache dir
119          if opts.rm_cachedir:
120              ydl.cache.remove()
121  
122          # Maybe do nothing
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:
126                  sys.exit()
127  
128              ydl.warn_if_short_id(sys.argv[1:] if argv is None else argv)
129
130
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):
135          action='version',
136          help='Print program version and exit')
137      general.add_option(
138 -        '-U', '--update',
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')
145