summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-09-24 23:39:29 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-09-24 23:39:29 +0000
commit6202371bbea739aa21f6dec397b24a125b9c5aa7 (patch)
tree09dcd145b9f6bbbb0621286d0ab9815bd58672d4 /net-misc
parentadd blocker (diff)
downloadgentoo-2-6202371bbea739aa21f6dec397b24a125b9c5aa7.tar.gz
gentoo-2-6202371bbea739aa21f6dec397b24a125b9c5aa7.tar.bz2
gentoo-2-6202371bbea739aa21f6dec397b24a125b9c5aa7.zip
version bump
(Portage version: 2.2.0_alpha131/cvs/Linux x86_64)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/youtube-viewer/ChangeLog9
-rw-r--r--net-misc/youtube-viewer/files/youtube-viewer-3.0.1_p20120924-desktopfile.patch21
-rw-r--r--net-misc/youtube-viewer/youtube-viewer-3.0.1_p20120924.ebuild62
3 files changed, 91 insertions, 1 deletions
diff --git a/net-misc/youtube-viewer/ChangeLog b/net-misc/youtube-viewer/ChangeLog
index 0034a333c1cb..f66ce960c00e 100644
--- a/net-misc/youtube-viewer/ChangeLog
+++ b/net-misc/youtube-viewer/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-misc/youtube-viewer
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/youtube-viewer/ChangeLog,v 1.10 2012/08/20 15:12:23 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/youtube-viewer/ChangeLog,v 1.11 2012/09/24 23:39:29 hasufell Exp $
+
+*youtube-viewer-3.0.1_p20120924 (24 Sep 2012)
+
+ 24 Sep 2012; Julian Ospald <hasufell@gentoo.org>
+ +youtube-viewer-3.0.1_p20120924.ebuild,
+ +files/youtube-viewer-3.0.1_p20120924-desktopfile.patch:
+ version bump
*youtube-viewer-3.0.0_p20120820 (20 Aug 2012)
diff --git a/net-misc/youtube-viewer/files/youtube-viewer-3.0.1_p20120924-desktopfile.patch b/net-misc/youtube-viewer/files/youtube-viewer-3.0.1_p20120924-desktopfile.patch
new file mode 100644
index 000000000000..f0a5b7eda1e6
--- /dev/null
+++ b/net-misc/youtube-viewer/files/youtube-viewer-3.0.1_p20120924-desktopfile.patch
@@ -0,0 +1,21 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Mon Sep 24 23:14:08 UTC 2012
+Subject: fix desktop file
+
+https://github.com/trizen/youtube-viewer/issues/12
+
+--- share/gtk-youtube-viewer.desktop
++++ share/gtk-youtube-viewer.desktop
+@@ -1,11 +1,10 @@
+ [Desktop Entry]
+ Name=GTK Youtube Viewer
+ Version=1.0
+-Encoding=UTF-8
+ Comment=A Gtk2 application to search and play Youtube videos with MPlayer.
+ Exec=gtk-youtube-viewer
+ Icon=gtk-youtube-viewer
+ StartupNotify=false
+ Terminal=false
+ Type=Application
+-Categories=AudioVideo
++Categories=AudioVideo;
diff --git a/net-misc/youtube-viewer/youtube-viewer-3.0.1_p20120924.ebuild b/net-misc/youtube-viewer/youtube-viewer-3.0.1_p20120924.ebuild
new file mode 100644
index 000000000000..a2b3b137072f
--- /dev/null
+++ b/net-misc/youtube-viewer/youtube-viewer-3.0.1_p20120924.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/youtube-viewer/youtube-viewer-3.0.1_p20120924.ebuild,v 1.1 2012/09/24 23:39:29 hasufell Exp $
+
+EAPI=4
+
+inherit eutils perl-module
+
+DESCRIPTION="A command line utility for viewing youtube-videos in Mplayer"
+HOMEPAGE="http://trizen.googlecode.com"
+SRC_URI="http://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk"
+
+RDEPEND="
+ dev-perl/Data-Dump
+ dev-perl/libwww-perl
+ dev-perl/XML-Fast
+ || ( media-video/mplayer[X,network]
+ media-video/mplayer2[X,network] )
+ virtual/perl-File-Spec
+ virtual/perl-Getopt-Long
+ virtual/perl-Scalar-List-Utils
+ virtual/perl-Term-ANSIColor
+ gtk? (
+ dev-perl/gtk2-perl
+ !net-misc/gtk-youtube-viewer
+ virtual/freedesktop-icon-theme
+ x11-libs/gdk-pixbuf:2[X,jpeg]
+ )"
+DEPEND="virtual/perl-Module-Build"
+
+SRC_TEST="do"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-desktopfile.patch
+ 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() {
+ use gtk && local myconf="--gtk-youtube-viewer"
+ perl-module_src_configure
+ perl-module_src_install
+}
+
+pkg_postinst() {
+ perl-module_pkg_postinst
+ einfo
+ elog "optional dependencies:"
+ elog " dev-perl/TermReadKey (to get the terminal width size)"
+ elog " dev-perl/Term-ReadLine-Gnu (for a better STDIN support)"
+ elog " net-misc/gcap (for retrieving Youtube closed captions)"
+ einfo
+}