<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ec0fe5e555673d86761ebfe87f9f436cec5a4126">https://github.com/macports/macports-ports/commit/ec0fe5e555673d86761ebfe87f9f436cec5a4126</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ec0fe5e555673d86761ebfe87f9f436cec5a4126
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Wed Jun 22 08:43:54 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> yt-dlp: Update to 2022.06.22.1
</span>---
net/youtube-dl/Portfile | 9 +++----
net/youtube-dl/files/yt-dlp-config-location.patch | 30 +++++++++++------------
net/youtube-dl/files/yt-dlp-update.patch | 14 +++++------
3 files changed, 26 insertions(+), 27 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/youtube-dl/Portfile b/net/youtube-dl/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ede9dffe41e..4c7c4de28c0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/youtube-dl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/youtube-dl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,11 +35,11 @@ if {${subport} eq ${name}} {
</span> }
subport yt-dlp {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- github.setup yt-dlp ${subport} 2022.05.18
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup yt-dlp ${subport} 2022.06.22.1
</span> revision 0
<span style='display:block; white-space:pre;background:#ffe0e0;'>- checksums rmd160 2e21f04dee626ffda5a9b74643c958f21c6b3902 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 59a0e89d79018070844c6301f7848594b746ca4857e7da14a5e6938a24e63172 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 4541851
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 e9568c5191e505c1cf9a7493d98ae366963ae955 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 fac29d5a8d4c2f1317ba5c2fc4231cf169887bcef26d0fbf0481c90ddb7826db \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 4610621
</span>
dist_subdir ${subport}/${version}
distname ${subport}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -53,7 +53,6 @@ subport yt-dlp {
</span> }
categories net
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> maintainers {ryandesign @ryandesign}
supported_archs noarch
license public-domain
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/youtube-dl/files/yt-dlp-config-location.patch b/net/youtube-dl/files/yt-dlp-config-location.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index a13562b6b58..51e79712745 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/youtube-dl/files/yt-dlp-config-location.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/youtube-dl/files/yt-dlp-config-location.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,6 +1,6 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- README.md.orig 2022-05-17 22:37:36.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ README.md 2022-05-18 03:34:01.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1090,7 +1090,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- README.md.orig 2022-06-21 20:15:00.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ README.md 2022-06-22 08:36:12.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1140,7 +1140,7 @@
</span>
`%XDG_CONFIG_HOME%` defaults to `~/.config` if undefined. On windows, `%APPDATA%` generally points to `C:\Users\<user name>\AppData\Roaming` and `~` points to `%HOME%` if present, `%USERPROFILE%` (generally `C:\Users\<user name>`), or `%HOMEDRIVE%%HOMEPATH%`
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,25 +9,25 @@
</span>
For example, with the following configuration file yt-dlp will always extract the audio, not copy the mtime, use a proxy and save all videos under `YouTube` directory in your home directory:
```
<span style='display:block; white-space:pre;background:#ffe0e0;'>---- yt-dlp.1.orig 2022-05-17 22:37:38.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ yt-dlp.1 2022-05-18 03:33:05.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1091,7 +1091,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- \f[C]%HOMEDRIVE%%HOMEPATH%\f[R]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- yt-dlp.1.orig 2022-06-21 20:15:02.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ yt-dlp.1 2022-06-22 08:37:06.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1590,7 +1590,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \f[C]C:\\Users\\<user\ name>\f[]), or \f[C]%HOMEDRIVE%%HOMEPATH%\f[]
</span> .RE
.IP "5." 3
<span style='display:block; white-space:pre;background:#ffe0e0;'>--\f[B]System Configuration\f[R]: \f[C]/etc/yt\-dlp.conf\f[R]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+\f[B]System Configuration\f[R]: \f[C]@PREFIX@/etc/yt\-dlp.conf\f[R]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-\f[B]System Configuration\f[]: \f[C]/etc/yt\-dlp.conf\f[]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++\f[B]System Configuration\f[]: \f[C]@PREFIX@/etc/yt\-dlp.conf\f[]
</span> .PP
For example, with the following configuration file yt\-dlp will always
extract the audio, not copy the mtime, use a proxy and save all videos
<span style='display:block; white-space:pre;background:#ffe0e0;'>---- yt_dlp/options.py.orig 2022-05-17 22:37:24.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ yt_dlp/options.py 2022-05-18 03:33:05.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -94,7 +94,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- yt_dlp/options.py.orig 2022-06-21 20:14:41.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ yt_dlp/options.py 2022-06-22 08:36:12.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -92,7 +92,7 @@
</span> yield add_config('Portable', get_executable_path())
<span style='display:block; white-space:pre;background:#ffe0e0;'>- yield add_config('Home', expand_path(root.parse_args()[0].paths.get('home', '')).strip())
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ yield add_config('Home', expand_path(root.parse_known_args()[0].paths.get('home', '')).strip())
</span> yield add_config('User', None, user=True)
- yield add_config('System', '/etc')
+ yield add_config('System', '@PREFIX@/etc')
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if all(load_configs()):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # If ignoreconfig is found inside the system configuration file,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ opts = optparse.Values({'verbose': True, 'print_help': False})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ try:
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/youtube-dl/files/yt-dlp-update.patch b/net/youtube-dl/files/yt-dlp-update.patch
</span><span style='display:block; white-space:pre;color:#808080;'>index a5ae3fc336f..ff1faa577d5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/youtube-dl/files/yt-dlp-update.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/youtube-dl/files/yt-dlp-update.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,11 +1,11 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- yt_dlp/update.py.orig 2022-05-17 22:37:24.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ yt_dlp/update.py 2022-05-18 03:36:07.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -35,7 +35,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'win_dir': 'Auto-update is not supported for unpackaged windows executable; Re-download the latest release',
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'mac_dir': 'Auto-update is not supported for unpackaged MacOS executable; Re-download the latest release',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- yt_dlp/update.py.orig 2022-06-21 20:14:41.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ yt_dlp/update.py 2022-06-22 08:41:30.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -53,7 +53,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ **{variant: f'Auto-update is not supported for unpackaged {name} executable; Re-download the latest release'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for variant, name in {'win32_dir': 'Windows', 'darwin_dir': 'MacOS', 'linux_dir': 'Linux'}.items()},
</span> 'source': 'You cannot update when running from source code; Use git to pull the latest changes',
- 'unknown': 'It looks like you installed yt-dlp with a package manager, pip or setup.py; Use that to update',
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ 'unknown': 'It looks like you installed yt-dlp with MacPorts; use "sudo port selfupdate && sudo port upgrade yt-dlp" to update',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ 'unknown': 'It looks like you installed yt-dlp with MacPorts; Use "sudo port selfupdate && sudo port upgrade yt-dlp" to update',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'other': 'It looks like you are using an unofficial build of yt-dlp; Build the executable again',
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span></pre><pre style='margin:0'>
</pre>