Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions net/youtube-dl/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,20 @@ if {${subport} eq ${name}} {
}

subport yt-dlp {
github.setup yt-dlp ${subport} 2025.10.22
github.setup yt-dlp ${subport} 2025.11.12
revision 0
checksums rmd160 83ddc3b5c6fa99da2554ba48039d8d82d934e2f3 \
sha256 8ed2971172cbe1295258341e9f04527a7f27578538ce70ef4c9ebaba8966a969 \
size 6025669
checksums rmd160 b204b191aa2c5abd0bb2f66a1e75d70b112837b7 \
sha256 561ead2e2991f11789d3cd9f9b5a2eee2641a587e2cfc1ee9631c7c1d851c0ec \
size 6139146
dist_subdir ${subport}/${version}
distname ${subport}

python.pep517_backend hatch
depends_run-append port:yt-dlp-ejs

variant no_javascript description {Remove yt-dlp-ejs and javascript runtime dependency} {
depends_run-delete port:yt-dlp-ejs
}

set symlinks [list \
share/bash-completion/completions/${subport} \
Expand Down
71 changes: 71 additions & 0 deletions net/yt-dlp-ejs/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# -*- 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

PortSystem 1.0
PortGroup python 1.0

name yt-dlp-ejs
homepage https://github.com/yt-dlp/ejs
version 0.3.1

master_sites https://files.pythonhosted.org/packages/e7/fd/34fbdaf0d53386c47e219c532a479766cd9336fde34c00834c8e0123df7a/
distname yt_dlp_ejs-${version}-py3-none-any
extract.suffix .whl
extract.only

revision 0
categories net
license public-domain

maintainers {@akierig fastmail.de:akierig} \
{@ryandesign ryandesign}

checksums rmd160 f952db52d48e810454de82a5a3e2c80136954564 \
sha256 a6e3548874db7c774388931752bb46c7f4642c044b2a189e56968f3d5ecab622 \
size 53155

description ${name} is an external JavaScript utility for \
yt-dlp that supports multiple JS runtimes.
long_description {*}${description} It enables yt-dlp to solve \
JavaScript challenges for YouTube and other sites.

supported_archs noarch
platforms {darwin any}
license public-domain

variant python310 conflicts python311 python312 python313 description {Use Python 3.10} {}
variant python311 conflicts python310 python312 python313 description {Use Python 3.11} {}
variant python312 conflicts python310 python311 python313 description {Use Python 3.12} {}
variant python313 conflicts python310 python311 python312 description {Use Python 3.13} {}

if {![variant_isset python310] && ![variant_isset python311] && ![variant_isset python312] && ![variant_isset python313]} {
default_variants +python313
}

if {[variant_isset python310]} {
python.default_version 310
} elseif {[variant_isset python311]} {
python.default_version 311
} elseif {[variant_isset python312]} {
python.default_version 312
} elseif {[variant_isset python313]} {
python.default_version 313
}

depends_run-append port:deno

if {${os.major} <= 16} {
depends_run-delete port:deno
depends_run-append path:bin/qjs:quickjs
}

python.pep517_backend

build {}

destroot.target ${distpath}/${distfiles}

notes "
if you are using MacOS 10.12 or older, you will need to pass the
'--js-runtimes quickjs' flag or add the appropriate changes to
your yt-dlp configuration file.
"