/[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.14 Revision 1.18
1# Copyright 1999-2013 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.14 2013/12/14 14:26:00 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=5 5EAPI=5
6 6
7inherit perl-module git-2 7inherit perl-module git-2
8 8
19RDEPEND=" 19RDEPEND="
20 >=dev-lang/perl-5.16.0 20 >=dev-lang/perl-5.16.0
21 dev-perl/Data-Dump 21 dev-perl/Data-Dump
22 dev-perl/libwww-perl 22 dev-perl/libwww-perl
23 || ( media-video/mplayer[X,network] 23 || ( media-video/mplayer[X,network]
24 media-video/mplayer2[X,network] ) 24 media-video/mplayer2[X,network]
25 media-video/mpv[X] )
25 virtual/perl-File-Spec 26 virtual/perl-File-Spec
26 virtual/perl-Getopt-Long 27 virtual/perl-Getopt-Long
27 virtual/perl-Term-ANSIColor 28 virtual/perl-Term-ANSIColor
28 virtual/perl-Text-ParseWords 29 virtual/perl-Text-ParseWords
29 virtual/perl-Text-Tabs+Wrap 30 virtual/perl-Text-Tabs+Wrap
31 dev-perl/File-ShareDir 32 dev-perl/File-ShareDir
32 >=dev-perl/gtk2-perl-1.244.0 33 >=dev-perl/gtk2-perl-1.244.0
33 virtual/freedesktop-icon-theme 34 virtual/freedesktop-icon-theme
34 x11-libs/gdk-pixbuf:2[X,jpeg] 35 x11-libs/gdk-pixbuf:2[X,jpeg]
35 )" 36 )"
36DEPEND="virtual/perl-Module-Build" 37DEPEND="dev-perl/Module-Build"
37 38
38EGIT_SOURCEDIR="${WORKDIR}" 39EGIT_SOURCEDIR="${WORKDIR}"
39S=${WORKDIR}/WWW-YoutubeViewer 40S=${WORKDIR}/WWW-YoutubeViewer
40 41
41SRC_TEST="do" 42SRC_TEST="do"
44# do all the work in src_install 45# do all the work in src_install
45src_configure() { :; } 46src_configure() { :; }
46src_compile() { :; } 47src_compile() { :; }
47 48
48src_install() { 49src_install() {
49 local myconf="--share_dir=/usr/share" 50 local myconf
51 if use gtk ; then
50 use gtk && myconf+=" --gtk-youtube-viewer" 52 myconf="--gtk-youtube-viewer"
53 fi
51 perl-module_src_configure 54 perl-module_src_configure
52 perl-module_src_install 55 perl-module_src_install
53} 56}
54 57
55pkg_postinst() { 58pkg_postinst() {
56 perl-module_pkg_postinst
57 einfo 59 einfo
58 elog "optional dependencies:" 60 elog "optional dependencies:"
59 elog " dev-perl/LWP-Protocol-https or dev-perl/libwww-perl[ssl]" 61 elog " dev-perl/LWP-Protocol-https or dev-perl/libwww-perl[ssl]"
60 elog " and virtual/perl-MIME-Base64" 62 elog " and virtual/perl-MIME-Base64"
61 elog " (for HTTPS protocol and login support)" 63 elog " (for HTTPS protocol and login support)"

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

  ViewVC Help
Powered by ViewVC 1.1.20