git: 54ace9a8d367 - main - www/youtube_dl: Moved man to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 26 Feb 2024 16:37:02 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=54ace9a8d367de2bb5389fc2bc33ba048a24978b

commit 54ace9a8d367de2bb5389fc2bc33ba048a24978b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-26 14:55:41 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-26 16:36:22 +0000

    www/youtube_dl: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 www/youtube_dl/Makefile                            | 3 ++-
 www/youtube_dl/files/patch-Makefile                | 8 +++++++-
 www/youtube_dl/files/patch-youtube_dl____init__.py | 4 ++--
 3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/www/youtube_dl/Makefile b/www/youtube_dl/Makefile
index a167bb31e173..c2e8e52e5d06 100644
--- a/www/youtube_dl/Makefile
+++ b/www/youtube_dl/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	youtube_dl
 PORTVERSION=	2023.03.14
+PORTREVISION=	1
 CATEGORIES=	www
 
 # Implicit approval to commit trivial version updates.
@@ -25,7 +26,7 @@ NO_ARCH=	yes
 
 PLIST_FILES=	bin/youtube-dl \
 		etc/bash_completion.d/youtube-dl.sh \
-		man/man1/youtube-dl.1.gz \
+		share/man/man1/youtube-dl.1.gz \
 		share/fish/vendor_completions.d/youtube-dl.fish \
 		share/zsh/site-functions/_youtube-dl
 
diff --git a/www/youtube_dl/files/patch-Makefile b/www/youtube_dl/files/patch-Makefile
index 8ac0bb1eed00..843d6f584858 100644
--- a/www/youtube_dl/files/patch-Makefile
+++ b/www/youtube_dl/files/patch-Makefile
@@ -1,6 +1,12 @@
 --- Makefile.orig	2023-03-14 16:23:20 UTC
 +++ Makefile
-@@ -12,7 +12,7 @@ SHAREDIR ?= $(PREFIX)/share
+@@ -7,12 +7,12 @@ BINDIR ?= $(PREFIX)/bin
+ 
+ PREFIX ?= /usr/local
+ BINDIR ?= $(PREFIX)/bin
+-MANDIR ?= $(PREFIX)/man
++MANDIR ?= $(PREFIX)/share/man
+ SHAREDIR ?= $(PREFIX)/share
  PYTHON ?= /usr/bin/env python
  
  # set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local
diff --git a/www/youtube_dl/files/patch-youtube_dl____init__.py b/www/youtube_dl/files/patch-youtube_dl____init__.py
index 3a598b7d0399..be1b2921db02 100644
--- a/www/youtube_dl/files/patch-youtube_dl____init__.py
+++ b/www/youtube_dl/files/patch-youtube_dl____init__.py
@@ -1,4 +1,4 @@
---- youtube_dl/__init__.py.orig	2018-05-09 02:36:28 UTC
+--- youtube_dl/__init__.py.orig	2023-03-14 16:23:20 UTC
 +++ youtube_dl/__init__.py
 @@ -36,7 +36,6 @@ from .utils import (
      write_string,
@@ -8,7 +8,7 @@
  from .downloader import (
      FileDownloader,
  )
-@@ -437,17 +436,13 @@ def _real_main(argv=None):
+@@ -440,17 +439,13 @@ def _real_main(argv=None):
      }
  
      with YoutubeDL(ydl_opts) as ydl: