diff options
author | jbeich <jbeich@FreeBSD.org> | 2015-01-28 21:48:40 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2015-01-28 21:48:40 +0800 |
commit | 607f5e5cb1a9d60bf5e235c71f67a29e47be4958 (patch) | |
tree | 41814db17020f1bdbc70b3c00919f6ffaaffe29c | |
parent | 66c06550649796f96974b857159f7685948138f4 (diff) | |
download | freebsd-ports-gnome-607f5e5cb1a9d60bf5e235c71f67a29e47be4958.tar.gz freebsd-ports-gnome-607f5e5cb1a9d60bf5e235c71f67a29e47be4958.tar.zst freebsd-ports-gnome-607f5e5cb1a9d60bf5e235c71f67a29e47be4958.zip |
- Update to upstream version 2015.01.25 [1][2]
- Install FISH and ZSH completions [3]
- Remove BASH_DESC now that it's in bsd.options.desc.mk [3]
- Mark as NO_ARCH [4]
PR: 196298 [1]
PR: 196946 [2]
PR: 195399 [3]
PR: 195400 [4]
Differential Revision: https://reviews.freebsd.org/D1689
Submitted by: gblach [1], sunpoet [2]
Reviewed by: bapt (mainly [3] and [4])
Approved by: araujo (maintainer)
Approved by: bapt (mentor)
-rw-r--r-- | www/youtube_dl/Makefile | 19 | ||||
-rw-r--r-- | www/youtube_dl/distinfo | 4 | ||||
-rw-r--r-- | www/youtube_dl/files/patch-youtube_dl____init__.py | 6 |
3 files changed, 21 insertions, 8 deletions
diff --git a/www/youtube_dl/Makefile b/www/youtube_dl/Makefile index 21e57a315dd2..b43292c62f59 100644 --- a/www/youtube_dl/Makefile +++ b/www/youtube_dl/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ 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 @@ BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip 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 @@ PLIST_FILES= bin/youtube-dl \ 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 @@ -49,5 +52,15 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/youtube-dl.bash-completion \ ${STAGEDIR}${PREFIX}/etc/bash_completion.d/youtube-dl.sh .endif +.if ${PORT_OPTIONS:MFISH} + ${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions + ${INSTALL_DATA} ${WRKSRC}/youtube-dl.fish \ + ${STAGEDIR}${PREFIX}/share/fish/completions/ +.endif +.if ${PORT_OPTIONS:MZSH} + ${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions + ${INSTALL_DATA} ${WRKSRC}/youtube-dl.zsh \ + ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_youtube-dl +.endif .include <bsd.port.mk> diff --git a/www/youtube_dl/distinfo b/www/youtube_dl/distinfo index df0ba2cdff00..340b601ef4dc 100644 --- a/www/youtube_dl/distinfo +++ b/www/youtube_dl/distinfo @@ -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 diff --git a/www/youtube_dl/files/patch-youtube_dl____init__.py b/www/youtube_dl/files/patch-youtube_dl____init__.py index e32e60f4eeb1..9301f0316130 100644 --- a/www/youtube_dl/files/patch-youtube_dl____init__.py +++ b/www/youtube_dl/files/patch-youtube_dl____init__.py @@ -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) |