summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kurakin <kuraga333@mail.ru>2024-11-12 17:31:07 +0300
committerSam James <sam@gentoo.org>2024-12-01 11:57:05 +0000
commit1a07634786772c863f1508227db8d8274ac4a40b (patch)
treecc3c2945c4d38e4adc6722d99fe46fc0157d9fca /net-misc/youtube-viewer
parentnet-misc/networkmanager: forward ~hppa (diff)
downloadgentoo-1a07634786772c863f1508227db8d8274ac4a40b.tar.gz
gentoo-1a07634786772c863f1508227db8d8274ac4a40b.tar.bz2
gentoo-1a07634786772c863f1508227db8d8274ac4a40b.zip
net-misc/youtube-viewer: add 3.11.3
Closes: https://bugs.gentoo.org/943326 Signed-off-by: Alexander Kurakin <kuraga333@mail.ru> Closes: https://github.com/gentoo/gentoo/pull/39287 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/youtube-viewer')
-rw-r--r--net-misc/youtube-viewer/Manifest1
-rw-r--r--net-misc/youtube-viewer/youtube-viewer-3.11.3.ebuild79
2 files changed, 80 insertions, 0 deletions
diff --git a/net-misc/youtube-viewer/Manifest b/net-misc/youtube-viewer/Manifest
index 9cbfb11d26b7..b9e9a77609d0 100644
--- a/net-misc/youtube-viewer/Manifest
+++ b/net-misc/youtube-viewer/Manifest
@@ -1 +1,2 @@
DIST youtube-viewer-3.11.2.tar.gz 268972 BLAKE2B f4312bf82ef977374abe9f0366dc38fccf0fc2571796dfb6eeb7e42fdf2ed4a879ee35fa5ec43c37d6e2bbd38ef4f8080476c57a31cfa5139cf0438f661e64cc SHA512 8640fff8bf87d00d8a7649f0ff5c602fd2513ffd28cf741b9a29b6b0292fff733cde70382ef36810c9c3f6431371f6f3ddea34aaba1ac9064782aec1b315650e
+DIST youtube-viewer-3.11.3.tar.gz 269693 BLAKE2B a304bd0905e694f2bdf67607391dd0ec2be823c5bb0c256395fd05e7ef48654da80d4eb0c96a4102d4d1fdb6f0bf1371a8c5c0ebb10b1516025399a453beb1ad SHA512 1dea38a3d445227fd5ddc6655df970262e4ffcf209a74f35ee4e68585591f3619f67ca2e4cb9ab7e48e26a2b898d2a43d64932a78335224f5d0dc6e78333d8aa
diff --git a/net-misc/youtube-viewer/youtube-viewer-3.11.3.ebuild b/net-misc/youtube-viewer/youtube-viewer-3.11.3.ebuild
new file mode 100644
index 000000000000..bbdbd05ff1c1
--- /dev/null
+++ b/net-misc/youtube-viewer/youtube-viewer-3.11.3.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_TEST="do"
+inherit desktop optfeature perl-module xdg-utils
+
+DESCRIPTION="A command line utility for viewing youtube-videos in Mplayer"
+HOMEPAGE="https://github.com/trizen/youtube-viewer"
+SRC_URI="https://github.com/trizen/youtube-viewer/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( Artistic-2 GPL-1+ )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk"
+
+RDEPEND="
+ dev-perl/Data-Dump
+ dev-perl/JSON
+ dev-perl/libwww-perl[ssl]
+ dev-perl/LWP-Protocol-https
+ dev-perl/Term-ReadLine-Gnu
+ virtual/perl-Encode
+ virtual/perl-File-Path
+ virtual/perl-File-Spec
+ virtual/perl-Getopt-Long
+ virtual/perl-Scalar-List-Utils
+ virtual/perl-Term-ANSIColor
+ virtual/perl-Term-ReadLine
+ virtual/perl-Text-ParseWords
+ virtual/perl-Text-Tabs+Wrap
+ gtk? (
+ dev-perl/Gtk3
+ dev-perl/File-ShareDir
+ virtual/freedesktop-icon-theme
+ x11-libs/gdk-pixbuf:2[jpeg]
+ )
+ || ( media-video/ffmpeg[openssl] media-video/ffmpeg[gnutls] )
+ || ( media-video/mpv media-video/mplayer media-video/vlc gtk? ( media-video/smplayer ) )"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-perl/Module-Build"
+
+src_configure() {
+ local myconf
+ if use gtk; then
+ myconf="--gtk3"
+ fi
+
+ perl-module_src_configure
+}
+
+src_install() {
+ perl-module_src_install
+
+ if use gtk; then
+ domenu share/gtk-youtube-viewer.desktop
+ doicon share/icons/gtk-youtube-viewer.png
+ fi
+}
+
+pkg_postinst() {
+ use gtk && xdg_icon_cache_update
+ optfeature "local cache support" dev-perl/LWP-UserAgent-Cached
+ optfeature "faster JSON to HASH conversion" dev-perl/JSON-XS
+ optfeature "printing results in a fixed-width format (--fixed-width, -W)" dev-perl/Text-CharWidth
+ optfeature "live streams support" net-misc/yt-dlp
+ elog
+ elog "Check the configuration file in ~/.config/youtube-viewer/"
+ elog "and configure your video player backend."
+ elog
+ ewarn "Starting with version 3.7.4, youtube-viewer requires the user to"
+ ewarn "get their own API key to function. Please refer to README.md or"
+ ewarn "https://github.com/trizen/youtube-viewer#logging-in for details!"
+}
+
+pkg_postrm() {
+ use gtk && xdg_icon_cache_update
+}