From patchwork Sun Jul 4 01:03:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 31121 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 5C3DB27BC81; Sun, 4 Jul 2021 02:04:49 +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 CDFBD27BC78 for ; Sun, 4 Jul 2021 02:04:48 +0100 (BST) Received: from localhost ([::1]:52806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzqYx-0005ju-Tr for patchwork@mira.cbaines.net; Sat, 03 Jul 2021 21:04:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzqYK-00045T-Kd for guix-patches@gnu.org; Sat, 03 Jul 2021 21:04:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzqYK-0004yW-9T for guix-patches@gnu.org; Sat, 03 Jul 2021 21:04:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzqYK-0006I4-6L for guix-patches@gnu.org; Sat, 03 Jul 2021 21:04:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49210] [PATCH v5 16/16] gnu: straw-viewer: Deprecate package. Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 04 Jul 2021 01:04:08 +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.162536062324043 (code B ref 49210); Sun, 04 Jul 2021 01:04:08 +0000 Received: (at 49210) by debbugs.gnu.org; 4 Jul 2021 01:03:43 +0000 Received: from localhost ([127.0.0.1]:40181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzqXu-0006Fe-Pr for submit@debbugs.gnu.org; Sat, 03 Jul 2021 21:03:43 -0400 Received: from out0.migadu.com ([94.23.1.103]:58461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzqXp-0006EP-Nv for 49210@debbugs.gnu.org; Sat, 03 Jul 2021 21:03:38 -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=1625360617; 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=2+xew/kxQkNRos0cjuK4nYgJIu8A1oDVWT1CrLJ4R4U=; b=q7LSM1O8VXuSczNM6Xb6L6OsgVvenaKOTK0HNZ3qgpAk3earlpj3SvZaPMhdGLmN9AGbwq 60S1taZQ+I4c4nunGPKavZ9m19AUS7CHDXMhOfRxy/JdyMwTTzWlRXaJmD1ixlb7PlhyOb jEu1UgqHZbeaWb0jlpLHklHTzkdA48dFEEkGePK0pQWtALeIeHdZgqu8AX90b7DetZwbya nLHJlmKjK2AMWkJ4ZgJUuOy/vghmEPSVeq6iWs0jYZjoy6u2KQ9XW3Uh4Ju0GdlnA+X8uc cukgDytVaH55K2F3UIyyjdso807z2/646or23DbuDYuZpK1mBmiJGzBssIxE0A== Date: Sat, 3 Jul 2021 21:03:20 -0400 Message-Id: <20210704010320.5458-16-rg@raghavgururajan.name> In-Reply-To: <20210704010320.5458-1-rg@raghavgururajan.name> References: <20210704010320.5458-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 f2c4335079..c02938db08 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1131,88 +1131,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