mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
80 lines
2.7 KiB
Tcl
80 lines
2.7 KiB
Tcl
# -*- 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
|
|
PortGroup github 1.0
|
|
|
|
name yt-dlp-ejs
|
|
homepage https://github.com/yt-dlp/ejs
|
|
|
|
github.setup yt-dlp ejs 0.8.0
|
|
github.tarball_from releases
|
|
distname yt_dlp_ejs-${version}-py3-none-any
|
|
extract.suffix .whl
|
|
extract.only
|
|
|
|
revision 0
|
|
categories net
|
|
license public-domain ISC MIT
|
|
|
|
maintainers {@akierig fastmail.de:akierig} \
|
|
{@ryandesign ryandesign}
|
|
|
|
checksums rmd160 6be40d6ee24651d68f3621ccda8ccae8d31b8940 \
|
|
sha256 79300e5fca7f937a1eeede11f0456862c1b41107ce1d726871e0207424f4bdb4 \
|
|
size 53443
|
|
|
|
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}
|
|
|
|
variant python310 conflicts python311 python312 python313 python314 description {Use Python 3.10} {}
|
|
variant python311 conflicts python310 python312 python313 python314 description {Use Python 3.11} {}
|
|
variant python312 conflicts python310 python311 python313 python314 description {Use Python 3.12} {}
|
|
variant python313 conflicts python310 python311 python312 python314 description {Use Python 3.13} {}
|
|
variant python314 conflicts python310 python311 python312 python313 description {Use Python 3.14} {}
|
|
|
|
if {![variant_isset python310] && ![variant_isset python311] && ![variant_isset python312] && ![variant_isset python313] && ![variant_isset python314
|
|
]} {
|
|
default_variants +python314
|
|
}
|
|
|
|
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
|
|
} elseif {[variant_isset python314]} {
|
|
python.default_version 314
|
|
}
|
|
|
|
depends_run-append port:deno
|
|
|
|
if {${os.major} <= 16} {
|
|
depends_run-delete port:deno
|
|
depends_run-append path:bin/qjs:quickjs
|
|
|
|
notes "
|
|
If you are using macOS 10.12 or older, you will need to pass the
|
|
'--js-runtimes quickjs:${prefix}/bin/qjs' flag or add the appropriate
|
|
changes to your yt-dlp configuration file. For example, you can run
|
|
this command to set up the default configuration file:
|
|
|
|
echo --js-runtimes quickjs:${prefix}/bin/qjs >> ~/yt-dlp.conf
|
|
"
|
|
}
|
|
|
|
python.pep517_backend
|
|
|
|
build {}
|
|
|
|
destroot.target ${distpath}/${distfiles}
|
|
|