aboutsummaryrefslogtreecommitdiff
path: root/www/yt-dlp/Makefile
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-03-25 09:53:01 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2021-03-25 09:53:01 +0000
commit496a9861edecf4a4ae41c0015ae8ad4f87d8baa1 (patch)
treef4f9b99b64d88564ce5b1d49e3d87ea03b49a371 /www/yt-dlp/Makefile
parent889af64b0920d42c86cb3d7cf5d122d084a8800f (diff)
downloadports-496a9861edecf4a4ae41c0015ae8ad4f87d8baa1.tar.gz
ports-496a9861edecf4a4ae41c0015ae8ad4f87d8baa1.zip
www/yt-dlp: Update 2021.02.09 -> 2021.03.21
PR: 254376 Submitted by: daniel.engberg.lists@pyret.net
Notes
Notes: svn path=/head/; revision=569193
Diffstat (limited to 'www/yt-dlp/Makefile')
-rw-r--r--www/yt-dlp/Makefile30
1 files changed, 18 insertions, 12 deletions
diff --git a/www/yt-dlp/Makefile b/www/yt-dlp/Makefile
index bdfd2cbd8398..4a08e7e45a12 100644
--- a/www/yt-dlp/Makefile
+++ b/www/yt-dlp/Makefile
@@ -1,32 +1,38 @@
# $FreeBSD$
PORTNAME= yt-dlp
-DISTVERSION= 2021.02.09
+DISTVERSION= 2021.03.21
CATEGORIES= www
MAINTAINER= yuri@FreeBSD.org
-COMMENT= Command-line program to download videos from youtube & other platforms
+COMMENT= Command-line program for downloading videos from various platforms
LICENSE= UNLICENSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= zip:archivers/zip \
- pandoc:textproc/hs-pandoc
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR}
-
-USES= gmake python
-USE_PYTHON= distutils autoplist noflavors
+USES= gmake python shebangfix
+SHEBANG_GLOB= devscripts/*.py
USE_GITHUB= yes
-GH_ACCOUNT= pukkandan
MAKE_ARGS= PYTHON=${PYTHON_CMD}
NO_ARCH= yes
-POST_PLIST= fix-plist
+OPTIONS_DEFINE= FFMPEG MUTAGEN RTMPDUMP SYMLINK
+OPTIONS_DEFAULT= FFMPEG RTMPDUMP
+OPTIONS_SUB= yes
+
+MUTAGEN_DESC= Thumbnail support via Mutagen
+RTMPDUMP_DESC= Use rtmpdump to download rtmp video streams
+SYMLINK_DESC= Install youtube-dl symbolic link for executable
+
+FFMPEG_RUN_DEPENDS= ffprobe:multimedia/ffmpeg
+MUTAGEN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR}
+RTMPDUMP_RUN_DEPENDS= rtmpdump:multimedia/rtmpdump
+SYMLINK_CONFLICTS= youtube_dl
-pre-build:
- @cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET}
+post-install-SYMLINK-on:
+ @${RLN} ${STAGEDIR}${PREFIX}/bin/yt-dlp ${STAGEDIR}${PREFIX}/bin/youtube-dl
.include <bsd.port.mk>