|
| 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