Skip to content

Commit 7ddb7a3

Browse files
akierigneverpanic
authored andcommitted
yt-dlp-ejs: new port
yt-dlp: update to 2025.11.12 Closes: https://trac.macports.org/ticket/73227
1 parent 06716c0 commit 7ddb7a3

File tree

2 files changed

+81
-4
lines changed

2 files changed

+81
-4
lines changed

net/youtube-dl/Portfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,22 @@ if {${subport} eq ${name}} {
3737
}
3838

3939
subport yt-dlp {
40-
github.setup yt-dlp ${subport} 2025.10.22
40+
github.setup yt-dlp ${subport} 2025.11.12
4141
revision 0
42-
checksums rmd160 83ddc3b5c6fa99da2554ba48039d8d82d934e2f3 \
43-
sha256 8ed2971172cbe1295258341e9f04527a7f27578538ce70ef4c9ebaba8966a969 \
44-
size 6025669
42+
checksums rmd160 b204b191aa2c5abd0bb2f66a1e75d70b112837b7 \
43+
sha256 561ead2e2991f11789d3cd9f9b5a2eee2641a587e2cfc1ee9631c7c1d851c0ec \
44+
size 6139146
4545
dist_subdir ${subport}/${version}
4646
distname ${subport}
4747

4848
python.pep517_backend hatch
4949

50+
variant js_runtime description {add yt-dlp-ejs and javascript runtime dependency} {
51+
depends_run-append port:yt-dlp-ejs
52+
}
53+
54+
default_variants +js_runtime
55+
5056
set symlinks [list \
5157
share/bash-completion/completions/${subport} \
5258
share/fish/vendor_completions.d/${subport}.fish \

net/yt-dlp-ejs/Portfile

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2+
3+
PortSystem 1.0
4+
PortGroup python 1.0
5+
6+
name yt-dlp-ejs
7+
homepage https://github.com/yt-dlp/ejs
8+
version 0.3.1
9+
10+
master_sites https://files.pythonhosted.org/packages/e7/fd/34fbdaf0d53386c47e219c532a479766cd9336fde34c00834c8e0123df7a/
11+
distname yt_dlp_ejs-${version}-py3-none-any
12+
extract.suffix .whl
13+
extract.only
14+
15+
revision 0
16+
categories net
17+
license public-domain ISC MIT
18+
19+
maintainers {@akierig fastmail.de:akierig} \
20+
{@ryandesign ryandesign}
21+
22+
checksums rmd160 f952db52d48e810454de82a5a3e2c80136954564 \
23+
sha256 a6e3548874db7c774388931752bb46c7f4642c044b2a189e56968f3d5ecab622 \
24+
size 53155
25+
26+
description ${name} is an external JavaScript utility for \
27+
yt-dlp that supports multiple JS runtimes.
28+
long_description {*}${description} It enables yt-dlp to solve \
29+
JavaScript challenges for YouTube and other sites.
30+
31+
supported_archs noarch
32+
platforms {darwin any}
33+
34+
variant python310 conflicts python311 python312 python313 description {Use Python 3.10} {}
35+
variant python311 conflicts python310 python312 python313 description {Use Python 3.11} {}
36+
variant python312 conflicts python310 python311 python313 description {Use Python 3.12} {}
37+
variant python313 conflicts python310 python311 python312 description {Use Python 3.13} {}
38+
39+
if {![variant_isset python310] && ![variant_isset python311] && ![variant_isset python312] && ![variant_isset python313]} {
40+
default_variants +python313
41+
}
42+
43+
if {[variant_isset python310]} {
44+
python.default_version 310
45+
} elseif {[variant_isset python311]} {
46+
python.default_version 311
47+
} elseif {[variant_isset python312]} {
48+
python.default_version 312
49+
} elseif {[variant_isset python313]} {
50+
python.default_version 313
51+
}
52+
53+
depends_run-append port:deno
54+
55+
if {${os.major} <= 16} {
56+
depends_run-delete port:deno
57+
depends_run-append path:bin/qjs:quickjs
58+
59+
notes "
60+
if you are using MacOS 10.12 or older, you will need to pass the
61+
'--js-runtimes quickjs' flag or add the appropriate changes to
62+
your yt-dlp configuration file.
63+
"
64+
}
65+
66+
python.pep517_backend
67+
68+
build {}
69+
70+
destroot.target ${distpath}/${distfiles}
71+

0 commit comments

Comments
 (0)