[Midnightbsd-cvs] mports: www/youtube_dl: update to 2008 version.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Oct 8 00:16:21 EDT 2008
Log Message:
-----------
update to 2008 version. add license
Modified Files:
--------------
mports/www/youtube_dl:
Makefile (r1.1 -> r1.2)
distinfo (r1.1 -> r1.2)
mports/www/youtube_dl/files:
patch-youtube-dl (r1.1 -> r1.2)
Added Files:
-----------
mports/www/youtube_dl/files:
conv2avi.patch (r1.1)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/www/youtube_dl/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -L www/youtube_dl/Makefile -L www/youtube_dl/Makefile -u -r1.1 -r1.2
--- www/youtube_dl/Makefile
+++ www/youtube_dl/Makefile
@@ -7,15 +7,15 @@
#
PORTNAME= youtube_dl
-PORTVERSION= 2006.08.28
+PORTVERSION= 2008.07.26
CATEGORIES= www
-MASTER_SITES= http://www.arrakis.es/~rggi3/youtube-dl/ \
- http://pankovpv.sovietservers.com/freebsd/ports/distfiles/
+MASTER_SITES= http://www.arrakis.es/~rggi3/youtube-dl/
DISTFILES= youtube-dl-${PORTVERSION}
EXTRACT_ONLY=
MAINTAINER= ports at MidnightBSD.org
COMMENT= A program for downloading videos from YouTube.com
+LICENSE= publicdom
NO_WRKSUBDIR= yes
NO_BUILD= yes
Index: distinfo
===================================================================
RCS file: /home/cvs/mports/www/youtube_dl/distinfo,v
retrieving revision 1.1
retrieving revision 1.2
diff -L www/youtube_dl/distinfo -L www/youtube_dl/distinfo -u -r1.1 -r1.2
--- www/youtube_dl/distinfo
+++ www/youtube_dl/distinfo
@@ -1,3 +1,3 @@
-MD5 (youtube-dl-2006.08.28) = 3ee9204ace60d4fab8366497452febc0
-SHA256 (youtube-dl-2006.08.28) = 9e24da3777f6da5c28e3be851620d59d914936fdc93d70414becc13f71ff6126
-SIZE (youtube-dl-2006.08.28) = 9267
+MD5 (youtube-dl-2008.07.26) = 71d4a61c648e173cc093105b80760e05
+SHA256 (youtube-dl-2008.07.26) = 81dc89807d837e465bdbdb14aa5b2d8ca7652a04ec68357339b889796667cd19
+SIZE (youtube-dl-2008.07.26) = 29016
--- /dev/null
+++ www/youtube_dl/files/conv2avi.patch
@@ -0,0 +1,42 @@
+--- youtube-dl.orig 2008-07-27 11:21:44.000000000 +0400
++++ youtube-dl 2008-07-27 11:24:01.000000000 +0400
+@@ -288,6 +288,22 @@
+ except (urllib2.URLError, httplib.HTTPException, socket.error), err:
+ retcode = self.trouble('ERROR: unable to download video data: %s' % str(err))
+ continue
++
++ # Convert to avi if needed
++ if self._params['useavi']:
++ avi_filename = '%s.avi' % filename
++
++ try:
++ os.system('%%CONV2AVI_CMD%% "%s" "%s" > %s 2> %s' % (filename, avi_filename, os.path.devnull, os.path.devnull))
++ self.to_stdout('Video file converted to %s' % avi_filename)
++ except OSError, e:
++ retcode = self.trouble('ERROR: unable to convert file: %s' % e.strerror)
++
++ try:
++ os.unlink(filename)
++ except OSError, e:
++ retcode = self.trouble('ERROR: unable to remove downloaded file: %s' % e.strerror)
++
+ break
+ if not suitable_found:
+ retcode = self.trouble('ERROR: no suitable InfoExtractor: %s' % url)
+@@ -773,6 +789,8 @@
+ action='store_true', dest='useliteral', help='use literal title in file name', default=False)
+ parser.add_option('-n', '--netrc',
+ action='store_true', dest='usenetrc', help='use .netrc authentication data', default=False)
++ parser.add_option('-a', '--avi',
++ action='store_true', dest='useavi', help='convert file to MPEG4 format', default=False)
+ parser.add_option('-g', '--get-url',
+ action='store_true', dest='geturl', help='simulate, quiet but print URL', default=False)
+ parser.add_option('-e', '--get-title',
+@@ -829,6 +847,7 @@
+ or u'%(id)s.%(ext)s'),
+ 'ignoreerrors': opts.ignoreerrors,
+ 'ratelimit': opts.ratelimit,
++ 'useavi': opts.useavi,
+ })
+ fd.add_info_extractor(youtube_pl_ie)
+ fd.add_info_extractor(metacafe_ie)
Index: patch-youtube-dl
===================================================================
RCS file: /home/cvs/mports/www/youtube_dl/files/patch-youtube-dl,v
retrieving revision 1.1
retrieving revision 1.2
diff -L www/youtube_dl/files/patch-youtube-dl -L www/youtube_dl/files/patch-youtube-dl -u -r1.1 -r1.2
--- www/youtube_dl/files/patch-youtube-dl
+++ www/youtube_dl/files/patch-youtube-dl
@@ -1,8 +1,8 @@
---- youtube-dl-orig Fri Aug 11 01:00:08 2006
-+++ youtube-dl Sat Aug 12 13:46:38 2006
+--- youtube-dl-orig 2008-07-24 07:42:53.000000000 +0400
++++ youtube-dl 2008-07-24 07:45:30.000000000 +0400
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!%%PYTHON_CMD%%
- #
- # Copyright (c) 2006 Ricardo Garcia Gonzalez
- #
+ # -*- coding: utf-8 -*-
+ # Author: Ricardo Garcia Gonzalez
+ # License: Public domain code
More information about the Midnightbsd-cvs
mailing list