summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Puskas <zoltan@sinustrom.info>2020-02-02 17:06:04 -0800
committerJoonas Niilola <juippis@gentoo.org>2020-03-05 14:01:20 +0200
commit421cfe8c6701cf64d7666ca43a447d9d3b6efb76 (patch)
tree699e34b9e7e44515281a47bf6c39f6f065208a55 /net-misc
parentnet-misc/youtube-viewer: Drop 3.5.8-r1 (diff)
downloadgentoo-421cfe8c6701cf64d7666ca43a447d9d3b6efb76.tar.gz
gentoo-421cfe8c6701cf64d7666ca43a447d9d3b6efb76.tar.bz2
gentoo-421cfe8c6701cf64d7666ca43a447d9d3b6efb76.zip
net-misc/youtube-viewer: Bump to 3.7.4 with gtk3 support
Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: Zoltan Puskas <zoltan@sinustrom.info> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/youtube-viewer/Manifest1
-rw-r--r--net-misc/youtube-viewer/metadata.xml4
-rw-r--r--net-misc/youtube-viewer/youtube-viewer-3.7.4.ebuild87
3 files changed, 91 insertions, 1 deletions
diff --git a/net-misc/youtube-viewer/Manifest b/net-misc/youtube-viewer/Manifest
index fb171bae7f82..962231e1847e 100644
--- a/net-misc/youtube-viewer/Manifest
+++ b/net-misc/youtube-viewer/Manifest
@@ -1,2 +1,3 @@
DIST youtube-viewer-3.5.5.tar.gz 238922 BLAKE2B 8e5b57f5e83ce53b3249e948e141042a4dff019e201718c5a75d5577a349707add5f2d4a6e5a53ff4968394b0b54df43bdee4933e9d4fe9ef62b6ed489a54678 SHA512 6e73565e7b8ba415e0f056a402804510af2d2d3e833daf3254330f75b404a21042318441d52b9b7ecb6659a693189c43a9b9148be4d3e154d4a1d23b402e8a63
DIST youtube-viewer-3.5.9.tar.gz 236095 BLAKE2B b98cfbca26da99f148d3afe0a4f7a4478abaf7c9f9727b421b7718004950e8bee52f58fe08e30b7ccfcd44bdc3ba3f7f75a5a5450581c3f2a9badaeac0fcb5f4 SHA512 2fe06feacbb0240606197b982aa097272d1d615e83a15d686da96fe336a5e85c71dccc046faaa106d85b1012a6b169ff39434b72b2033b2c8d301616c085eae1
+DIST youtube-viewer-3.7.4.tar.gz 281921 BLAKE2B dac2cbf76f3d0939f79fa875652680e197f41bf09769585894147dfe433db72a94d59309237f5ce5398753a39e2cf2cf83ae3f4f6987f5a4b49d806de2598e2c SHA512 4584821fb0ae3ec7e5f9c3b2e887b1fa158fb74a82be07698277e12d3762fd3b8f0557baddb9e08fe485f322b44b91adc2feaaba46227e0c519a516b54bbc4e8
diff --git a/net-misc/youtube-viewer/metadata.xml b/net-misc/youtube-viewer/metadata.xml
index 7f054f58d41f..8b79660b6222 100644
--- a/net-misc/youtube-viewer/metadata.xml
+++ b/net-misc/youtube-viewer/metadata.xml
@@ -18,7 +18,9 @@
<remote-id type="github">trizen/youtube-viewer</remote-id>
</upstream>
<use>
- <flag name="gtk">Install the gtk GUI, called gtk-youtube-viewer</flag>
+ <flag name="gtk" restrict='&lt;net-misc/youtube-viewer-3.7.0'>Install the gtk2 GUI</flag>
+ <flag name="gtk" restrict='&gt;=net-misc/youtube-viewer-3.7.0'>Install the gtk3 GUI</flag>
+ <flag name="gtk2" restrict='&gt;=net-misc/youtube-viewer-3.7.0'>Use the old gtk2 GUI instead of the gtk3 one</flag>
</use>
<longdescription lang="en">
Youtube Viewer is a CLI application dedicated for searching and
diff --git a/net-misc/youtube-viewer/youtube-viewer-3.7.4.ebuild b/net-misc/youtube-viewer/youtube-viewer-3.7.4.ebuild
new file mode 100644
index 000000000000..18973d997c62
--- /dev/null
+++ b/net-misc/youtube-viewer/youtube-viewer-3.7.4.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop eutils perl-module xdg-utils
+
+DESCRIPTION="A command line utility for viewing youtube-videos in Mplayer"
+HOMEPAGE="https://trizenx.blogspot.com/2012/03/gtk-youtube-viewer.html"
+SRC_URI="https://github.com/trizen/youtube-viewer/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( Artistic GPL-1+ )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk gtk2"
+
+REQUIRED_USE="gtk2? ( gtk )"
+
+RDEPEND="
+ dev-perl/Data-Dump
+ dev-perl/JSON
+ dev-perl/libwww-perl[ssl]
+ dev-perl/Term-ReadLine-Gnu
+ dev-perl/LWP-Protocol-https
+ 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? (
+ gtk2? (
+ >=dev-perl/Gtk2-1.244.0
+ )
+ !gtk2? (
+ dev-perl/Gtk3
+ )
+ dev-perl/File-ShareDir
+ virtual/freedesktop-icon-theme
+ x11-libs/gdk-pixbuf:2[X,jpeg]
+ )
+ || ( >=media-video/ffmpeg-4.1.3[openssl,-libressl] >=media-video/ffmpeg-4.1.3[-openssl,libressl] >=media-video/ffmpeg-4.1.3[gnutls] )
+ || ( media-video/mpv media-video/mplayer media-video/vlc gtk? ( media-video/smplayer ) )"
+DEPEND="dev-perl/Module-Build"
+
+src_configure() {
+ local myconf
+ if use gtk; then
+ if use gtk2; then
+ myconf="--gtk2"
+ else
+ myconf="--gtk3"
+ fi
+ 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
+ elog "Optional dependencies:"
+ optfeature "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."
+}
+
+pkg_postrm() {
+ use gtk && xdg_icon_cache_update
+}