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

Contents of /net-misc/youtube-viewer/youtube-viewer-3.0.9-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Dec 25 17:00:52 2014 UTC (5 years, 1 month ago) by kensington
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x06B1F38DCA45A1EC!)

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-3.0.9-r2.ebuild,v 1.5 2014/11/28 22:25:11 dilfridge Exp $
4
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 KEYWORDS="~amd64 ~x86"
16 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 !net-misc/gtk-youtube-viewer
34 virtual/freedesktop-icon-theme
35 x11-libs/gdk-pixbuf:2[X,jpeg]
36 )"
37 DEPEND="virtual/perl-Module-Build"
38
39 SRC_TEST="do"
40
41 S=${WORKDIR}/${P}/WWW-YoutubeViewer
42
43 src_prepare() {
44 perl-module_src_prepare
45 }
46
47 # build system installs files on "perl Build.PL" too
48 # do all the work in src_install
49 src_configure() { :; }
50 src_compile() { :; }
51
52 src_install() {
53 local myconf
54 if use gtk ; then
55 myconf="--gtk-youtube-viewer"
56 fi
57 perl-module_src_configure
58 perl-module_src_install
59
60 if use gtk ; then
61 domenu share/gtk-youtube-viewer.desktop
62 doicon -s 256 share/gtk-youtube-viewer.png
63 fi
64 }
65
66 pkg_preinst() {
67 use gtk && gnome2_icon_savelist
68 perl_set_version
69 }
70
71 pkg_postinst() {
72 use gtk && gnome2_icon_cache_update
73 einfo
74 elog "optional dependencies:"
75 elog " dev-perl/LWP-Protocol-https or dev-perl/libwww-perl[ssl]"
76 elog " and virtual/perl-MIME-Base64"
77 elog " (for HTTPS protocol and login support)"
78 elog " dev-perl/Term-ReadLine-Gnu (for a better STDIN support)"
79 elog " dev-perl/Text-CharWidth (print the results in a fixed-width"
80 elog " format (--fixed-width, -W))"
81 elog " dev-perl/XML-Fast (faster XML to HASH conversion)"
82 elog " net-misc/gcap (for retrieving Youtube closed captions)"
83 elog " virtual/perl-File-Temp (for posting comments)"
84 elog " virtual/perl-Scalar-List-Utils (to shuffle the playlists"
85 elog " (--shuffle, -s))"
86 elog " virtual/perl-threads (threads support)"
87 einfo
88 }
89
90 pkg_postrm() {
91 use gtk && gnome2_icon_cache_update
92 }

  ViewVC Help
Powered by ViewVC 1.1.20