[Midnightbsd-cvs] mports [18388] trunk/www/youtube_dl: youtube dl 2015.01.25

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Mar 27 19:34:59 EDT 2015


Revision: 18388
          http://svnweb.midnightbsd.org/mports/?rev=18388
Author:   laffer1
Date:     2015-03-27 19:34:58 -0400 (Fri, 27 Mar 2015)
Log Message:
-----------
youtube dl 2015.01.25

Modified Paths:
--------------
    trunk/www/youtube_dl/Makefile
    trunk/www/youtube_dl/distinfo
    trunk/www/youtube_dl/files/patch-youtube_dl____init__.py

Modified: trunk/www/youtube_dl/Makefile
===================================================================
--- trunk/www/youtube_dl/Makefile	2015-03-27 23:32:59 UTC (rev 18387)
+++ trunk/www/youtube_dl/Makefile	2015-03-27 23:34:58 UTC (rev 18388)
@@ -1,7 +1,7 @@
 # $MidnightBSD$
 
 PORTNAME=	youtube_dl
-PORTVERSION=	2014.11.24
+PORTVERSION=	2015.01.25
 CATEGORIES=	www
 MASTER_SITES=	https://yt-dl.org/downloads/${PORTVERSION}/
 DISTNAME=	youtube-dl-${PORTVERSION}
@@ -19,11 +19,12 @@
 ALL_TARGET=	youtube-dl
 MAKE_ARGS=	PYTHON=${PYTHON_CMD}
 USES=		python:run
+NO_ARCH=	yes
 
-OPTIONS_DEFINE=	BASH RTMPDUMP FFMPEG
+OPTIONS_DEFINE=	BASH FISH RTMPDUMP FFMPEG ZSH
 OPTIONS_DEFAULT=RTMPDUMP
 
-BASH_DESC=	Install programmable completions for Bash
+FISH_DESC=	Install programmable completions for Fish
 RTMPDUMP_DESC=	Use RTMPDUMP to download rtmp video streams
 
 PLIST_FILES=	bin/youtube-dl \
@@ -32,6 +33,8 @@
 WRKSRC=		${WRKDIR}/youtube-dl
 
 BASH_PLIST_FILES=	etc/bash_completion.d/youtube-dl.sh
+FISH_PLIST_FILES=	share/fish/completions/youtube-dl.fish
+ZSH_PLIST_FILES=	share/zsh/site-functions/_youtube-dl
 FFMPEG_RUN_DEPENDS=	${LOCALBASE}/bin/ffprobe:${PORTSDIR}/multimedia/ffmpeg
 RTMPDUMP_RUN_DEPENDS=	${LOCALBASE}/bin/rtmpdump:${PORTSDIR}/multimedia/rtmpdump
 
@@ -42,12 +45,22 @@
 	@${RM} -f ${WRKSRC}/youtube-dl
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${STAGEDIR}${PREFIX}/bin/youtube-dl
-	${INSTALL_DATA} ${WRKSRC}/youtube-dl.1 ${STAGEDIR}${PREFIX}/man/man1/
+	${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${PREFIX}/bin/youtube-dl
+	${INSTALL_DATA} ${WRKSRC}/youtube-dl.1 ${PREFIX}/man/man1/
 .if ${PORT_OPTIONS:MBASH}
-	${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
+	${MKDIR} ${PREFIX}/etc/bash_completion.d
 	${INSTALL_DATA} ${WRKSRC}/youtube-dl.bash-completion \
-		${STAGEDIR}${PREFIX}/etc/bash_completion.d/youtube-dl.sh
+		${PREFIX}/etc/bash_completion.d/youtube-dl.sh
 .endif
+.if ${PORT_OPTIONS:MFISH}
+	${MKDIR} ${PREFIX}/share/fish/completions
+	${INSTALL_DATA} ${WRKSRC}/youtube-dl.fish \
+		${PREFIX}/share/fish/completions/
+.endif
+.if ${PORT_OPTIONS:MZSH}
+	${MKDIR} ${PREFIX}/share/zsh/site-functions
+	${INSTALL_DATA} ${WRKSRC}/youtube-dl.zsh \
+		${PREFIX}/share/zsh/site-functions/_youtube-dl
+.endif
 
 .include <bsd.port.mk>

Modified: trunk/www/youtube_dl/distinfo
===================================================================
--- trunk/www/youtube_dl/distinfo	2015-03-27 23:32:59 UTC (rev 18387)
+++ trunk/www/youtube_dl/distinfo	2015-03-27 23:34:58 UTC (rev 18388)
@@ -1,2 +1,2 @@
-SHA256 (youtube-dl-2014.11.24.tar.gz) = 3bae2155e429c3409bfac431330a86c931ea36d87c4c07e793bf0ea0cbfc1cbf
-SIZE (youtube-dl-2014.11.24.tar.gz) = 1149666
+SHA256 (youtube-dl-2015.01.25.tar.gz) = f5345af6eba6f0f76cbddf920d311bc6e169cc07b58eeaa0295a7fc4bab587e7
+SIZE (youtube-dl-2015.01.25.tar.gz) = 1305777

Modified: trunk/www/youtube_dl/files/patch-youtube_dl____init__.py
===================================================================
--- trunk/www/youtube_dl/files/patch-youtube_dl____init__.py	2015-03-27 23:32:59 UTC (rev 18387)
+++ trunk/www/youtube_dl/files/patch-youtube_dl____init__.py	2015-03-27 23:34:58 UTC (rev 18388)
@@ -8,10 +8,10 @@
  from .downloader import (
      FileDownloader,
  )
-@@ -324,17 +323,13 @@
-             ydl.add_post_processor(ExecAfterDownloadPP(
-                 verboseOutput=opts.verbose, exec_cmd=opts.exec_cmd))
+@@ -347,17 +346,13 @@ def _real_main(argv=None):
+     }
  
+     with YoutubeDL(ydl_opts) as ydl:
 -        # Update version
 -        if opts.update_self:
 -            update_self(ydl.to_screen, opts.verbose)



More information about the Midnightbsd-cvs mailing list