aboutsummaryrefslogtreecommitdiff
path: root/www/youtube_dl
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2010-12-05 15:20:05 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2010-12-05 15:20:05 +0000
commit0d4a954159e3e8815a074f5bfd00db6d01850130 (patch)
treeb459c9dfb4f2a25545a0b33d9cd645d193de67c1 /www/youtube_dl
parent1e8de65adde771ae7fe85af6a44ef7c708edcb6e (diff)
Notes
Diffstat (limited to 'www/youtube_dl')
-rw-r--r--www/youtube_dl/Makefile12
-rw-r--r--www/youtube_dl/distinfo4
-rw-r--r--www/youtube_dl/files/patch-youtube-dl11
-rw-r--r--www/youtube_dl/pkg-descr5
4 files changed, 26 insertions, 6 deletions
diff --git a/www/youtube_dl/Makefile b/www/youtube_dl/Makefile
index 3b1cb53a87bd..dbfbb96057c9 100644
--- a/www/youtube_dl/Makefile
+++ b/www/youtube_dl/Makefile
@@ -6,9 +6,9 @@
#
PORTNAME= youtube_dl
-PORTVERSION= 2010.10.24
+PORTVERSION= 2010.11.19
CATEGORIES= www
-MASTER_SITES= http://bitbucket.org/rg3/youtube-dl/raw/${PORTVERSION}/
+MASTER_SITES= https://github.com/rg3/youtube-dl/raw/${PORTVERSION}/
DISTNAME= youtube-dl
EXTRACT_SUFX= # empty
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
@@ -23,6 +23,14 @@ USE_PYTHON_RUN= 2.5-2.7
PLIST_FILES= bin/youtube-dl
+OPTIONS= RTMPDUMP "Use RTMPDUMP to download rtmp video streams" on
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_RTMPDUMP)
+RUN_DEPENDS+= rtmpdump:${PORTSDIR}/multimedia/rtmpdump
+.endif
+
post-extract:
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKSRC}/youtube-dl
diff --git a/www/youtube_dl/distinfo b/www/youtube_dl/distinfo
index 6a546fe1b123..2ff439776ab8 100644
--- a/www/youtube_dl/distinfo
+++ b/www/youtube_dl/distinfo
@@ -1,2 +1,2 @@
-SHA256 (youtube_dl/2010.10.24/youtube-dl) = 1ec91cd1d791c62777724fb650fde3d6da1ad5c86b4f46ec0368759ce7a7a381
-SIZE (youtube_dl/2010.10.24/youtube-dl) = 82350
+SHA256 (youtube_dl/2010.11.19/youtube-dl) = 016d9559610e2043ba140de41ad69580dc5510dc9001df7614e1d38d87c40e25
+SIZE (youtube_dl/2010.11.19/youtube-dl) = 84216
diff --git a/www/youtube_dl/files/patch-youtube-dl b/www/youtube_dl/files/patch-youtube-dl
new file mode 100644
index 000000000000..b4c8a56f7abb
--- /dev/null
+++ b/www/youtube_dl/files/patch-youtube-dl
@@ -0,0 +1,11 @@
+--- youtube-dl.orig 2010-11-21 16:27:42.000000000 +0000
++++ youtube-dl 2010-11-21 16:28:42.000000000 +0000
+@@ -509,7 +509,7 @@
+ # Download using rtmpdump. rtmpdump returns exit code 2 when
+ # the connection was interrumpted and resuming appears to be
+ # possible. This is part of rtmpdump's normal usage, AFAIK.
+- basic_args = ['rtmpdump', '-q'] + [[], ['-W', player_url]][player_url is not None] + ['-r', url, '-o', filename]
++ basic_args = ['rtmpdump'] + [[], ['-q']][self.params.get('quiet', False)] + [[], ['-W', player_url]][player_url is not None] + ['-r', url, '-o', filename]
+ retval = subprocess.call(basic_args + [[], ['-e', '-k', '1']][self.params.get('continuedl', False)])
+ while retval == 2 or retval == 1:
+ prevsize = os.path.getsize(filename)
diff --git a/www/youtube_dl/pkg-descr b/www/youtube_dl/pkg-descr
index e9c6af116b69..bfc59b35ee55 100644
--- a/www/youtube_dl/pkg-descr
+++ b/www/youtube_dl/pkg-descr
@@ -1,4 +1,5 @@
youtube-dl is a small command-line program for downloading videos
-from YouTube.com.
+from YouTube.com, metacafe.com, google video, photobucket videos,
+yahoo videos, dailymotion and others
-WWW: http://bitbucket.org/rg3/youtube-dl/
+WWW: http://rg3.github.com/youtube-dl/