From d99bf82c2085637a7989d3c519a3c4ba13862d20 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Mon, 8 Feb 2021 01:46:50 +0000 Subject: New port: www/yt-dlp: Command-line program to download videos from youtube & other platforms --- www/yt-dlp/Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 www/yt-dlp/Makefile (limited to 'www/yt-dlp/Makefile') diff --git a/www/yt-dlp/Makefile b/www/yt-dlp/Makefile new file mode 100644 index 000000000000..5fa772a91894 --- /dev/null +++ b/www/yt-dlp/Makefile @@ -0,0 +1,32 @@ +# $FreeBSD$ + +PORTNAME= yt-dlp +DISTVERSION= 2021.02.04 +CATEGORIES= www + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Command-line program to download videos from youtube & other platforms + +LICENSE= UNLICENSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist noflavors + +USE_GITHUB= yes +GH_ACCOUNT= pukkandan + +NO_ARCH= yes + +POST_PLIST= fix-plist + +post-install: # https://github.com/pukkandan/yt-dlp/issues/59 + @cd ${STAGEDIR}${PREFIX} && \ + ${RMDIR} share/doc/youtube_dlc share/man/man1 etc/bash_completion.d etc/fish/completions etc/fish + +fix-plist: # https://github.com/pukkandan/yt-dlp/issues/59 + @${REINPLACE_CMD} -e "s|^etc/bash_completion\.d$$|| ; s|^etc/fish/completions$$|| ; s|^share/doc/youtube_dlc$$|| ; s|^share/man/man1$$||" ${TMPPLIST} + +.include -- cgit v1.2.3