www/yt-dlp: Moved man to share/man

- Refresh patches

Approved by:    portmgr (blanket)
This commit is contained in:
Muhammad Moinur Rahman 2024-01-29 14:53:22 +01:00
parent 87719c0228
commit 9748475d99
No known key found for this signature in database
GPG key ID: BDB9B5A617C0BC91
4 changed files with 12 additions and 6 deletions

View file

@ -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}

View file

@ -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

View file

@ -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',

View file

@ -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