diff options
Diffstat (limited to 'net-misc/youtube-viewer')
-rw-r--r-- | net-misc/youtube-viewer/Manifest | 2 | ||||
-rw-r--r-- | net-misc/youtube-viewer/youtube-viewer-3.11.3.ebuild | 79 |
2 files changed, 81 insertions, 0 deletions
diff --git a/net-misc/youtube-viewer/Manifest b/net-misc/youtube-viewer/Manifest index 72f060529921..061f7bc56e23 100644 --- a/net-misc/youtube-viewer/Manifest +++ b/net-misc/youtube-viewer/Manifest @@ -1,4 +1,6 @@ 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 EBUILD youtube-viewer-3.11.2.ebuild 2151 BLAKE2B 4626432aa325396ff7950ec6bb670d865a84bb9db39204ac66efdd8f82e787f853f190a62680c379741e95ae06ca1a254318fb2d3af62e162007495a18ee33af SHA512 92d1f840baa7ad63765614b2fea6cd1b794876541eb4d89aad506b6f34cbd777ecb981289269ff0dc2d706a12c31f251ffc92c455b6460a4859b8fed555b1687 +EBUILD youtube-viewer-3.11.3.ebuild 2151 BLAKE2B 4626432aa325396ff7950ec6bb670d865a84bb9db39204ac66efdd8f82e787f853f190a62680c379741e95ae06ca1a254318fb2d3af62e162007495a18ee33af SHA512 92d1f840baa7ad63765614b2fea6cd1b794876541eb4d89aad506b6f34cbd777ecb981289269ff0dc2d706a12c31f251ffc92c455b6460a4859b8fed555b1687 EBUILD youtube-viewer-9999.ebuild 1896 BLAKE2B ffb298118063d05f495884e595ea89bbc848d0bdb0b925d0d6ebbcaeb6de20df8a3a0079e7f50cca86e3abf7089b5004564a1ef31a158d24321ff0dbd0286298 SHA512 20f37fb30a8a89d3fc88ffe2ad432cd0c711ef1e1fc1e7688ba57a944012a8a74df42154a9ceac7915f23539922f60c262582641976ff4e792f0210c216267d1 MISC metadata.xml 856 BLAKE2B 669dd186f7ce3cbe787ad2fc06dce3104597050d4eef4c02bb26d8256dabb082dc2e5826c2184ffcb6fc18217189d9953d902245b8e2119d3419eccfcb7a7636 SHA512 a3ca8ef08797a5fe27ce5f29a35f7989b736364f8597c2c9726dd92db0f2534c61fc7745f7f674614c832b7c314ee5e3cedce54f570679d81b52781fb7124f1d 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 +} |