From patchwork Sun Jan 6 21:43:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: swedebugia X-Patchwork-Id: 689 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 6350516A22; Sun, 6 Jan 2019 21:44:08 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id A71D616A1C for ; Sun, 6 Jan 2019 21:44:07 +0000 (GMT) Received: from localhost ([127.0.0.1]:58947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggGDH-00071m-9p for patchwork@mira.cbaines.net; Sun, 06 Jan 2019 16:44:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggGDE-00071V-Bq for guix-patches@gnu.org; Sun, 06 Jan 2019 16:44:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggGDC-0002s9-O2 for guix-patches@gnu.org; Sun, 06 Jan 2019 16:44:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48107) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ggGDC-0002s4-Kj for guix-patches@gnu.org; Sun, 06 Jan 2019 16:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ggGDC-0000f0-Ev for guix-patches@gnu.org; Sun, 06 Jan 2019 16:44:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34000] [PATCH] gnu: Separate youtube-viewer-cli from youtube-viewer Resent-From: swedebugia@riseup.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Jan 2019 21:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34000 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34000@debbugs.gnu.org Received: via spool by 34000-submit@debbugs.gnu.org id=B34000.15468109942477 (code B ref 34000); Sun, 06 Jan 2019 21:44:02 +0000 Received: (at 34000) by debbugs.gnu.org; 6 Jan 2019 21:43:14 +0000 Received: from localhost ([127.0.0.1]:47388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggGCQ-0000ds-1M for submit@debbugs.gnu.org; Sun, 06 Jan 2019 16:43:14 -0500 Received: from mx1.riseup.net ([198.252.153.129]:54742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggGCN-0000dk-TO for 34000@debbugs.gnu.org; Sun, 06 Jan 2019 16:43:12 -0500 Received: from cotinga.riseup.net (cotinga-pn.riseup.net [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 4684B1A0903; Sun, 6 Jan 2019 13:43:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1546810991; bh=KfQwaWO02WfOd7ri+yrNU2rjRhd2gl9sw5hoqPb9Nu4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tKXKV305zyUves0y+J1E1Mm3mt+LEoc04prYisZdmbkhGsJOccEfCkqeqsCIskR5c IicbC3hqNcOrm6FmJOgCmGoik7TM3It1McTfoKIfxoiGWvGNBgCZ357we5H3X/kTul G3Y8M8IZ2qhbXlsHv00a5poarEdQFwARcAXOeb1w= X-Riseup-User-ID: A6BFEC96535D04E5FCADC452DA3AF9AED908550B7242115B81B14FB60565DAEA Received: from [127.0.0.1] (localhost [127.0.0.1]) by cotinga.riseup.net with ESMTPSA id 0C5154213E; Sun, 6 Jan 2019 13:43:10 -0800 (PST) MIME-Version: 1.0 Date: Sun, 06 Jan 2019 13:43:10 -0800 From: swedebugia@riseup.net In-Reply-To: <7aba2ddd3f21b0034c2d4c59d46383b8@riseup.net> References: <7aba2ddd3f21b0034c2d4c59d46383b8@riseup.net> Message-ID: <35d89c27bb458aff9b13339b765f2d3f@riseup.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix-patches Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches On 2019-01-06 21:29, swedebugia@riseup.net wrote: > This is updated to fix a parens error. From f9003e6c285e7b1c64ead7c6d876ba95d00dd1c2 Mon Sep 17 00:00:00 2001 From: swedebugia Date: Sun, 6 Jan 2019 22:23:29 +0100 Subject: [PATCH 2/2] gnu: youtube-viewer: Rename to youtube-viewer-gtk * gnu/packages/video.scm (youtube-viewer): [name] Rename it. [arguments] Add phase to rename the binary. --- gnu/packages/video.scm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index c6bd9063c..128152371 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1466,9 +1466,9 @@ audio, images) from the Web. It can use either mpv or vlc for playback.") (home-page "https://you-get.org/") (license license:expat))) -(define-public youtube-viewer +(define-public youtube-viewer-gtk (package - (name "youtube-viewer") + (name "youtube-viewer-gtk") (version "3.5.0") (source (origin (method git-fetch) @@ -1509,6 +1509,14 @@ audio, images) from the Web. It can use either mpv or vlc for playback.") (for-each (cut wrap-program <> `("PERL5LIB" ":" prefix (,lib-path ,site-dir))) (find-files bin-dir)) + #t))) + (add-after 'wrap-program 'rename + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin-dir (string-append out "/bin/"))) + (chdir bin-dir) + (rename-file "gtk-youtube-viewer" + "youtube-viewer-gtk") #t)))))) (synopsis "Lightweight application for searching and streaming videos from YouTube") -- 2.19.2