Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Sep 2012 22:38:19 GMT
From:      "4721@hushmail.com" <4721@hushmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/172125: [patch] upgrade www/youtube_dl to latest
Message-ID:  <201209272238.q8RMcJEj076036@red.freebsd.org>
Resent-Message-ID: <201209272240.q8RMe6Ru036876@freefall.freebsd.org>

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

>Number:         172125
>Category:       ports
>Synopsis:       [patch] upgrade www/youtube_dl to latest
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 27 22:40:05 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     4721@hushmail.com
>Release:        
>Organization:
>Environment:
>Description:
* update www/youtube_dl from 2012.02.27 to 2012.09.27
* switch to USE_GITHUB

note: new file pkg-plist. youtube_dl is not longer a single-file-program.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: www/youtube_dl/distinfo
===================================================================
--- www/youtube_dl/distinfo	(revision 304731)
+++ www/youtube_dl/distinfo	(working copy)
@@ -1,2 +1,2 @@
-SHA256 (youtube_dl/2012.02.27/youtube-dl) = 98146a510fed3d39a34a686e1100d6df4efa2b9b9e194649e615afc1ff646834
-SIZE (youtube_dl/2012.02.27/youtube-dl) = 159848
+SHA256 (youtube_dl-2012.09.27) = 45e88c1a5b81e633bddd43d5363e7ade92af2eeb534c37a5170f4b68d73605ea
+SIZE (youtube_dl-2012.09.27) = 2874838
Index: www/youtube_dl/pkg-plist
===================================================================
--- www/youtube_dl/pkg-plist	(revision 0)
+++ www/youtube_dl/pkg-plist	(working copy)
@@ -0,0 +1,8 @@
+bin/youtube-dl
+%%PYTHON_SITELIBDIR%%/youtube_dl/FileDownloader.py
+%%PYTHON_SITELIBDIR%%/youtube_dl/InfoExtractors.py
+%%PYTHON_SITELIBDIR%%/youtube_dl/PostProcessor.py
+%%PYTHON_SITELIBDIR%%/youtube_dl/__init__.py
+%%PYTHON_SITELIBDIR%%/youtube_dl/__main__.py
+%%PYTHON_SITELIBDIR%%/youtube_dl/utils.py
+@dirrm %%PYTHON_SITELIBDIR%%/youtube_dl
Index: www/youtube_dl/Makefile
===================================================================
--- www/youtube_dl/Makefile	(revision 304731)
+++ www/youtube_dl/Makefile	(working copy)
@@ -6,26 +6,25 @@
 #
 
 PORTNAME=	youtube_dl
-PORTVERSION=	2012.02.27
+PORTVERSION=	2012.09.27
 CATEGORIES=	www
-MASTER_SITES=	https://raw.github.com/rg3/youtube-dl/${PORTVERSION}/ \
+MASTER_SITES=	GH \
 		CRITICAL
-DISTNAME=	youtube-dl
 EXTRACT_SUFX=	# empty
-DIST_SUBDIR=	${PORTNAME}/${PORTVERSION}
-EXTRACT_ONLY=	# empty
 
 MAINTAINER=	araujo@FreeBSD.org
 COMMENT=	A program for downloading videos from YouTube.com
 
 LICENSE=	GPLv2
 
+USE_GITHUB=	yes
+GH_ACCOUNT=	rg3
+GH_PROJECT=	youtube-dl
+GH_COMMIT=	b5de8af
+GH_TAGNAME=	master
 NO_BUILD=	yes
-NO_WRKSUBDIR=	yes
 USE_PYTHON_RUN=	2.5-2.7
 
-PLIST_FILES=	bin/youtube-dl
-
 OPTIONS=	RTMPDUMP "Use RTMPDUMP to download rtmp video streams" on \
 		FFMPEG   "Use ffmpeg (required for audio conversion)"  off
 
@@ -44,10 +43,9 @@
 . endif
 .endif
 
-post-extract:
-	@${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKSRC}/youtube-dl
-
 do-install:
+	@${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME}
+	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/*.py ${PYTHON_SITELIBDIR}/${PORTNAME}
 	@${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${PREFIX}/bin/youtube-dl
 
 .if defined(WITH_FFMPEG)


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



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