diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-08-11 07:02:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-08-11 07:02:28 +0100 |
commit | 068424b26532f3551a81421a9be67ed206e5c11a (patch) | |
tree | 583b8d979899a463a4ef5b26d3d49e85df987623 /net-misc/youtube-viewer | |
parent | d162ba1860a88062f4cd61f8b52fc303ba0b2991 (diff) |
gentoo resync : 11.08.2021
Diffstat (limited to 'net-misc/youtube-viewer')
-rw-r--r-- | net-misc/youtube-viewer/Manifest | 4 | ||||
-rw-r--r-- | net-misc/youtube-viewer/youtube-viewer-3.9.3.ebuild | 78 | ||||
-rw-r--r-- | net-misc/youtube-viewer/youtube-viewer-9999.ebuild | 21 |
3 files changed, 86 insertions, 17 deletions
diff --git a/net-misc/youtube-viewer/Manifest b/net-misc/youtube-viewer/Manifest index 5de6f396c250..6a2b45e5a7c8 100644 --- a/net-misc/youtube-viewer/Manifest +++ b/net-misc/youtube-viewer/Manifest @@ -1,4 +1,6 @@ DIST youtube-viewer-3.7.4.tar.gz 281921 BLAKE2B dac2cbf76f3d0939f79fa875652680e197f41bf09769585894147dfe433db72a94d59309237f5ce5398753a39e2cf2cf83ae3f4f6987f5a4b49d806de2598e2c SHA512 4584821fb0ae3ec7e5f9c3b2e887b1fa158fb74a82be07698277e12d3762fd3b8f0557baddb9e08fe485f322b44b91adc2feaaba46227e0c519a516b54bbc4e8 +DIST youtube-viewer-3.9.3.tar.gz 258488 BLAKE2B 5c8a0fa3e01be483aebcdf3ccab1a1ed583398abadd038a5bf60f76b0b085363fb024c14b39c2223ed3c6027cf65a4b41552e518573f9eac3c09ebf4524edd3b SHA512 1be169858ac0c132b9142549ad63643c3c3bee543f745fbe811c911e6310d65cf9e6f0ff669c7666f2eb1a70592ad95236567301297b9c56726764e3c1174581 EBUILD youtube-viewer-3.7.4-r2.ebuild 2409 BLAKE2B e40cbe61654ab2309d74cc01f6893abd23d86a7f011f7b6fe1459e972cb319bada728255c2c73dbd60c4d8ac22eee3a9b653d818381a460526edda6cd616bf67 SHA512 13f7d77c225edf71d7921de6b099378257f2436815911297a48565d32c1f5deee9ba08b85122151096754b089c7f836dc9a8a7fd07691c4b70e7f0db7f30b1fb -EBUILD youtube-viewer-9999.ebuild 2171 BLAKE2B d820d828590e34c161b9a4d7c8026200bab61ff3e3257c93ef209d0f50202641123d42fd2fbfddc74c84611fd061e62d200d72ff1b8ff7ac59a0034e88d768d4 SHA512 46f65971440bb7cb54c9a1a6ded29ef46ea719889ce9cef15ed15645a9c8e0c1eb6b48c5fe181db711b189bf6c9e49dc7783c9d102cdc01d5f5fd5a89c47130d +EBUILD youtube-viewer-3.9.3.ebuild 2140 BLAKE2B f7cf0a2a840adc259be361603f2d5c248a0d1c7d2e9e6ec8d3ed55ea7a946bccfbdd00bbad0ed02d47ffa7d8c141c755997a9f8ae565b853161f4cb06d78e39e SHA512 c6159145b068330b71b45360d1fa4f0cff1bda7749285b33eae9772d684320df89c558db37b554598a15ba774d31ec3b66994ee89f8d27ec09ccd6b423c0143d +EBUILD youtube-viewer-9999.ebuild 1932 BLAKE2B 73a41a742d47da2eae82a467d0ed1cac93e3637873b67af9e4d868eabeebcf19bc0a0c4625a3951411f320577d4eb65f88b497f5b4e3fb8b54b113b27bc8296d SHA512 adeed06bd32b30e18c32a0add6f6e941ef067bdb3f276f7bdd7b2286293f7b82d967870e15c461dae9279371f2e4ecd4e291c9a196313f741b295709e6289d6a MISC metadata.xml 847 BLAKE2B 212670f9fc51ecba97d723572602f0e38021712746db20248e084549c0d574388bcf94139a1bed4cd2255dace6fdfd2e2dd31103ef88144b4bd6b9f740085bd9 SHA512 84ca1c094706ebbf570e9eed2d8142f80b0eea012eeda6f972ab99bd17c802babee5a5a5109ddbfe2837e0c6faacf30dfdd4d54d95e23099966f83f485d1893d diff --git a/net-misc/youtube-viewer/youtube-viewer-3.9.3.ebuild b/net-misc/youtube-viewer/youtube-viewer-3.9.3.ebuild new file mode 100644 index 000000000000..b4cd505eca6a --- /dev/null +++ b/net-misc/youtube-viewer/youtube-viewer-3.9.3.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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/youtube-dl + 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 +} diff --git a/net-misc/youtube-viewer/youtube-viewer-9999.ebuild b/net-misc/youtube-viewer/youtube-viewer-9999.ebuild index b96a94bb1341..408761565f06 100644 --- a/net-misc/youtube-viewer/youtube-viewer-9999.ebuild +++ b/net-misc/youtube-viewer/youtube-viewer-9999.ebuild @@ -21,8 +21,8 @@ RDEPEND=" dev-perl/Data-Dump dev-perl/JSON dev-perl/libwww-perl[ssl] - dev-perl/Term-ReadLine-Gnu dev-perl/LWP-Protocol-https + dev-perl/Term-ReadLine-Gnu virtual/perl-Encode virtual/perl-File-Path virtual/perl-File-Spec @@ -33,17 +33,12 @@ RDEPEND=" virtual/perl-Text-ParseWords virtual/perl-Text-Tabs+Wrap gtk? ( - gtk2? ( - >=dev-perl/Gtk2-1.244.0 - ) - !gtk2? ( - dev-perl/Gtk3 - ) + dev-perl/Gtk3 dev-perl/File-ShareDir virtual/freedesktop-icon-theme x11-libs/gdk-pixbuf:2[jpeg] ) - || ( >=media-video/ffmpeg-4.1.3[openssl] >=media-video/ffmpeg-4.1.3[gnutls] ) + || ( media-video/ffmpeg[openssl] media-video/ffmpeg[gnutls] ) || ( media-video/mpv media-video/mplayer media-video/vlc gtk? ( media-video/smplayer ) )" DEPEND="dev-perl/Module-Build" @@ -52,11 +47,7 @@ SRC_TEST="do" src_configure() { local myconf if use gtk; then - if use gtk2; then - myconf="--gtk2" - else - myconf="--gtk3" - fi + myconf="--gtk3" fi perl-module_src_configure @@ -73,12 +64,10 @@ src_install() { pkg_postinst() { use gtk && xdg_icon_cache_update - optfeature "cache support" dev-perl/LWP-UserAgent-Cached + optfeature "local cache support" dev-perl/LWP-UserAgent-Cached optfeature "faster JSON to HASH conversion" dev-perl/JSON-XS - optfeature "the case if there are SSL problems" dev-perl/Mozilla-CA optfeature "printing results in a fixed-width format (--fixed-width, -W)" dev-perl/Text-CharWidth optfeature "live streams support" net-misc/youtube-dl - optfeature "threads support" virtual/perl-threads elog elog "Check the configuration file in ~/.config/youtube-viewer/" elog "and configure your video player backend." |