1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils gnome2-utils perl-module vcs-snapshot
9 DESCRIPTION="A command line utility for viewing youtube-videos in Mplayer"
10 HOMEPAGE="https://trizen.googlecode.com"
11 SRC_URI="https://github.com/trizen/youtube-viewer/tarball/${PV} -> ${P}.tar.gz"
13 LICENSE="|| ( Artistic GPL-1+ )"
15 KEYWORDS="~amd64 ~x86"
19 >=dev-lang/perl-5.16.0
22 dev-perl/libwww-perl[ssl]
23 dev-perl/Term-ReadLine-Gnu
25 virtual/perl-File-Path
26 virtual/perl-File-Spec
27 virtual/perl-Getopt-Long
28 virtual/perl-Scalar-List-Utils
29 virtual/perl-Term-ANSIColor
30 virtual/perl-Term-ReadLine
31 virtual/perl-Text-ParseWords
32 virtual/perl-Text-Tabs+Wrap
34 dev-perl/File-ShareDir
35 >=dev-perl/gtk2-perl-1.244.0
36 virtual/freedesktop-icon-theme
37 x11-libs/gdk-pixbuf:2[X,jpeg]
39 DEPEND="dev-perl/Module-Build"
44 perl-module_src_prepare
47 # build system installs files on "perl Build.PL" too
48 # do all the work in src_install
49 src_configure() { :; }
55 myconf="--gtk-youtube-viewer"
57 perl-module_src_configure
58 perl-module_src_install
61 domenu share/gtk-youtube-viewer.desktop
62 doicon share/icons/gtk-youtube-viewer.png
67 use gtk && gnome2_icon_savelist
72 use gtk && gnome2_icon_cache_update
73 elog "Optional dependencies:"
74 optfeature "cache support" dev-perl/LWP-UserAgent-Cached
75 optfeature "better STDIN support" dev-perl/Term-ReadLine-Gnu
76 optfeature "faster JSON to HASH conversion" dev-perl/JSON-XS
77 optfeature "the case if there are SSL problems" dev-perl/Mozilla-CA
78 optfeature "printing results in a fixed-width format (--fixed-width, -W)" dev-perl/Text-CharWidth
79 optfeature "threads support" virtual/perl-threads
81 elog "You also need a compatible video player, possible choices are:"
82 elog " media-video/mpv"
83 elog " media-video/smplayer"
84 elog " media-video/vlc"
85 elog "Also check the configuration file in ~/.config/youtube-viewer/"
86 elog "and configure your video player backend."
90 use gtk && gnome2_icon_cache_update