From e38bf0744e015e7c1cb905be3119099da330c1e6 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Mon, 11 Nov 2024 09:04:16 +0800 Subject: [PATCH] youtube-viewer: update to 3.11.3, add gtk variant Closes: https://trac.macports.org/ticket/70452 --- multimedia/youtube-viewer/Portfile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/multimedia/youtube-viewer/Portfile b/multimedia/youtube-viewer/Portfile index ddfccab31bbf2..4ecabe147dd45 100644 --- a/multimedia/youtube-viewer/Portfile +++ b/multimedia/youtube-viewer/Portfile @@ -10,8 +10,8 @@ perl5.default_branch 5.34 perl5.create_variants ${perl5.branches} name youtube-viewer -perl5.setup youtube-viewer 3.9.1 -revision 1 +perl5.setup youtube-viewer 3.11.3 +revision 0 categories multimedia net platforms {darwin any} supported_archs noarch @@ -23,9 +23,9 @@ homepage https://trizenx.blogspot.com/2012/03/gtk-youtube-viewer.html master_sites https://github.com/trizen/youtube-viewer/archive/ distfiles ${version}.tar.gz -checksums rmd160 8269ca66628bbf46cc274b5be65ad8d75fdf07aa \ - sha256 19a2195c23bcb13b17c2de6bf69b8d4adf74c601812a28823b32b7831caffb97 \ - size 257481 +checksums rmd160 a7bc884aa545f9056a67c0bfc9fbe3f3ba805b81 \ + sha256 f750637f8ce71648e8f0fe44ba34c3b944f46b2cc499ba5a19e773fe6b9ce7f2 \ + size 269693 perl5.use_module_build perl5.link_binaries_suffix @@ -56,6 +56,7 @@ depends_lib-append \ port:p${perl5.major}-text-tabsxwrap \ port:p${perl5.major}-uri depends_run-append \ + port:p${perl5.major}-common-sense \ port:p${perl5.major}-mozilla-ca if {${os.platform} eq "darwin" && ${os.major} < 19} { @@ -65,3 +66,11 @@ if {${os.platform} eq "darwin" && ${os.major} < 19} { depends_run-append \ port:mpv } + +variant gtk description "Enable GTK-based GUI" { + depends_lib-append \ + port:p${perl5.major}-file-sharedir \ + port:p${perl5.major}-gtk2 + configure.pre_args-append \ + --gtk +}