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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Sun Apr 6 18:21:21 2014 UTC (6 years ago) by hasufell
Branch: MAIN
Changes since 1.15: +4 -3 lines
add media-video/mpv dep wrt #506872

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)

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

  ViewVC Help
Powered by ViewVC 1.1.20