aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/yt-dlp/Makefile32
-rw-r--r--www/yt-dlp/distinfo3
-rw-r--r--www/yt-dlp/pkg-descr6
4 files changed, 42 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 4e3b6560276d..f02150178826 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2310,6 +2310,7 @@
SUBDIR += yourls
SUBDIR += youtube_dl
SUBDIR += youtube_dlc
+ SUBDIR += yt-dlp
SUBDIR += ytdl
SUBDIR += yuicompressor
SUBDIR += zend-framework
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 <bsd.port.mk>
diff --git a/www/yt-dlp/distinfo b/www/yt-dlp/distinfo
new file mode 100644
index 000000000000..68469f14c292
--- /dev/null
+++ b/www/yt-dlp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1612745395
+SHA256 (pukkandan-yt-dlp-2021.02.04_GH0.tar.gz) = 798c8f386c3cb496956a2eb561420f2b4821036a0ad3fe2dccb6ffed261899a5
+SIZE (pukkandan-yt-dlp-2021.02.04_GH0.tar.gz) = 1539222
diff --git a/www/yt-dlp/pkg-descr b/www/yt-dlp/pkg-descr
new file mode 100644
index 000000000000..f5811927ceb8
--- /dev/null
+++ b/www/yt-dlp/pkg-descr
@@ -0,0 +1,6 @@
+A command-line program to download videos from youtube.com and many other video
+platforms.
+
+This is a fork of youtube-dlc which is inturn a fork of youtube-dl.
+
+WWW: https://github.com/pukkandan/yt-dlp