Skip to content

Commit

Permalink
youtube-viewer: update to 3.11.3, add gtk variant
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Nov 12, 2024
1 parent 84147a8 commit b73c1b7
Showing 1 changed file with 14 additions and 5 deletions.
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
}

0 comments on commit b73c1b7

Please sign in to comment.