<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/a91d9d9f82d094567814e8a66d1846c0bd093c90">https://github.com/macports/macports-ports/commit/a91d9d9f82d094567814e8a66d1846c0bd093c90</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new a91d9d9f82d youtube-dl: Use python portgroup / setup.py
</span>a91d9d9f82d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit a91d9d9f82d094567814e8a66d1846c0bd093c90
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Tue Sep 22 08:45:51 2020 -0500
<span style='display:block; white-space:pre;color:#404040;'> youtube-dl: Use python portgroup / setup.py
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This allows the python files to be compiled at installation time rather
</span><span style='display:block; white-space:pre;color:#404040;'> than every time at runtime, making the program launch faster.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/58638
</span>---
net/youtube-dl/Portfile | 63 ++++++++++++++++++-------------------------------
1 file changed, 23 insertions(+), 40 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 4e759282f3d..4cfb9c685b5 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;'>@@ -2,9 +2,10 @@
</span>
PortSystem 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup python 1.0
</span>
github.setup ytdl-org youtube-dl 2020.09.20
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> checksums rmd160 107732952ec9238057a1bfc3fd7147ce4026f451 \
sha256 ac1a799cf968345bf29089ed2e5c5d4f4a32031625d808369e61b6362d1c7cde \
size 3188480
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -14,6 +15,7 @@ platforms darwin
</span> maintainers {ryandesign @ryandesign} openmaintainer
supported_archs noarch
license public-domain
<span style='display:block; white-space:pre;background:#e0ffe0;'>+installs_libs no
</span>
description command-line program to download videos from YouTube.com and other sites
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,43 +24,34 @@ long_description ${name} is a small ${description}.
</span> homepage https://ytdl-org.github.io/youtube-dl/
github.tarball_from releases
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build bin:zip:zip
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> worksrcdir ${name}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-extract {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Force the script to be regenerated by `make`.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- delete ${worksrcpath}/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> patchfiles patch-config-location.diff \
patch-youtube_dl-update.py.diff
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patch.args --backup
</span>
post-patch {
reinplace -W ${worksrcpath} "s|@PREFIX@|${prefix}|g" \
youtube_dl/options.py \
README.md \
youtube-dl.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Restore original mtimes of files changed by the patch so that make
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # doesn't try to regenerate the documentation with pandoc.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach f {youtube_dl/update.py youtube_dl/options.py README.md youtube-dl.1} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file mtime ${worksrcpath}/${f} [file mtime ${worksrcpath}/${f}.orig]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_configure no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-pre-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- build.args-append PYTHON=${configure.python}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.args PREFIX=${prefix} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- MANDIR=${prefix}/share/man \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- SYSCONFDIR=${prefix}/etc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> post-destroot {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://github.com/ytdl-org/youtube-dl/issues/9231
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${python.prefix}/share/zsh/site-functions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 ${worksrcpath}/youtube-dl.zsh \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${python.prefix}/share/zsh/site-functions/_youtube-dl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ etc/bash_completion.d/youtube-dl.bash-completion
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ etc/fish/completions/youtube-dl.fish
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ share/man/man1/youtube-dl.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ share/zsh/site-functions/_youtube-dl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/[file dirname ${f}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${python.prefix}/${f} ${destroot}${prefix}/${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -72,33 +65,23 @@ variant ffmpeg description {Add ffmpeg dependency, used to extract audio} {
</span> default_variants +ffmpeg
variant python27 conflicts python35 python36 python37 python38 description {Use Python 2.7} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_run-append port:python27
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:python27
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.python ${prefix}/bin/python2.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ python.default_version 27
</span> }
variant python35 conflicts python27 python36 python37 python38 description {Use Python 3.5} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_run-append port:python35
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:python35
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.python ${prefix}/bin/python3.5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ python.default_version 35
</span> }
variant python36 conflicts python27 python35 python37 python38 description {Use Python 3.6} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_run-append port:python36
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:python36
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.python ${prefix}/bin/python3.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ python.default_version 36
</span> }
variant python37 conflicts python27 python35 python36 python38 description {Use Python 3.7} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_run-append port:python37
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:python37
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.python ${prefix}/bin/python3.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ python.default_version 37
</span> }
variant python38 conflicts python27 python35 python36 python37 description {Use Python 3.8} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_run-append port:python38
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:python38
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.python ${prefix}/bin/python3.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ python.default_version 38
</span> }
if {![variant_isset python27] && ![variant_isset python35] && ![variant_isset python36] && ![variant_isset python37] && ![variant_isset python38]} {
</pre><pre style='margin:0'>
</pre>