Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2008 10:31:29 GMT
From:      Pankov Pavel <pankov_p@mail.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/122111: [patch][maintainer update]Update port www/youtube_dl to 2008.03.22
Message-ID:  <200803261031.m2QAVTWQ036002@www.freebsd.org>
Resent-Message-ID: <200803261040.m2QAe1H8076691@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         122111
>Category:       ports
>Synopsis:       [patch][maintainer update]Update port www/youtube_dl to 2008.03.22
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 26 10:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Pankov Pavel
>Release:        6.3-STABLE
>Organization:
MPEI
>Environment:
FreeBSD vds.pankov.pp.ru 6.3-STABLE FreeBSD 6.3-STABLE #4: Tue Mar 18 05:50:02 CET 2008     root@dione.ispsystem.net:/root/src/sys/i386/compile/ISPSYSTEM_PAED  i386
>Description:
- Update to 2008.03.22
- Fix conv2avi.patch once again
>How-To-Repeat:

>Fix:
Apply the attached patch. It's also aviable at this URL: http://www.pankov.pp.ru/stuff/youtube_dl-port-2008.03.22.diff

Patch attached with submission follows:

Index: www/youtube_dl/Makefile
===================================================================
RCS file: /home/ncvs/ports/www/youtube_dl/Makefile,v
retrieving revision 1.19
diff -u -r1.19 Makefile
--- www/youtube_dl/Makefile	13 Mar 2008 20:57:18 -0000	1.19
+++ www/youtube_dl/Makefile	26 Mar 2008 10:02:54 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	youtube_dl
-PORTVERSION=	2008.03.08
+PORTVERSION=	2008.03.22
 CATEGORIES=	www
 MASTER_SITES=	http://www.arrakis.es/~rggi3/youtube-dl/
 DISTNAME=	youtube-dl-${PORTVERSION}
