diff options
author | Julian Ospald <hasufell@gentoo.org> | 2015-10-27 13:28:26 +0100 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2015-10-27 13:35:29 +0100 |
commit | 1b0fa3b0475c2fa701add17916ede8dfd404ba54 (patch) | |
tree | de71ea63f6138fa5913651d77cdd2710848b2c2a /net-misc/youtube-viewer/youtube-viewer-9999.ebuild | |
parent | profiles: Mask USE=qt5 on stable for dev-python/matplotlib (diff) | |
download | gentoo-1b0fa3b0475c2fa701add17916ede8dfd404ba54.tar.gz gentoo-1b0fa3b0475c2fa701add17916ede8dfd404ba54.tar.bz2 gentoo-1b0fa3b0475c2fa701add17916ede8dfd404ba54.zip |
net-misc/youtube-viewer: update live ebuild
* switch to git-r3
* sync with stable ebuild
* fix dependencies
Diffstat (limited to 'net-misc/youtube-viewer/youtube-viewer-9999.ebuild')
-rw-r--r-- | net-misc/youtube-viewer/youtube-viewer-9999.ebuild | 48 |
1 files 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 c1d99f7242f2..68d8ce7a2403 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 +} |