commit:     1b0fa3b0475c2fa701add17916ede8dfd404ba54
Author:     Julian Ospald <hasufell <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 27 12:28:26 2015 +0000
Commit:     Julian Ospald <hasufell <AT> gentoo <DOT> org>
CommitDate: Tue Oct 27 12:35:29 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b0fa3b0

net-misc/youtube-viewer: update live ebuild

* switch to git-r3
* sync with stable ebuild
* fix dependencies

 net-misc/youtube-viewer/youtube-viewer-9999.ebuild | 48 ++++++++++++++--------
 1 file changed, 32 insertions(+), 16 deletions(-)

diff --git a/net-misc/youtube-viewer/youtube-viewer-9999.ebuild 
b/net-misc/youtube-viewer/youtube-viewer-9999.ebuild
index c1d99f7..68d8ce7 100644
--- a/net-misc/youtube-viewer/youtube-viewer-9999.ebuild
+++ b/net-misc/youtube-viewer/youtube-viewer-9999.ebuild
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit perl-module git-2
+inherit gnome2-utils eutils perl-module git-r3
 
 DESCRIPTION="A command line utility for viewing youtube-videos in Mplayer"
 HOMEPAGE="https://trizen.googlecode.com";
@@ -19,13 +19,18 @@ IUSE="gtk"
 RDEPEND="
        >=dev-lang/perl-5.16.0
        dev-perl/Data-Dump
-       dev-perl/libwww-perl
-       || ( media-video/mplayer[X,network]
-               media-video/mplayer2[X,network]
-               media-video/mpv[X] )
+       dev-perl/JSON
+       dev-perl/libwww-perl[ssl]
+       dev-perl/Term-ReadLine-Gnu
+       || ( media-video/mplayer[network]
+               media-video/mpv )
+       virtual/perl-Encode
+       virtual/perl-File-Path
        virtual/perl-File-Spec
        virtual/perl-Getopt-Long
+       virtual/perl-Scalar-List-Utils
        virtual/perl-Term-ANSIColor
+       virtual/perl-Term-ReadLine
        virtual/perl-Text-ParseWords
        virtual/perl-Text-Tabs+Wrap
        gtk? (
@@ -36,11 +41,12 @@ RDEPEND="
        )"
 DEPEND="dev-perl/Module-Build"
 
-EGIT_SOURCEDIR="${WORKDIR}"
-S=${WORKDIR}/WWW-YoutubeViewer
-
 SRC_TEST="do"
 
+src_prepare() {
+       perl-module_src_prepare
+}
+
 # build system installs files on "perl Build.PL" too
 # do all the work in src_install
 src_configure() { :; }
@@ -53,22 +59,32 @@ src_install() {
        fi
        perl-module_src_configure
        perl-module_src_install
+
+       if use gtk ; then
+               domenu share/gtk-youtube-viewer.desktop
+               doicon share/icons/gtk-youtube-viewer.png
+       fi
+}
+
+pkg_preinst() {
+       use gtk && gnome2_icon_savelist
+       perl_set_version
 }
 
 pkg_postinst() {
+       use gtk && gnome2_icon_cache_update
        einfo
        elog "optional dependencies:"
-       elog "  dev-perl/LWP-Protocol-https or dev-perl/libwww-perl[ssl]"
-       elog "  and virtual/perl-MIME-Base64"
-       elog "    (for HTTPS protocol and login support)"
+       elog "  dev-perl/LWP-UserAgent-Cached (cache support)"
        elog "  dev-perl/Term-ReadLine-Gnu (for a better STDIN support)"
+       elog "  dev-perl/JSON-XS (faster JSON to HASH conversion)"
+       elog "  dev-perl/Mozilla-CA (just in case if there are SSL problems)"
        elog "  dev-perl/Text-CharWidth (print the results in a fixed-width"
        elog "    format (--fixed-width, -W))"
-       elog "  dev-perl/XML-Fast (faster XML to HASH conversion)"
-       elog "  net-misc/gcap (for retrieving Youtube closed captions)"
-       elog "  virtual/perl-File-Temp (for posting comments)"
-       elog "  virtual/perl-Scalar-List-Utils (to shuffle the playlists"
-       elog "    (--shuffle, -s))"
        elog "  virtual/perl-threads (threads support)"
        einfo
 }
+
+pkg_postrm() {
+       use gtk && gnome2_icon_cache_update
+}

Reply via email to