pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/yt-dlp



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Fri Dec 17 12:43:40 UTC 2021

Modified Files:
        pkgsrc/net/yt-dlp: Makefile distinfo
Added Files:
        pkgsrc/net/yt-dlp/patches: patch-setup.py

Log Message:
yt-dlp: Use PKGMANDIR correctly.

Fixes install on systems where PKGMANDIR is share/man.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/net/yt-dlp/Makefile \
    pkgsrc/net/yt-dlp/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/yt-dlp/patches/patch-setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/yt-dlp/Makefile
diff -u pkgsrc/net/yt-dlp/Makefile:1.4 pkgsrc/net/yt-dlp/Makefile:1.5
--- pkgsrc/net/yt-dlp/Makefile:1.4      Wed Dec  1 14:32:32 2021
+++ pkgsrc/net/yt-dlp/Makefile  Fri Dec 17 12:43:40 2021
@@ -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 @@ USE_LANGUAGES=       # none
 
 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
Index: pkgsrc/net/yt-dlp/distinfo
diff -u pkgsrc/net/yt-dlp/distinfo:1.4 pkgsrc/net/yt-dlp/distinfo:1.5
--- pkgsrc/net/yt-dlp/distinfo:1.4      Wed Dec  1 14:32:32 2021
+++ pkgsrc/net/yt-dlp/distinfo  Fri Dec 17 12:43:40 2021
@@ -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

Added files:

Index: pkgsrc/net/yt-dlp/patches/patch-setup.py
diff -u /dev/null pkgsrc/net/yt-dlp/patches/patch-setup.py:1.1
--- /dev/null   Fri Dec 17 12:43:40 2021
+++ pkgsrc/net/yt-dlp/patches/patch-setup.py    Fri Dec 17 12:43:40 2021
@@ -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