Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube-viewer: update to 3.11.3, add gtk variant #26550

Merged
merged 1 commit into from
Nov 14, 2024
Merged
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
19 changes: 14 additions & 5 deletions multimedia/youtube-viewer/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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} {
Expand All @@ -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
}