diff options
author | wiz <wiz@pkgsrc.org> | 2012-03-15 16:01:47 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2012-03-15 16:01:47 +0000 |
commit | b2296028984fe007fc5b6b9eca8f4967a2cae746 (patch) | |
tree | 1dfa0c3c9d6fbc6081ae6e02850b0d08c87fe8a8 /net | |
parent | 1dc0ea61713dba1c02dae90e3b49cbb53beeefc4 (diff) | |
download | pkgsrc-b2296028984fe007fc5b6b9eca8f4967a2cae746.tar.gz |
Add patch fixing downloading some youtube URLs.
From upstream.
Bump PKGREVISION.
Diffstat (limited to 'net')
-rw-r--r-- | net/libquvi-scripts/Makefile | 3 | ||||
-rw-r--r-- | net/libquvi-scripts/distinfo | 3 | ||||
-rw-r--r-- | net/libquvi-scripts/patches/patch-share_lua_website_youtube.lua | 17 |
3 files changed, 21 insertions, 2 deletions
diff --git a/net/libquvi-scripts/Makefile b/net/libquvi-scripts/Makefile index e12efb0c61d..55ef2987993 100644 --- a/net/libquvi-scripts/Makefile +++ b/net/libquvi-scripts/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.2 2011/12/05 19:34:12 ryoon Exp $ +# $NetBSD: Makefile,v 1.3 2012/03/15 16:01:47 wiz Exp $ # DISTNAME= libquvi-scripts-0.4.2 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=quvi/} EXTRACT_SUFX= .tar.bz2 diff --git a/net/libquvi-scripts/distinfo b/net/libquvi-scripts/distinfo index 0f8a06b09f4..e757021adc6 100644 --- a/net/libquvi-scripts/distinfo +++ b/net/libquvi-scripts/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.2 2011/12/05 19:34:12 ryoon Exp $ +$NetBSD: distinfo,v 1.3 2012/03/15 16:01:47 wiz Exp $ SHA1 (libquvi-scripts-0.4.2.tar.bz2) = a2109327f629f513a57d10efbf825d129d8fef8f RMD160 (libquvi-scripts-0.4.2.tar.bz2) = b58d24f4ac19f3e2851b5157016f4f19eb56a010 Size (libquvi-scripts-0.4.2.tar.bz2) = 100302 bytes +SHA1 (patch-share_lua_website_youtube.lua) = 6cdb6176eb7f5a50ae7037fb033db9f697915e59 diff --git a/net/libquvi-scripts/patches/patch-share_lua_website_youtube.lua b/net/libquvi-scripts/patches/patch-share_lua_website_youtube.lua new file mode 100644 index 00000000000..8d2c1400363 --- /dev/null +++ b/net/libquvi-scripts/patches/patch-share_lua_website_youtube.lua @@ -0,0 +1,17 @@ +$NetBSD: patch-share_lua_website_youtube.lua,v 1.1 2012/03/15 16:01:47 wiz Exp $ + +Fix some youtube URLs. +From upstream: +http://sourceforge.net/mailarchive/message.php?msg_id=28987218 + +--- share/lua/website/youtube.lua.orig 2011-11-29 14:37:43.000000000 +0000 ++++ share/lua/website/youtube.lua +@@ -81,7 +81,7 @@ function YouTube.normalize(s) + local p = {'/embed/([-_%w]+)', '/%w/([-_%w]+)', '/([-_%w]+)'} + for _,v in pairs(p) do + local m = t.path:match(v) +- if m and not t.query then ++ if m and #m == 11 then + t.query = 'v=' .. m + t.path = '/watch' + end |