pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/yt-dlp yt-dlp: Use PKGMANDIR correctly.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/97a73e89734b
branches:  trunk
changeset: 771336:97a73e89734b
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Dec 17 12:43:40 2021 +0000

description:
yt-dlp: Use PKGMANDIR correctly.

Fixes install on systems where PKGMANDIR is share/man.

diffstat:

 net/yt-dlp/Makefile               |   8 +++++---
 net/yt-dlp/distinfo               |   3 ++-
 net/yt-dlp/patches/patch-setup.py |  15 +++++++++++++++
 3 files changed, 22 insertions(+), 4 deletions(-)

diffs (53 lines):

diff -r b12145092367 -r 97a73e89734b net/yt-dlp/Makefile
--- a/net/yt-dlp/Makefile       Fri Dec 17 11:57:58 2021 +0000
+++ b/net/yt-dlp/Makefile       Fri Dec 17 12:43:40 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2021/12/01 14:32:32 ryoon Exp $
+# $NetBSD: Makefile,v 1.5 2021/12/17 12:43:40 jperkin Exp $
 
 DISTNAME=      yt-dlp-2021.12.1
 CATEGORIES=    net
@@ -15,8 +15,10 @@
 
 INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
 
-post-install:
-       ${MV} ${DESTDIR}${PREFIX}/share/man/man1/yt-dlp.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths=     setup.py
+SUBST_VARS.paths=      PKGMANDIR
 
 # Only for >= 3.6
 PYTHON_VERSIONS_INCOMPATIBLE=  27
diff -r b12145092367 -r 97a73e89734b net/yt-dlp/distinfo
--- a/net/yt-dlp/distinfo       Fri Dec 17 11:57:58 2021 +0000
+++ b/net/yt-dlp/distinfo       Fri Dec 17 12:43:40 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2021/12/01 14:32:32 ryoon Exp $
+$NetBSD: distinfo,v 1.5 2021/12/17 12:43:40 jperkin Exp $
 
 BLAKE2s (yt-dlp-2021.12.1.tar.gz) = fc6e956d8a2f1578d9f0f7af736b8a53119d3dd4bc23ef075a7c6516dec5fce7
 SHA512 (yt-dlp-2021.12.1.tar.gz) = d04e9e5ae36e73923ac79bb98af6e402ba0b4403430cbcc0517e7f446d42b6c637846b11489c0159faf667ab798b937abb9597fb5fba76b6f7b6e2b379bae328
 Size (yt-dlp-2021.12.1.tar.gz) = 2064958 bytes
+SHA1 (patch-setup.py) = 7f3394a2b9737424e4c47c0f31488a8b2fef0bcb
 SHA1 (patch-yt__dlp_postprocessor_ffmpeg.py) = 11ebc3adf3bfbc76853f74d1abb865b7749c3b34
diff -r b12145092367 -r 97a73e89734b net/yt-dlp/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/yt-dlp/patches/patch-setup.py Fri Dec 17 12:43:40 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2021/12/17 12:43:40 jperkin Exp $
+
+Support PKGMANDIR.
+
+--- setup.py.orig      2021-12-01 00:23:03.000000000 +0000
++++ setup.py
+@@ -60,7 +60,7 @@ else:
+         ('share/zsh/site-functions', ['completions/zsh/_yt-dlp']),
+         ('share/fish/vendor_completions.d', ['completions/fish/yt-dlp.fish']),
+         ('share/doc/yt_dlp', ['README.txt']),
+-        ('share/man/man1', ['yt-dlp.1'])
++        ('@PKGMANDIR@/man1', ['yt-dlp.1'])
+     ]
+     root = os.path.dirname(os.path.abspath(__file__))
+     data_files = []



Home | Main Index | Thread Index | Old Index