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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.18
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 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.2 2012/05/01 23:55:08 hasufell Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/youtube-viewer/youtube-viewer-9999.ebuild,v 1.18 2015/06/13 19:39:47 dilfridge Exp $
4 4
5EAPI=4 5EAPI=5
6 6
7inherit git-2 7inherit perl-module git-2
8 8
9DESCRIPTION="A command line utility for viewing youtube-videos in Mplayer" 9DESCRIPTION="A command line utility for viewing youtube-videos in Mplayer"
10HOMEPAGE="http://trizen.googlecode.com" 10HOMEPAGE="http://trizen.googlecode.com"
11SRC_URI="" 11SRC_URI=""
12EGIT_REPO_URI="git://github.com/trizen/${PN}.git" 12EGIT_REPO_URI="git://github.com/trizen/${PN}.git"
13 13
14LICENSE="GPL-3" 14LICENSE="|| ( Artistic GPL-1+ )"
15SLOT="0" 15SLOT="0"
16KEYWORDS="" 16KEYWORDS=""
17IUSE="" 17IUSE="gtk"
18 18
19RDEPEND="dev-lang/perl 19RDEPEND="
20 >=dev-lang/perl-5.16.0
21 dev-perl/Data-Dump
20 dev-perl/libwww-perl 22 dev-perl/libwww-perl
21 dev-perl/XML-Fast 23 || ( media-video/mplayer[X,network]
22 media-video/mplayer[X,mp3,faad,x264] 24 media-video/mplayer2[X,network]
23 virtual/perl-Scalar-List-Utils" 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 )"
37DEPEND="dev-perl/Module-Build"
38
39EGIT_SOURCEDIR="${WORKDIR}"
40S=${WORKDIR}/WWW-YoutubeViewer
41
42SRC_TEST="do"
43
44# build system installs files on "perl Build.PL" too
45# do all the work in src_install
46src_configure() { :; }
47src_compile() { :; }
24 48
25src_install() { 49src_install() {
26 dobin ${PN} 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
27} 56}
57
58pkg_postinst() {
59 einfo
60 elog "optional dependencies:"
61 elog " dev-perl/LWP-Protocol-https or dev-perl/libwww-perl[ssl]"
62 elog " and virtual/perl-MIME-Base64"
63 elog " (for HTTPS protocol and login support)"
64 elog " dev-perl/Term-ReadLine-Gnu (for a better STDIN support)"
65 elog " dev-perl/Text-CharWidth (print the results in a fixed-width"
66 elog " format (--fixed-width, -W))"
67 elog " dev-perl/XML-Fast (faster XML to HASH conversion)"
68 elog " net-misc/gcap (for retrieving Youtube closed captions)"
69 elog " virtual/perl-File-Temp (for posting comments)"
70 elog " virtual/perl-Scalar-List-Utils (to shuffle the playlists"
71 elog " (--shuffle, -s))"
72 elog " virtual/perl-threads (threads support)"
73 einfo
74}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20