From d35deb28202fc07eff0f5f053ec754ad29473d2f Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 28 Feb 2016 02:15:03 +0100 Subject: [PATCH] net-misc/youtube-viewer: initial import of 3.2.1 --- .../youtube-viewer-3.2.1.exheres-0 | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 packages/net-misc/youtube-viewer/youtube-viewer-3.2.1.exheres-0 diff --git a/packages/net-misc/youtube-viewer/youtube-viewer-3.2.1.exheres-0 b/packages/net-misc/youtube-viewer/youtube-viewer-3.2.1.exheres-0 new file mode 100644 index 00000000..978baed9 --- /dev/null +++ b/packages/net-misc/youtube-viewer/youtube-viewer-3.2.1.exheres-0 @@ -0,0 +1,92 @@ +# Copyright 2016 Julian Ospald +# Distributed under the terms of the GNU General Public License v2 + + +require gtk-icon-cache +require perl-module + +SUMMARY="A command line utility for viewing youtube-videos in Mplayer" +HOMEPAGE="https://trizen.googlecode.com" +DOWNLOADS="https://github.com/trizen/youtube-viewer/tarball/${PV} -> ${PNV}.tar.gz" + +LICENCES="|| ( Artistic GPL-1 GPL-2 GPL-3 )" +SLOT="0" +PLATFORMS="~amd64 ~x86" +MYOPTIONS=" + gtk [[ description = [ Install the gtk GUI, called gtk-youtube-viewer ] ]] +" + + +# TODO: dev-perl/LWP-UserAgent-Cached (cache support) +DEPENDENCIES=" + build: + dev-perl/Module-Build + build+run: + dev-lang/perl:=[>=5.22] + dev-perl/Data-Dump + dev-perl/Getopt-Long + dev-perl/JSON + dev-perl/LWP-Protocol-https + dev-perl/Scalar-List-Utils + dev-perl/Term-ANSIColor + dev-perl/Term-ReadLine-Gnu + dev-perl/Text-ParseWords + dev-perl/Text-Tabs+Wrap + dev-perl/libwww-perl + gtk? ( + dev-perl/File-ShareDir + dev-perl/Gtk2-Perl + x11-libs/gdk-pixbuf:2.0[X] + ) + suggestion: + dev-perl/JSON-XS [[ description = [ faster JSON to HASH conversion ] ]] + dev-perl/Mozilla-CA [[ description = [ may help in case there are SSL problems ] ]] + dev-perl/Term-ReadLine-Gnu [[ description = [ for a better STDIN support ] ]] + dev-perl/Text-CharWidth [[ description = [ print the results in a fixed-width format (--fixed-width, -W) ] ]] + ( + media-video/gnome-mplayer + media/mpv + media/smplayer + media/vlc + ) [[ *description = [ video player backend ] ]] + + +" + +src_unpack() { + default + edo mv trizen-${PN}-* "${WORK}" +} + +src_configure() { + if option gtk ; then + PERL_MODULE_SRC_CONFIGURE_PARAMS=( --gtk-youtube-viewer ) + fi + perl-module_src_configure +} + +src_compile() { :; } + +src_install() { + perl-module_src_install + + if option gtk ; then + insinto /usr/share/applications + doins share/gtk-youtube-viewer.desktop + insinto /usr/share/pixmaps + doins share/icons/gtk-youtube-viewer.png + fi +} + +pkg_preinst() { + option gtk && gtk-icon-cache_pkg_preinst +} + +pkg_postinst() { + option gtk && gtk-icon-cache_pkg_postinst +} + +pkg_postrm() { + option gtk && gtk-icon-cache_pkg_postrm +} +