summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-06-02 00:28:10 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2021-06-02 01:49:43 -0700
commitce0187f6132868ca5bc76b8e8748e82cb4e7b51d (patch)
tree94f088e6945238f52d834a540107698edcf143cb
parentmath/mpdecimal: use compiler:c++11-lang (diff)
www/yt-dlp: Update 2021.05.20 -> 2021.06.01
Reported by: portscout
-rw-r--r--www/yt-dlp/Makefile4
-rw-r--r--www/yt-dlp/distinfo6
-rw-r--r--www/yt-dlp/files/patch-yt__dlp_____init____.py14
3 files changed, 9 insertions, 15 deletions
diff --git a/www/yt-dlp/Makefile b/www/yt-dlp/Makefile
index 563af471fc6e..d4d4f45d57f4 100644
--- a/www/yt-dlp/Makefile
+++ b/www/yt-dlp/Makefile
@@ -1,5 +1,5 @@
PORTNAME= yt-dlp
-DISTVERSION= 2021.05.20
+DISTVERSION= 2021.06.01
CATEGORIES= www
MAINTAINER= yuri@FreeBSD.org
@@ -8,6 +8,8 @@ COMMENT= Command-line program for downloading videos from various platforms
LICENSE= UNLICENSE
LICENSE_FILE= ${WRKSRC}/LICENSE
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycryptodome>0:security/py-pycryptodome@${PY_FLAVOR}
+
USES= gmake python shebangfix
SHEBANG_GLOB= devscripts/*.py
diff --git a/www/yt-dlp/distinfo b/www/yt-dlp/distinfo
index f0751c08f242..e13e7cb45f56 100644
--- a/www/yt-dlp/distinfo
+++ b/www/yt-dlp/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1621529609
-SHA256 (yt-dlp-yt-dlp-2021.05.20_GH0.tar.gz) = b1def2006482deb07005f3b9c61e571e8a7e780adc12e764ab042c97d0d821b4
-SIZE (yt-dlp-yt-dlp-2021.05.20_GH0.tar.gz) = 1631042
+TIMESTAMP = 1622618435
+SHA256 (yt-dlp-yt-dlp-2021.06.01_GH0.tar.gz) = 37992c9116901a6213e3157a6119d2af41d396483bd5260bf377acc80550ddef
+SIZE (yt-dlp-yt-dlp-2021.06.01_GH0.tar.gz) = 1647481
diff --git a/www/yt-dlp/files/patch-yt__dlp_____init____.py b/www/yt-dlp/files/patch-yt__dlp_____init____.py
index 0f0d7f8b322c..84d6918d6d66 100644
--- a/www/yt-dlp/files/patch-yt__dlp_____init____.py
+++ b/www/yt-dlp/files/patch-yt__dlp_____init____.py
@@ -1,21 +1,13 @@
---- yt_dlp/__init__.py.orig 2021-03-18 03:08:48 UTC
+--- yt_dlp/__init__.py.orig 2021-06-01 14:59:03 UTC
+++ yt_dlp/__init__.py
-@@ -38,7 +38,6 @@ from .utils import (
- std_headers,
- write_string,
- )
--from .update import update_self
- from .downloader import (
- FileDownloader,
- )
-@@ -580,17 +579,9 @@ def _real_main(argv=None):
+@@ -660,17 +660,9 @@ def _real_main(argv=None):
if opts.rm_cachedir:
ydl.cache.remove()
- # Update version
- if opts.update_self:
- # If updater returns True, exit. Required for windows
-- if update_self(ydl.to_screen, opts.verbose, ydl._opener):
+- if run_update(ydl):
- if actual_use:
- sys.exit('ERROR: The program must exit for the update to complete')
- sys.exit()