summaryrefslogtreecommitdiff
path: root/net-misc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-01-26 20:48:48 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-01-26 20:48:48 +0000
commitcf28ad0f5e1620203bac64b0dfd7ee5e5c1ae618 (patch)
tree62f1360483ea862af6f6c1ac9a1a41e1fd740ca3 /net-misc
parent293009a92b88e5983b52445c55c3693ad6d6c05b (diff)
net-misc/youtube-viewer : new package
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/youtube-viewer/Manifest1
-rw-r--r--net-misc/youtube-viewer/youtube-viewer-3.3.3.ebuild79
2 files changed, 80 insertions, 0 deletions
diff --git a/net-misc/youtube-viewer/Manifest b/net-misc/youtube-viewer/Manifest
new file mode 100644
index 00000000..7a3c7542
--- /dev/null
+++ b/net-misc/youtube-viewer/Manifest
@@ -0,0 +1 @@
+DIST youtube-viewer-3.3.3.tar.gz 232856 SHA256 f36d500f733079bf8cf0fc78550ea215afa485c1ceaeec2bfdaa62a32314a7c8 SHA512 ca624c456d33aa804398f71f1dd4a095f7b9ca5ae5a1cb255b9e8a3dea671a8b0f986977428e797f1fc1f96d69087a66c71185e37cc521d668c036c4e7a5825f WHIRLPOOL 30c6734ba076c3b3e82f6b8a2549e3939f9719b936e5243b2810da322391bcda853d73c2668f95f590dded38b2052c30a2d7f9be752f90e3365df1d992e8afaf
diff --git a/net-misc/youtube-viewer/youtube-viewer-3.3.3.ebuild b/net-misc/youtube-viewer/youtube-viewer-3.3.3.ebuild
new file mode 100644
index 00000000..6e0f5e4e
--- /dev/null
+++ b/net-misc/youtube-viewer/youtube-viewer-3.3.3.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils gnome2-utils perl-module
+
+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"
+IUSE="+gtk"
+
+RDEPEND="
+ dev-perl/Data-Dump
+ dev-perl/JSON
+ dev-perl/JSON-XS
+ dev-perl/libwww-perl[ssl]
+ dev-perl/Mozilla-CA
+ dev-perl/Term-ReadLine-Gnu
+ dev-perl/Text-CharWidth
+ dev-perl/LWP-Protocol-https
+ dev-perl/LWP-UserAgent-Cached
+ virtual/perl-Encode
+ virtual/perl-File-Path
+ virtual/perl-File-Spec
+ virtual/perl-Getopt-Long
+ virtual/perl-Scalar-List-Utils
+ virtual/perl-threads
+ virtual/perl-Term-ANSIColor
+ virtual/perl-Term-ReadLine
+ virtual/perl-Text-ParseWords
+ virtual/perl-Text-Tabs+Wrap
+ gtk? (
+ dev-perl/File-ShareDir
+ >=dev-perl/Gtk2-1.244.0
+ virtual/freedesktop-icon-theme
+ x11-libs/gdk-pixbuf:2[X,jpeg]
+ )
+ || ( media-video/ffmpeg[openssl] media-video/ffmpeg[gnutls] )
+ || ( media-video/mpv media-video/vlc )"
+DEPEND="dev-perl/Module-Build"
+
+src_configure() {
+ local myconf
+ if use gtk ; then
+ myconf="--gtk-youtube-viewer"
+ 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 && gnome2_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 "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 && gnome2_icon_cache_update
+}