Ravenports generated: 15 Mar 2018 09:42
[ravenports.git] / bucket_6B / youtube-dl
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               youtube-dl
4 VERSION=                2018.03.14
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.03.14/
13 DISTFILE[1]=            youtube-dl-2018.03.14.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 FPC_EQUIVALENT=         www/youtube_dl
27
28 BUILD_TARGET=           youtube-dl
29 MAKE_ARGS=              PYTHON={{PYTHON_CMD}}
30
31 post-patch:
32         @${REINPLACE_CMD} -e 's|python devscripts/|${PYTHON_CMD} devscripts/|' \
33                 ${WRKSRC}/Makefile
34
35 post-extract:
36         @# remove tarball provided version, build our own
37         @${RM} ${WRKSRC}/youtube-dl
38
39 [FILE:169:descriptions/desc.single]
40 youtube-dl is a small command-line program for downloading videos from
41 YouTube.com, metacafe.com, google video, photobucket videos, yahoo videos,
42 dailymotion and others
43
44
45 [FILE:107:distinfo]
46 902699b163ec17a0e5ff40eae6db8bfb357427df920d954b734930fc4e3a1249      2930477 youtube-dl-2018.03.14.tar.gz
47
48
49 [FILE:116:manifests/plist.single]
50 @comment left after autoplist
51 etc/bash_completion.d/youtube-dl.bash-completion
52 etc/fish/completions/youtube-dl.fish
53
54
55 [FILE:1761:patches/patch-Makefile]
56 --- Makefile.orig       2018-02-22 16:50:17 UTC
57 +++ Makefile
58 @@ -12,7 +12,7 @@ SHAREDIR ?= $(PREFIX)/share
59  PYTHON ?= /usr/bin/env python
60  
61  # set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local
62 -SYSCONFDIR = $(shell if [ $(PREFIX) = /usr -o $(PREFIX) = /usr/local ]; then echo /etc; else echo $(PREFIX)/etc; fi)
63 +SYSCONFDIR ?= $(PREFIX)/etc
64  
65  install: youtube-dl youtube-dl.1 youtube-dl.bash-completion youtube-dl.zsh youtube-dl.fish
66         install -d $(DESTDIR)$(BINDIR)
67 @@ -20,11 +20,11 @@ install: youtube-dl youtube-dl.1 youtube
68         install -d $(DESTDIR)$(MANDIR)/man1
69         install -m 644 youtube-dl.1 $(DESTDIR)$(MANDIR)/man1
70         install -d $(DESTDIR)$(SYSCONFDIR)/bash_completion.d
71 -       install -m 644 youtube-dl.bash-completion $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/youtube-dl
72 +       install -m 644 youtube-dl.bash-completion $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/youtube-dl.sh
73         install -d $(DESTDIR)$(SHAREDIR)/zsh/site-functions
74         install -m 644 youtube-dl.zsh $(DESTDIR)$(SHAREDIR)/zsh/site-functions/_youtube-dl
75 -       install -d $(DESTDIR)$(SYSCONFDIR)/fish/completions
76 -       install -m 644 youtube-dl.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/youtube-dl.fish
77 +       install -d $(DESTDIR)$(SHAREDIR)/fish/completions
78 +       install -m 644 youtube-dl.fish $(DESTDIR)$(SHAREDIR)/fish/completions/youtube-dl.fish
79  
80  codetest:
81         flake8 .
82 @@ -84,11 +84,6 @@ supportedsites:
83  README.txt: README.md
84         pandoc -f markdown -t plain README.md -o README.txt
85  
86 -youtube-dl.1: README.md
87 -       $(PYTHON) devscripts/prepare_manpage.py youtube-dl.1.temp.md
88 -       pandoc -s -f markdown -t man youtube-dl.1.temp.md -o youtube-dl.1
89 -       rm -f youtube-dl.1.temp.md
90 -
91  youtube-dl.bash-completion: youtube_dl/*.py youtube_dl/*/*.py devscripts/bash-completion.in
92         $(PYTHON) devscripts/bash-completion.py
93  
94
95
96 [FILE:851:patches/patch-youtube__dl_____init____.py]
97 --- youtube_dl/__init__.py.orig 2018-02-25 22:23:14 UTC
98 +++ youtube_dl/__init__.py
99 @@ -36,7 +36,6 @@ from .utils import (
100      write_string,
101      render_table,
102  )
103 -from .update import update_self
104  from .downloader import (
105      FileDownloader,
106  )
107 @@ -436,17 +435,13 @@ def _real_main(argv=None):
108      }
109  
110      with YoutubeDL(ydl_opts) as ydl:
111 -        # Update version
112 -        if opts.update_self:
113 -            update_self(ydl.to_screen, opts.verbose, ydl._opener)
114 -
115          # Remove cache dir
116          if opts.rm_cachedir:
117              ydl.cache.remove()
118  
119          # Maybe do nothing
120          if (len(all_urls) < 1) and (opts.load_info_filename is None):
121 -            if opts.update_self or opts.rm_cachedir:
122 +            if opts.rm_cachedir:
123                  sys.exit()
124  
125              ydl.warn_if_short_id(sys.argv[1:] if argv is None else argv)
126
127
128 [FILE:671:patches/patch-youtube_dl__options.py]
129 --- youtube_dl/options.py.orig  2018-02-22 16:50:23 UTC
130 +++ youtube_dl/options.py
131 @@ -138,10 +138,6 @@ def parseOpts(overrideArguments=None):
132          action='version',
133          help='Print program version and exit')
134      general.add_option(
135 -        '-U', '--update',
136 -        action='store_true', dest='update_self',
137 -        help='Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)')
138 -    general.add_option(
139          '-i', '--ignore-errors',
140          action='store_true', dest='ignoreerrors', default=False,
141          help='Continue on download errors, for example to skip unavailable videos in a playlist')
142