/[gentoo-x86]/net-misc/youtube-viewer/youtube-viewer-3.1.1.ebuild
Gentoo

Contents of /net-misc/youtube-viewer/youtube-viewer-3.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sat Jun 13 19:39:47 2015 UTC (4 years, 9 months ago) by dilfridge
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -3 lines
Module::Build is no longer part of core Perl and has been moved to dev-perl

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0B08240A96F66571)

1 dilfridge 1.7 # Copyright 1999-2015 Gentoo Foundation
2 hasufell 1.1 # Distributed under the terms of the GNU General Public License v2
3 dilfridge 1.7 # $Header: /var/cvsroot/gentoo-x86/net-misc/youtube-viewer/youtube-viewer-3.1.1.ebuild,v 1.6 2014/11/28 22:25:11 dilfridge Exp $
4 hasufell 1.1
5     EAPI=5
6    
7     inherit gnome2-utils eutils perl-module vcs-snapshot
8    
9     DESCRIPTION="A command line utility for viewing youtube-videos in Mplayer"
10     HOMEPAGE="http://trizen.googlecode.com"
11     SRC_URI="https://github.com/trizen/youtube-viewer/tarball/${PV} -> ${P}.tar.gz"
12    
13     LICENSE="|| ( Artistic GPL-1+ )"
14     SLOT="0"
15 ago 1.3 KEYWORDS="amd64 x86"
16 hasufell 1.1 IUSE="gtk"
17    
18     RDEPEND="
19     >=dev-lang/perl-5.16.0
20     dev-perl/Data-Dump
21     dev-perl/libwww-perl
22     || ( media-video/mplayer[X,network]
23     media-video/mplayer2[X,network]
24     media-video/mpv[X] )
25     virtual/perl-File-Spec
26     virtual/perl-Getopt-Long
27     virtual/perl-Term-ANSIColor
28     virtual/perl-Text-ParseWords
29     virtual/perl-Text-Tabs+Wrap
30     gtk? (
31     dev-perl/File-ShareDir
32     >=dev-perl/gtk2-perl-1.244.0
33     virtual/freedesktop-icon-theme
34     x11-libs/gdk-pixbuf:2[X,jpeg]
35     )"
36 dilfridge 1.7 DEPEND="dev-perl/Module-Build"
37 hasufell 1.1
38     SRC_TEST="do"
39    
40     S=${WORKDIR}/${P}/WWW-YoutubeViewer
41    
42     src_prepare() {
43     perl-module_src_prepare
44     }
45    
46     # build system installs files on "perl Build.PL" too
47     # do all the work in src_install
48     src_configure() { :; }
49     src_compile() { :; }
50    
51     src_install() {
52     local myconf
53     if use gtk ; then
54     myconf="--gtk-youtube-viewer"
55     fi
56     perl-module_src_configure
57     perl-module_src_install
58    
59     if use gtk ; then
60     domenu share/gtk-youtube-viewer.desktop
61     doicon share/icons/gtk-youtube-viewer.png
62     fi
63     }
64    
65     pkg_preinst() {
66     use gtk && gnome2_icon_savelist
67 dilfridge 1.4 perl_set_version
68 hasufell 1.1 }
69    
70     pkg_postinst() {
71     use gtk && gnome2_icon_cache_update
72     einfo
73     elog "optional dependencies:"
74     elog " dev-perl/LWP-Protocol-https or dev-perl/libwww-perl[ssl]"
75     elog " and virtual/perl-MIME-Base64"
76     elog " (for HTTPS protocol and login support)"
77     elog " dev-perl/Term-ReadLine-Gnu (for a better STDIN support)"
78     elog " dev-perl/Text-CharWidth (print the results in a fixed-width"
79     elog " format (--fixed-width, -W))"
80     elog " dev-perl/XML-Fast (faster XML to HASH conversion)"
81     elog " net-misc/gcap (for retrieving Youtube closed captions)"
82     elog " virtual/perl-File-Temp (for posting comments)"
83     elog " virtual/perl-Scalar-List-Utils (to shuffle the playlists"
84     elog " (--shuffle, -s))"
85     elog " virtual/perl-threads (threads support)"
86     einfo
87     }
88    
89     pkg_postrm() {
90     use gtk && gnome2_icon_cache_update
91     }

  ViewVC Help
Powered by ViewVC 1.1.20