# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= youtube-dl VERSION= 2017.09.24 KEYWORDS= www VARIANTS= standard SDESC[standard]= Program for downloading videos from YouTube.com HOMEPAGE= http://rg3.github.io/youtube-dl/ CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= https://github.com/rg3/youtube-dl/releases/download/2017.09.24/ DISTFILE[1]= youtube-dl-2017.09.24.tar.gz:main DF_INDEX= 1 SPKGS[standard]= single OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none RUN_DEPENDS= rtmpdump:program:standard USES= python DISTNAME= youtube-dl FPC_EQUIVALENT= www/youtube_dl BUILD_TARGET= youtube-dl MAKE_ARGS= PYTHON={{PYTHON_CMD}} post-patch: @${REINPLACE_CMD} -e 's|python devscripts/|${PYTHON_CMD} devscripts/|' \ ${WRKSRC}/Makefile post-extract: @# remove tarball provided version, build our own @${RM} ${WRKSRC}/youtube-dl [FILE:169:descriptions/desc.single] youtube-dl is a small command-line program for downloading videos from YouTube.com, metacafe.com, google video, photobucket videos, yahoo videos, dailymotion and others [FILE:107:distinfo] 7d7140ce63377e84a2072b4922809c7a2e90e3916cde2f4f1cc8860664395548 2810181 youtube-dl-2017.09.24.tar.gz [FILE:116:manifests/plist.single] @comment left after autoplist etc/bash_completion.d/youtube-dl.bash-completion etc/fish/completions/youtube-dl.fish [FILE:1761:patches/patch-Makefile] --- Makefile.orig 2016-11-01 19:43:06 UTC +++ Makefile @@ -12,7 +12,7 @@ SHAREDIR ?= $(PREFIX)/share PYTHON ?= /usr/bin/env python # set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local -SYSCONFDIR = $(shell if [ $(PREFIX) = /usr -o $(PREFIX) = /usr/local ]; then echo /etc; else echo $(PREFIX)/etc; fi) +SYSCONFDIR ?= $(PREFIX)/etc install: youtube-dl youtube-dl.1 youtube-dl.bash-completion youtube-dl.zsh youtube-dl.fish install -d $(DESTDIR)$(BINDIR) @@ -20,11 +20,11 @@ install: youtube-dl youtube-dl.1 youtube install -d $(DESTDIR)$(MANDIR)/man1 install -m 644 youtube-dl.1 $(DESTDIR)$(MANDIR)/man1 install -d $(DESTDIR)$(SYSCONFDIR)/bash_completion.d - install -m 644 youtube-dl.bash-completion $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/youtube-dl + install -m 644 youtube-dl.bash-completion $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/youtube-dl.sh install -d $(DESTDIR)$(SHAREDIR)/zsh/site-functions install -m 644 youtube-dl.zsh $(DESTDIR)$(SHAREDIR)/zsh/site-functions/_youtube-dl - install -d $(DESTDIR)$(SYSCONFDIR)/fish/completions - install -m 644 youtube-dl.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/youtube-dl.fish + install -d $(DESTDIR)$(SHAREDIR)/fish/completions + install -m 644 youtube-dl.fish $(DESTDIR)$(SHAREDIR)/fish/completions/youtube-dl.fish codetest: flake8 . @@ -68,11 +68,6 @@ supportedsites: README.txt: README.md pandoc -f markdown -t plain README.md -o README.txt -youtube-dl.1: README.md - $(PYTHON) devscripts/prepare_manpage.py youtube-dl.1.temp.md - pandoc -s -f markdown -t man youtube-dl.1.temp.md -o youtube-dl.1 - rm -f youtube-dl.1.temp.md - youtube-dl.bash-completion: youtube_dl/*.py youtube_dl/*/*.py devscripts/bash-completion.in $(PYTHON) devscripts/bash-completion.py [FILE:850:patches/patch-youtube_dl____init__.py] --- youtube_dl/__init__.py.orig 2016-04-28 23:05:35 UTC +++ youtube_dl/__init__.py @@ -36,7 +36,6 @@ from .utils import ( std_headers, write_string, ) -from .update import update_self from .downloader import ( FileDownloader, ) @@ -384,17 +383,13 @@ def _real_main(argv=None): } with YoutubeDL(ydl_opts) as ydl: - # Update version - if opts.update_self: - update_self(ydl.to_screen, opts.verbose, ydl._opener) - # Remove cache dir if opts.rm_cachedir: ydl.cache.remove() # Maybe do nothing if (len(all_urls) < 1) and (opts.load_info_filename is None): - if opts.update_self or opts.rm_cachedir: + if opts.rm_cachedir: sys.exit() ydl.warn_if_short_id(sys.argv[1:] if argv is None else argv) [FILE:671:patches/patch-youtube_dl__options.py] --- youtube_dl/options.py.orig 2016-04-28 23:04:36 UTC +++ youtube_dl/options.py @@ -127,10 +127,6 @@ def parseOpts(overrideArguments=None): action='version', help='Print program version and exit') general.add_option( - '-U', '--update', - action='store_true', dest='update_self', - help='Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)') - general.add_option( '-i', '--ignore-errors', action='store_true', dest='ignoreerrors', default=False, help='Continue on download errors, for example to skip unavailable videos in a playlist')