[Midnightbsd-cvs] mports [17946] trunk/www/youtube_dl: youtube downloader 2014.11.24
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Tue Dec 30 10:32:50 EST 2014
Revision: 17946
http://svnweb.midnightbsd.org/mports/?rev=17946
Author: laffer1
Date: 2014-12-30 10:32:49 -0500 (Tue, 30 Dec 2014)
Log Message:
-----------
youtube downloader 2014.11.24
Modified Paths:
--------------
trunk/www/youtube_dl/Makefile
trunk/www/youtube_dl/distinfo
trunk/www/youtube_dl/files/patch-Makefile
trunk/www/youtube_dl/files/patch-youtube_dl____init__.py
Added Paths:
-----------
trunk/www/youtube_dl/files/patch-youtube_dl__options.py
Modified: trunk/www/youtube_dl/Makefile
===================================================================
--- trunk/www/youtube_dl/Makefile 2014-12-30 15:26:22 UTC (rev 17945)
+++ trunk/www/youtube_dl/Makefile 2014-12-30 15:32:49 UTC (rev 17946)
@@ -1,7 +1,7 @@
# $MidnightBSD$
PORTNAME= youtube_dl
-PORTVERSION= 2014.08.10
+PORTVERSION= 2014.11.24
CATEGORIES= www
MASTER_SITES= https://yt-dl.org/downloads/${PORTVERSION}/
DISTNAME= youtube-dl-${PORTVERSION}
@@ -16,8 +16,9 @@
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
-USES= python:2,run
ALL_TARGET= youtube-dl
+MAKE_ARGS= PYTHON=${PYTHON_CMD}
+USES= python:run
OPTIONS_DEFINE= BASH RTMPDUMP FFMPEG
OPTIONS_DEFAULT=RTMPDUMP
Modified: trunk/www/youtube_dl/distinfo
===================================================================
--- trunk/www/youtube_dl/distinfo 2014-12-30 15:26:22 UTC (rev 17945)
+++ trunk/www/youtube_dl/distinfo 2014-12-30 15:32:49 UTC (rev 17946)
@@ -1,2 +1,2 @@
-SHA256 (youtube-dl-2014.08.10.tar.gz) = a1131ff8aa636b6e99baf1b6226dab137500cd0a5cdeb4d76db102be4138caa9
-SIZE (youtube-dl-2014.08.10.tar.gz) = 931916
+SHA256 (youtube-dl-2014.11.24.tar.gz) = 3bae2155e429c3409bfac431330a86c931ea36d87c4c07e793bf0ea0cbfc1cbf
+SIZE (youtube-dl-2014.11.24.tar.gz) = 1149666
Modified: trunk/www/youtube_dl/files/patch-Makefile
===================================================================
--- trunk/www/youtube_dl/files/patch-Makefile 2014-12-30 15:26:22 UTC (rev 17945)
+++ trunk/www/youtube_dl/files/patch-Makefile 2014-12-30 15:32:49 UTC (rev 17946)
@@ -1,9 +1,9 @@
---- Makefile.orig 2013-10-17 06:55:06.000000000 +0800
-+++ Makefile 2013-10-26 18:28:59.588795031 +0800
+--- Makefile.orig 2014-09-14 14:48:07 UTC
++++ Makefile
@@ -10,17 +10,7 @@
- BINDIR=$(PREFIX)/bin
- MANDIR=$(PREFIX)/man
- PYTHON=/usr/bin/env python
+ 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)
@@ -15,7 +15,7 @@
- SYSCONFDIR=$(PREFIX)/etc
- endif
-endif
-+SYSCONFDIR=/etc
++SYSCONFDIR ?= /etc
install: youtube-dl youtube-dl.1 youtube-dl.bash-completion
install -d $(DESTDIR)$(BINDIR)
Modified: trunk/www/youtube_dl/files/patch-youtube_dl____init__.py
===================================================================
--- trunk/www/youtube_dl/files/patch-youtube_dl____init__.py 2014-12-30 15:26:22 UTC (rev 17945)
+++ trunk/www/youtube_dl/files/patch-youtube_dl____init__.py 2014-12-30 15:32:49 UTC (rev 17946)
@@ -1,37 +1,29 @@
---- ./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 @@
+--- youtube_dl/__init__.py.orig 2014-11-23 17:50:21.000000000 +0800
++++ youtube_dl/__init__.py 2014-11-23 21:17:37.918929006 +0800
+@@ -34,7 +34,6 @@
std_headers,
write_string,
)
-from .update import update_self
- from .FileDownloader import (
+ from .downloader 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())
+@@ -324,17 +323,13 @@
+ ydl.add_post_processor(ExecAfterDownloadPP(
+ verboseOutput=opts.verbose, exec_cmd=opts.exec_cmd))
- # 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)
+ # 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)
Added: trunk/www/youtube_dl/files/patch-youtube_dl__options.py
===================================================================
--- trunk/www/youtube_dl/files/patch-youtube_dl__options.py (rev 0)
+++ trunk/www/youtube_dl/files/patch-youtube_dl__options.py 2014-12-30 15:32:49 UTC (rev 17946)
@@ -0,0 +1,13 @@
+--- youtube_dl/options.py.orig 2014-11-15 22:16:23.000000000 +0800
++++ youtube_dl/options.py 2014-11-22 12:34:15.188052389 +0800
+@@ -125,10 +125,6 @@
+ 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')
Property changes on: trunk/www/youtube_dl/files/patch-youtube_dl__options.py
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list