git: 7b635e97fb02 - main - www/yt-dlp: Install manpage
Date: Sun, 31 Dec 2023 10:09:10 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=7b635e97fb02804ca3486b2ec9dde8762c4cbd48 commit 7b635e97fb02804ca3486b2ec9dde8762c4cbd48 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-12-31 10:07:35 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-12-31 10:09:08 +0000 www/yt-dlp: Install manpage PR: 276034 Reported by: Benjamin Takacs <nimaje+fbz@bureaucracy.de> --- www/yt-dlp/Makefile | 4 +++- www/yt-dlp/files/patch-Makefile | 15 ++------------- www/yt-dlp/pkg-plist | 1 + 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/www/yt-dlp/Makefile b/www/yt-dlp/Makefile index 581ca1c8c521..05b72fabd259 100644 --- a/www/yt-dlp/Makefile +++ b/www/yt-dlp/Makefile @@ -1,5 +1,6 @@ PORTNAME= yt-dlp DISTVERSION= 2023.12.30 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/ DISTNAME= ${PORTNAME} @@ -20,7 +21,8 @@ PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}brotli>0:archivers/py-brotli@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}urllib3>=1.26.17:net/py-urllib3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}websockets>=12.0:devel/py-websockets@${PY_FLAVOR} -BUILD_DEPENDS= ${PY_DEPENDS} +BUILD_DEPENDS= ${PY_DEPENDS} \ + pandoc:textproc/hs-pandoc RUN_DEPENDS= ${PY_DEPENDS} USES= gmake python shebangfix diff --git a/www/yt-dlp/files/patch-Makefile b/www/yt-dlp/files/patch-Makefile index 01f05c9a446a..2828154ce338 100644 --- a/www/yt-dlp/files/patch-Makefile +++ b/www/yt-dlp/files/patch-Makefile @@ -1,4 +1,4 @@ ---- Makefile.orig 2022-10-04 04:50:32 UTC +--- Makefile.orig 2023-12-30 21:43:37 UTC +++ Makefile @@ -1,4 +1,4 @@ -all: lazy-extractors yt-dlp doc pypi-files @@ -6,7 +6,7 @@ clean: clean-test clean-dist clean-all: clean clean-cache completions: completion-bash completion-fish completion-zsh -@@ -39,16 +39,16 @@ SHAREDIR ?= $(PREFIX)/share +@@ -39,7 +39,7 @@ PYTHON ?= /usr/bin/env python3 PYTHON ?= /usr/bin/env python3 # set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local @@ -15,17 +15,6 @@ # set markdown input format to "markdown-smart" for pandoc version 2 and to "markdown" for pandoc prior to version 2 MARKDOWN = $(shell if [ `pandoc -v | head -n1 | cut -d" " -f2 | head -c1` = "2" ]; then echo markdown-smart; else echo markdown; fi) - --install: lazy-extractors yt-dlp yt-dlp.1 completions -+install: lazy-extractors yt-dlp completions - mkdir -p $(DESTDIR)$(BINDIR) - install -m755 yt-dlp $(DESTDIR)$(BINDIR)/yt-dlp - mkdir -p $(DESTDIR)$(MANDIR)/man1 -- install -m644 yt-dlp.1 $(DESTDIR)$(MANDIR)/man1/yt-dlp.1 -+ #install -m644 yt-dlp.1 $(DESTDIR)$(MANDIR)/man1/yt-dlp.1 - mkdir -p $(DESTDIR)$(SHAREDIR)/bash-completion/completions - install -m644 completions/bash/yt-dlp $(DESTDIR)$(SHAREDIR)/bash-completion/completions/yt-dlp - mkdir -p $(DESTDIR)$(SHAREDIR)/zsh/site-functions @@ -83,26 +83,26 @@ yt-dlp: yt_dlp/*.py yt_dlp/*/*.py done touch -t 200001010101 zip/yt_dlp/*.py zip/yt_dlp/*/*.py diff --git a/www/yt-dlp/pkg-plist b/www/yt-dlp/pkg-plist index 5e7fcfe4e75d..25beb354d2cf 100644 --- a/www/yt-dlp/pkg-plist +++ b/www/yt-dlp/pkg-plist @@ -1,5 +1,6 @@ %%SYMLINK%%bin/youtube-dl bin/yt-dlp +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