From patchwork Wed Jun 30 03:17:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 30817 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6380427BC81; Wed, 30 Jun 2021 04:20:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DC91E27BC78 for ; Wed, 30 Jun 2021 04:20:18 +0100 (BST) Received: from localhost ([::1]:52012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyQlu-0004ka-0X for patchwork@mira.cbaines.net; Tue, 29 Jun 2021 23:20:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyQkm-0002iO-1p for guix-patches@gnu.org; Tue, 29 Jun 2021 23:19:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyQkl-0003Uh-PI for guix-patches@gnu.org; Tue, 29 Jun 2021 23:19:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lyQkl-00072F-KQ for guix-patches@gnu.org; Tue, 29 Jun 2021 23:19:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49210] [PATCH v3 16/16] gnu: straw-viewer: Deprecate package. Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 30 Jun 2021 03:19:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49210 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 49210@debbugs.gnu.org Cc: Raghav Gururajan Received: via spool by 49210-submit@debbugs.gnu.org id=B49210.162502310526890 (code B ref 49210); Wed, 30 Jun 2021 03:19:07 +0000 Received: (at 49210) by debbugs.gnu.org; 30 Jun 2021 03:18:25 +0000 Received: from localhost ([127.0.0.1]:56106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyQk0-0006zT-Pw for submit@debbugs.gnu.org; Tue, 29 Jun 2021 23:18:25 -0400 Received: from out0.migadu.com ([94.23.1.103]:31803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyQjr-0006yA-32 for 49210@debbugs.gnu.org; Tue, 29 Jun 2021 23:18:11 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1625023090; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/Y0jjLcld0Ef1QBWGrFUFlG0O9+NZYPRm0cucIe8HAw=; b=eiTUyJBUVuhZ/dPGuX4+S+VbsEI1D0EqI5YvHmIqMMPMJE5VY5td3vRakvZzwv5H2G36lk x75+jBi6qXnAPbUOSBRHLoDa5mslrHzqIf//R4Cwq6poIZMsatXOwupB9QTFURWaYVIDzO tBrx2yPCoyT2m16Qy4+FQ63T2hDfWcPlvWtPZeCmBiwg0UXXU3UMcWnMWam+dQW+JjijR/ EztI4SLZwKBFFxkiTqbMc56vnsULBCpEMeuJ8YpZUkUkKOvPpobB2Hb8/rm+rWy+/ze9Y6 7cyZF2JrMtBnftIBUUEWmUPvvznr0m/Eifg414ddCtWvEq5DX3/Ji70c01iZFg== Date: Tue, 29 Jun 2021 23:17:53 -0400 Message-Id: <20210630031753.14653-16-rg@raghavgururajan.name> In-Reply-To: <20210630031753.14653-1-rg@raghavgururajan.name> References: <20210630031753.14653-1-rg@raghavgururajan.name> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches X-Patchwork-Original-From: Raghav Gururajan via Guix-patches via From: Raghav Gururajan X-getmail-retrieved-from-mailbox: Patches Upstream has replaced straw-viewer with pipe-viewer. Reference https://github.com/trizen/straw-viewer/commit/dc2dfe82 * gnu/packages/video.scm (straw-viewer): Deprecate in favour of pipe-viewer. --- gnu/packages/video.scm | 83 +----------------------------------------- 1 file changed, 1 insertion(+), 82 deletions(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 599d984b1b..04114c5739 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1129,88 +1129,7 @@ on the Invidious instances only as a fallback method.") (license license:artistic2.0))) (define-public straw-viewer - (package - (name "straw-viewer") - (version "0.1.3") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/trizen/straw-viewer") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1n21byn7hqykpm94jmmnir1fwsskq6dp9wgj0bd2qf0qx5nq33cl")))) - (build-system perl-build-system) - (native-inputs - `(("perl-module-build" ,perl-module-build) - ("perl-test-pod" ,perl-test-pod))) - (inputs - `(("perl-data-dump" ,perl-data-dump) - ("perl-json" ,perl-json) - ("perl-libwww" ,perl-libwww) - ("perl-lwp-protocol-https" ,perl-lwp-protocol-https) - ("perl-lwp-useragent-cached" ,perl-lwp-useragent-cached) - ("perl-mozilla-ca" ,perl-mozilla-ca) - ("perl-term-readline-gnu" ,perl-term-readline-gnu) - ("perl-unicode-linebreak" ,perl-unicode-linebreak) - ("xdg-utils" ,xdg-utils))) - ;; Required only when building the graphical interface (--gtk). - ;;("perl-file-sharedir" ,perl-file-sharedir) - - ;; Some videos play without youtube-dl, but others silently fail to. - (propagated-inputs - `(("youtube-dl" ,youtube-dl))) - (arguments - `(#:modules ((guix build perl-build-system) - (guix build utils) - (srfi srfi-26)) - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'refer-to-inputs - (lambda* (#:key inputs #:allow-other-keys) - (substitute* "lib/WWW/StrawViewer.pm" - (("'youtube-dl'") - (format #f "'~a/bin/youtube-dl'" - (assoc-ref inputs "youtube-dl")))) - (substitute* "bin/gtk-straw-viewer" - (("'xdg-open'") - (format #f "'~a/bin/xdg-open'" - (assoc-ref inputs "xdg-utils")))) - #t)) - ;; (add-after 'install 'install-desktop - ;; (lambda* (#:key outputs #:allow-other-keys) - ;; (let* ((out (assoc-ref outputs "out")) - ;; (sharedir (string-append out "/share"))) - ;; (install-file "share/gtk-straw-viewer.desktop" - ;; (string-append sharedir "/applications")) - ;; (install-file "share/icons/gtk-straw-viewer.png" - ;; (string-append sharedir "/pixmaps")) - ;; #t))) - (add-after 'install 'wrap-program - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (bin-dir (string-append out "/bin/")) - (site-dir (string-append out "/lib/perl5/site_perl/")) - (lib-path (getenv "PERL5LIB"))) - (for-each (cut wrap-program <> - `("PERL5LIB" ":" prefix (,lib-path ,site-dir))) - (find-files bin-dir)) - #t)))))) - (synopsis - "Light-weight application for searching and streaming videos from YouTube") - (description - "Straw-viewer searches for YouTube videos using @uref{https://invidio.us/, -invidio.us} and plays them locally in a native media player like @command{vlc} -or @command{mpv}. - -You can search for videos, playlists, and/or channels. The videos are streamed -directly to the player at the best chosen resolution and with closed captions if -available.") - ;; XXX Add #:module-build-flags '("--gtk") dependencies and this sentence. - ;; Both a command-line and a graphical interface are available. - (home-page "https://github.com/trizen/youtube-viewer") - (license license:perl-license))) + (deprecated-package "straw-viewer" pipe-viewer)) (define-public x265 (package