aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2024-01-29 13:53:22 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2024-01-29 14:08:36 +0000
commit9748475d99edea4f784608cce20338ea3e01e519 (patch)
treeb3b4716dad4100dc98990fa8164e514d3ee94115
parent87719c02283cfc528aa8a3f9ed63241cf4b833a5 (diff)
downloadports-9748475d99edea4f784608cce20338ea3e01e519.tar.gz
ports-9748475d99edea4f784608cce20338ea3e01e519.zip
www/yt-dlp: Moved man to share/man
- Refresh patches Approved by: portmgr (blanket)
-rw-r--r--www/yt-dlp/Makefile2
-rw-r--r--www/yt-dlp/files/patch-Makefile8
-rw-r--r--www/yt-dlp/files/patch-yt__dlp_update.py6
-rw-r--r--www/yt-dlp/pkg-plist2
4 files changed, 12 insertions, 6 deletions
diff --git a/www/yt-dlp/Makefile b/www/yt-dlp/Makefile
index effc1852ce5d..ec8829fc77b8 100644
--- a/www/yt-dlp/Makefile
+++ b/www/yt-dlp/Makefile
@@ -1,6 +1,6 @@
PORTNAME= yt-dlp
DISTVERSION= 2023.12.30
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/
DISTNAME= ${PORTNAME}
diff --git a/www/yt-dlp/files/patch-Makefile b/www/yt-dlp/files/patch-Makefile
index e2a87a36ba16..ddb0ea286b16 100644
--- a/www/yt-dlp/files/patch-Makefile
+++ b/www/yt-dlp/files/patch-Makefile
@@ -6,7 +6,13 @@
clean: clean-test clean-dist
clean-all: clean clean-cache
completions: completion-bash completion-fish completion-zsh
-@@ -39,7 +39,7 @@ PYTHON ?= /usr/bin/env python3
+@@ -34,12 +34,12 @@ BINDIR ?= $(PREFIX)/bin
+
+ PREFIX ?= /usr/local
+ BINDIR ?= $(PREFIX)/bin
+-MANDIR ?= $(PREFIX)/man
++MANDIR ?= $(PREFIX)/share/man
+ SHAREDIR ?= $(PREFIX)/share
PYTHON ?= /usr/bin/env python3
# set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local
diff --git a/www/yt-dlp/files/patch-yt__dlp_update.py b/www/yt-dlp/files/patch-yt__dlp_update.py
index 43a64f0fcade..b8788cf1866f 100644
--- a/www/yt-dlp/files/patch-yt__dlp_update.py
+++ b/www/yt-dlp/files/patch-yt__dlp_update.py
@@ -1,8 +1,8 @@
- this patch prevents -U from updating yt-dlp - it makes it "unrecognized"
---- yt_dlp/update.py.orig 2022-08-08 22:15:24 UTC
+--- yt_dlp/update.py.orig 2023-12-30 21:43:37 UTC
+++ yt_dlp/update.py
-@@ -39,7 +39,7 @@ def _get_variant_and_executable_path():
+@@ -73,7 +73,7 @@ def _get_variant_and_executable_path():
path = os.path.dirname(__file__)
if isinstance(__loader__, zipimporter):
@@ -11,7 +11,7 @@
elif (os.path.basename(sys.argv[0]) in ('__main__.py', '-m')
and os.path.exists(os.path.join(path, '../.git/HEAD'))):
return 'source', path
-@@ -64,7 +64,7 @@ _NON_UPDATEABLE_REASONS = {
+@@ -114,7 +114,7 @@ _NON_UPDATEABLE_REASONS = {
**{variant: f'Auto-update is not supported for unpackaged {name} executable; Re-download the latest release'
for variant, name in {'win32_dir': 'Windows', 'darwin_dir': 'MacOS', 'linux_dir': 'Linux'}.items()},
'source': 'You cannot update when running from source code; Use git to pull the latest changes',
diff --git a/www/yt-dlp/pkg-plist b/www/yt-dlp/pkg-plist
index 25beb354d2cf..72d1863e08e0 100644
--- a/www/yt-dlp/pkg-plist
+++ b/www/yt-dlp/pkg-plist
@@ -1,6 +1,6 @@
%%SYMLINK%%bin/youtube-dl
bin/yt-dlp
-man/man1/yt-dlp.1.gz
+share/man/man1/yt-dlp.1.gz
share/bash-completion/completions/yt-dlp
share/fish/vendor_completions.d/yt-dlp.fish
share/zsh/site-functions/_yt-dlp