summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/youtube-viewer')
-rw-r--r--net-misc/youtube-viewer/Manifest1
-rw-r--r--net-misc/youtube-viewer/youtube-viewer-3.1.9.ebuild89
2 files changed, 90 insertions, 0 deletions
diff --git a/net-misc/youtube-viewer/Manifest b/net-misc/youtube-viewer/Manifest
index 286ca46daceb..1ebf539872a7 100644
--- a/net-misc/youtube-viewer/Manifest
+++ b/net-misc/youtube-viewer/Manifest
@@ -1 +1,2 @@
DIST youtube-viewer-3.1.1.tar.gz 210183 SHA256 416289dac7c4bb29ad046e41bbf49faaca31f1827379e9e0082f5b282186531d SHA512 1c7236cde68f21a80bb1f3ac29e19f86f52732c784adb70f6fc07177d74ada3a6ae1652e604fc12f62ce8ddf0c172593dd85a419a6d7d804f980fc09afda90f0 WHIRLPOOL 9045cc344bd627806526594daafbd8e17cfefa0e7aaf456c5c3a0c7ebec4bdd53f8ec708e051b37706ac3e1e29af3379e1df8ea21bfd370ca367950e6accf886
+DIST youtube-viewer-3.1.9.tar.gz 222276 SHA256 9b7ba2b50cea054898024bc871e231673269ab50db0526ee3f1a7ae62a51e8d2 SHA512 60ff81defd4d8d1bc1f6b5bceaa03c9bbe64e8fea2083ce60b04b6c14d8b13ded6da255b9aa46bfcb1b76cf33121ddb738d0f0c159e4bd207999ca558a43e86e WHIRLPOOL 2e6a79992c7760d93c2e28f1e4f5c14861b6fefed8e0bebb9a7d88c6cf27000904971b12274a972ca66471ffee7c3bfee8c90218c16ddd0ec96cc8f46779bffd
diff --git a/net-misc/youtube-viewer/youtube-viewer-3.1.9.ebuild b/net-misc/youtube-viewer/youtube-viewer-3.1.9.ebuild
new file mode 100644
index 000000000000..59041b3b300e
--- /dev/null
+++ b/net-misc/youtube-viewer/youtube-viewer-3.1.9.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit gnome2-utils eutils perl-module vcs-snapshot
+
+DESCRIPTION="A command line utility for viewing youtube-videos in Mplayer"
+HOMEPAGE="https://trizen.googlecode.com"
+SRC_URI="https://github.com/trizen/youtube-viewer/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="|| ( Artistic GPL-1+ )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk"
+
+RDEPEND="
+ >=dev-lang/perl-5.16.0
+ dev-perl/Data-Dump
+ 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? (
+ dev-perl/File-ShareDir
+ >=dev-perl/gtk2-perl-1.244.0
+ virtual/freedesktop-icon-theme
+ x11-libs/gdk-pixbuf:2[X,jpeg]
+ )"
+DEPEND="dev-perl/Module-Build"
+
+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() { :; }
+src_compile() { :; }
+
+src_install() {
+ local myconf
+ if use gtk ; then
+ myconf="--gtk-youtube-viewer"
+ 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-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 " virtual/perl-threads (threads support)"
+ einfo
+}
+
+pkg_postrm() {
+ use gtk && gnome2_icon_cache_update
+}