[Midnightbsd-cvs] mports [16166] trunk/www/youtube_dl/files: add missing patches
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Apr 12 12:37:51 EDT 2014
Revision: 16166
http://svnweb.midnightbsd.org/mports/?rev=16166
Author: laffer1
Date: 2014-04-12 12:37:50 -0400 (Sat, 12 Apr 2014)
Log Message:
-----------
add missing patches
Added Paths:
-----------
trunk/www/youtube_dl/files/patch-Makefile
trunk/www/youtube_dl/files/patch-youtube_dl____init__.py
Added: trunk/www/youtube_dl/files/patch-Makefile
===================================================================
--- trunk/www/youtube_dl/files/patch-Makefile (rev 0)
+++ trunk/www/youtube_dl/files/patch-Makefile 2014-04-12 16:37:50 UTC (rev 16166)
@@ -0,0 +1,21 @@
+--- Makefile.orig 2013-10-17 06:55:06.000000000 +0800
++++ Makefile 2013-10-26 18:28:59.588795031 +0800
+@@ -10,17 +10,7 @@
+ BINDIR=$(PREFIX)/bin
+ MANDIR=$(PREFIX)/man
+ PYTHON=/usr/bin/env python
+-
+-# set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local
+-ifeq ($(PREFIX),/usr)
+- SYSCONFDIR=/etc
+-else
+- ifeq ($(PREFIX),/usr/local)
+- SYSCONFDIR=/etc
+- else
+- SYSCONFDIR=$(PREFIX)/etc
+- endif
+-endif
++SYSCONFDIR=/etc
+
+ install: youtube-dl youtube-dl.1 youtube-dl.bash-completion
+ install -d $(DESTDIR)$(BINDIR)
Added: trunk/www/youtube_dl/files/patch-youtube_dl____init__.py
===================================================================
--- trunk/www/youtube_dl/files/patch-youtube_dl____init__.py (rev 0)
+++ trunk/www/youtube_dl/files/patch-youtube_dl____init__.py 2014-04-12 16:37:50 UTC (rev 16166)
@@ -0,0 +1,37 @@
+--- ./youtube_dl/__init__.py.orig 2014-02-25 09:29:35.000000000 +0000
++++ ./youtube_dl/__init__.py 2014-02-25 09:29:49.000000000 +0000
+@@ -76,7 +76,6 @@
+ std_headers,
+ write_string,
+ )
+-from .update import update_self
+ from .FileDownloader import (
+ FileDownloader,
+ )
+@@ -206,8 +205,6 @@
+ action='help', help='print this help text and exit')
+ general.add_option('-v', '--version',
+ 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', help='continue on download errors, for example to skip unavailable videos in a playlist', default=False)
+ general.add_option('--abort-on-error',
+@@ -777,17 +774,6 @@
+ if opts.xattrs:
+ ydl.add_post_processor(XAttrMetadataPP())
+
+- # Update version
+- if opts.update_self:
+- update_self(ydl.to_screen, opts.verbose)
+-
+- # Maybe do nothing
+- if (len(all_urls) < 1) and (opts.load_info_filename is None):
+- if not opts.update_self:
+- parser.error(u'you must provide at least one URL')
+- else:
+- sys.exit()
+-
+ try:
+ if opts.load_info_filename is not None:
+ retcode = ydl.download_with_info_file(opts.load_info_filename)
More information about the Midnightbsd-cvs
mailing list