Index: www/youtube_dl/distinfo
===================================================================
RCS file: /home/ncvs/ports/www/youtube_dl/distinfo,v
retrieving revision 1.16
diff -u -r1.16 distinfo
--- www/youtube_dl/distinfo	13 Mar 2008 20:57:18 -0000	1.16
+++ www/youtube_dl/distinfo	26 Mar 2008 10:02:54 -0000
@@ -1,3 +1,3 @@
-MD5 (youtube-dl-2008.03.08) = 026eee27b6186b3729f842e2cc10cd0e
-SHA256 (youtube-dl-2008.03.08) = 30b491cece2bae9525e95f26dcb7d238eb0487fa689696faf166b590fd50b707
-SIZE (youtube-dl-2008.03.08) = 15306
+MD5 (youtube-dl-2008.03.22) = a86bfb24c5f9b7aff0c4ec2975c1a03c
+SHA256 (youtube-dl-2008.03.22) = c65577f00acc19dc7d71e1e41664a665961f8075b2b7f16a433f97eedfbd0f26
+SIZE (youtube-dl-2008.03.22) = 15750
Index: www/youtube_dl/files/conv2avi.patch
===================================================================
RCS file: /home/ncvs/ports/www/youtube_dl/files/conv2avi.patch,v
retrieving revision 1.4
diff -u -r1.4 conv2avi.patch
--- www/youtube_dl/files/conv2avi.patch	13 Mar 2008 20:57:18 -0000	1.4
+++ www/youtube_dl/files/conv2avi.patch	26 Mar 2008 10:02:54 -0000
@@ -1,44 +1,37 @@
-Index: www/youtube_dl/files/conv2avi.patch
-===================================================================
-RCS file: www/youtube_dl/files/conv2avi.patch
-diff -N www/youtube_dl/files/conv2avi.patch
---- /dev/null	1 Jan 1970 00:00:00 -0000
-+++ www/youtube_dl/files/conv2avi.patch	31 Jan 2008 19:32:45 -0000
-@@ -0,0 +1,37 @@
-+--- youtube-dl.orig	Wed Jan 30 14:18:50 2008
-++++ youtube-dl	Thu Jan 31 21:36:49 2008
-+@@ -208,6 +208,7 @@
-+ cmdl_parser.add_option('-t', '--title', action='store_true', dest='use_title', help='use title in file name')
-+ cmdl_parser.add_option('-l', '--literal', action='store_true', dest='use_literal', help='use literal title in file name')
-+ cmdl_parser.add_option('-n', '--netrc', action='store_true', dest='use_netrc', help='use .netrc authentication data')
-++cmdl_parser.add_option('-a', '--avi', action='store_true', dest='use_avi', help='output file in avi format')
-+ cmdl_parser.add_option('-g', '--get-url', action='store_true', dest='get_url', help='print final video URL only')
-+ cmdl_parser.add_option('-2', '--title-too', action='store_true', dest='get_title', help='used with -g, print title too')
-+ (cmdl_opts, cmdl_args) = cmdl_parser.parse_args()
-+@@ -382,6 +383,26 @@
-+ 
-+ except KeyboardInterrupt:
-+ 	sys.exit('\n')
-++
-++# Convert to avi if needed
-++if cmdl_opts.use_avi:
-++	if cmdl_opts.outfile is None:
-++		avi_filename = '%s.avi' % video_filename[:-4]
-++	else:
-++		avi_filename = '%s.avi' % video_filename
-++
-++	try:
-++		os.system('%%CONV2AVI_CMD%% "%s" "%s" > %s 2> %s' % (video_filename, avi_filename, os.path.devnull, os.path.devnull))
-++		cond_print('Video file converted to %s\n' % avi_filename)
-++	except OSError:
-++		sys.exit('Error: unable to convert file.\n')
-++	except KeyboardInterrupt:
-++		sys.exit('\n')
-++
-++	try:
-++		os.unlink(video_filename)
-++	except OSError:
-++		sys.exit('Error: unable to remove downloaded file.\n')
-+ 
-+ # Finish
-+ sys.exit()
+--- youtube-dl.orig	Wed Jan 30 14:18:50 2008
++++ youtube-dl	Thu Jan 31 21:36:49 2008
+@@ -208,6 +208,7 @@
+ cmdl_parser.add_option('-t', '--title', action='store_true', dest='use_title', help='use title in file name')
+ cmdl_parser.add_option('-l', '--literal', action='store_true', dest='use_literal', help='use literal title in file name')
+ cmdl_parser.add_option('-n', '--netrc', action='store_true', dest='use_netrc', help='use .netrc authentication data')
++cmdl_parser.add_option('-a', '--avi', action='store_true', dest='use_avi', help='convert file to MPEG4 format')
+ cmdl_parser.add_option('-g', '--get-url', action='store_true', dest='get_url', help='print final video URL only')
+ cmdl_parser.add_option('-2', '--title-too', action='store_true', dest='get_title', help='used with -g, print title too')
+ (cmdl_opts, cmdl_args) = cmdl_parser.parse_args()
+@@ -382,6 +383,26 @@
+ 
+ except KeyboardInterrupt:
+ 	sys.exit('\n')
++
++# Convert to avi if needed
++if cmdl_opts.use_avi and not cmdl_opts.best_quality:
++	if cmdl_opts.outfile is None:
++		avi_filename = '%s.avi' % video_filename[:-4]
++	else:
++		avi_filename = '%s.avi' % video_filename
++
++	try:
++		os.system('%%CONV2AVI_CMD%% "%s" "%s" > %s 2> %s' % (video_filename, avi_filename, os.path.devnull, os.path.devnull))
++		cond_print('Video file converted to %s\n' % avi_filename)
++	except OSError:
++		sys.exit('Error: unable to convert file.\n')
++	except KeyboardInterrupt:
++		sys.exit('\n')
++
++	try:
++		os.unlink(video_filename)
++	except OSError:
++		sys.exit('Error: unable to remove downloaded file.\n')
+ 
+ # Finish
+ sys.exit()


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803261031.m2QAVTWQ036002>