From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eq78D-0006vE-Je for guix-patches@gnu.org; Sun, 25 Feb 2018 19:59:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eq78A-0005AC-Fd for guix-patches@gnu.org; Sun, 25 Feb 2018 19:59:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:52884) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eq78A-00059o-BD for guix-patches@gnu.org; Sun, 25 Feb 2018 19:59:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eq789-0000NN-TP for guix-patches@gnu.org; Sun, 25 Feb 2018 19:59:01 -0500 Subject: [bug#30598] [PATCH 5/5] gnu: Add youtube-viewer. Resent-Message-ID: From: Marius Bakke In-Reply-To: <877er2vu73.fsf@gmail.com> References: <87sh9qvuhz.fsf@gmail.com> <877er2vu73.fsf@gmail.com> Date: Mon, 26 Feb 2018 01:58:40 +0100 Message-ID: <87muzwwoqn.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Alex Vong , 30598@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Alex Vong writes: > From c6106691811adea6d71cf1837d9278f76e14af00 Mon Sep 17 00:00:00 2001 > From: Alex Vong > Date: Sun, 25 Feb 2018 06:52:10 +0800 > Subject: [PATCH 5/5] gnu: Add youtube-viewer. > > * gnu/packages/video.scm (youtube-viewer): New public variable. > --- > gnu/packages/video.scm | 40 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm > index bf7a3960d..c87f2fbfb 100644 > --- a/gnu/packages/video.scm > +++ b/gnu/packages/video.scm > @@ -53,6 +53,7 @@ > #:use-module (guix build-system gnu) > #:use-module (guix build-system glib-or-gtk) > #:use-module (guix build-system meson) > + #:use-module (guix build-system perl) > #:use-module (guix build-system python) > #:use-module (guix build-system waf) > #:use-module (gnu packages) > @@ -1311,6 +1312,45 @@ audio, images) from the Web. It can use either mp= v or vlc for playback.") > (home-page "https://you-get.org/") > (license license:expat))) >=20=20 > +(define-public youtube-viewer > + (package > + (name "youtube-viewer") > + (version "3.3.3") > + (source (origin > + (method url-fetch) > + (uri (string-append > + "https://github.com/trizen/youtube-viewer/archive/" > + version ".tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1j572his6qmazlmyrbnfq62s9bqml875ay7wy26byy9hfc7m0vgk"))= )) > + (build-system perl-build-system) > + (native-inputs > + `(("perl-module-build" ,perl-module-build))) > + ;;; FIXME: Add optional dependencies once available. Which dependencies are those? :-) Also, only two semicolons for normal comments. > + (propagated-inputs > + `(("perl-data-dump" ,perl-data-dump) > + ("perl-file-sharedir" ,perl-file-sharedir) > + ("perl-gtk2" ,perl-gtk2) > + ("perl-json" ,perl-json) > + ("perl-libwww" ,perl-libwww) > + ("perl-lwp-protocol-https" ,perl-lwp-protocol-https) > + ("perl-mozilla-ca" ,perl-mozilla-ca) > + ("perl-unicode-linebreak" ,perl-unicode-linebreak))) I haven't built this yet, but assuming it's a single executable, could you try to wrap it with the PERL5LIB variable? That way we don't have to propagate all of these in end user profiles. > + (arguments > + `(#:module-build-flags '("--gtk"))) > + (synopsis > + "Lightweight application for searching and streaming videos from Yo= uTube") > + (description > + "Youtube-viewer searches and plays YouTube videos in a native playe= r. > +It comes with various search options; it can search for videos, playlists > +and/or channels. The videos are streamed directly in a selected video p= layer > +at the best resolution (customizable) and with closed-captions (if avail= able). > +Both command-line and GTK2 interface are available.") > + (home-page "https://github.com/trizen/youtube-viewer") > + (license license:perl-license))) > + > (define-public libbluray > (package > (name "libbluray") > --=20 > 2.16.2 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqTW8AACgkQoqBt8qM6 VPq4OQgAxr34pARz6nUyxJ0e1aUGLDBMPkhykxLQeZdStoXY/r6tmM7Fb7rAg7ux lWrL2p0AxZ8WLFBCgEnxRzbYrtS2SbK4/EEOyUHcZm2nUWNDzteAWExkRTx/mnJp lYS50zk/EN/VP/nZ3miOMpZerNlzq6XFCjh0eOg2Bhf40rxrZb3AKGWZK3/sCD8l N+sTh7Ce0MK2Z0coHTY9e07WA2Yu6RVAH6/60mYCueMfQ7qtklzS/Grry408/RO+ RZJ1youOxnmD7yP/5Pf+S+KfLijD1AYJJihyJv5uDL/c3WJ4tMXL/NSP+jVD3SFg l9R1DLXDzlDUQ2sdQWF3RFbrlFcHyQ== =m9W4 -----END PGP SIGNATURE----- --=-=-=--