From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +KCwEDWqnl+gbwAA0tVLHw (envelope-from ) for ; Sun, 01 Nov 2020 12:29:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EMSDDDWqnl8tdgAAB5/wlQ (envelope-from ) for ; Sun, 01 Nov 2020 12:29:41 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B70699401BF for ; Sun, 1 Nov 2020 12:29:40 +0000 (UTC) Received: from localhost ([::1]:58048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZCUN-00061u-5M for larch@yhetil.org; Sun, 01 Nov 2020 07:29:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZCTn-00061I-4o for guix-patches@gnu.org; Sun, 01 Nov 2020 07:29:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZCTm-0005J9-P5 for guix-patches@gnu.org; Sun, 01 Nov 2020 07:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kZCTm-0007ET-Lm for guix-patches@gnu.org; Sun, 01 Nov 2020 07:29:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44369] [PATCH] gnu: v4l-utils: Move graphical tools to a separate output Resent-From: Ivan Kozlov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 01 Nov 2020 12:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44369 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44369@debbugs.gnu.org X-Debbugs-Original-To: guix-patches Received: via spool by submit@debbugs.gnu.org id=B.160423368627722 (code B ref -1); Sun, 01 Nov 2020 12:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Nov 2020 12:28:06 +0000 Received: from localhost ([127.0.0.1]:35858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZCSr-0007D4-Pm for submit@debbugs.gnu.org; Sun, 01 Nov 2020 07:28:06 -0500 Received: from lists.gnu.org ([209.51.188.17]:46696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZCSq-0007Cx-Ep for submit@debbugs.gnu.org; Sun, 01 Nov 2020 07:28:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZCSp-0005uY-QL for guix-patches@gnu.org; Sun, 01 Nov 2020 07:28:04 -0500 Received: from forward102j.mail.yandex.net ([2a02:6b8:0:801:2::102]:34657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZCSe-0004vR-FR for guix-patches@gnu.org; Sun, 01 Nov 2020 07:27:55 -0500 Received: from mxback6j.mail.yandex.net (mxback6j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10f]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 9595CF211BA for ; Sun, 1 Nov 2020 15:27:38 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback6j.mail.yandex.net (mxback/Yandex) with ESMTP id mN7M9TOybM-RcGKInPe; Sun, 01 Nov 2020 15:27:38 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1604233658; bh=PLP8C4MvNOl3umU4uo1Wgt5Pra7P3feqebaIdTQ67g4=; h=Message-Id:Date:Subject:To:From; b=QRT2WHejWhNPXgkWUij2zRgkdAF1mN+43rD7DjbqyskxNlm6TvQFerSku1pXaE6MG g0nR/RvBDyIqhubfl8Q3BlqLGOIkkK4f5iLdEiIzDSj5Lceft7ML1nJyRCD4P7Qo7M 9BL9I7I4amBMxpwXHtA4Flj2OsefTXZr0xLCInb4= Received: by sas1-5cb23de04cc6.qloud-c.yandex.net with HTTP; Sun, 01 Nov 2020 15:27:37 +0300 From: Ivan Kozlov MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Sun, 01 Nov 2020 15:27:37 +0300 Message-Id: <3731311604233325@mail.yandex.ru> Content-Transfer-Encoding: 7bit Content-Type: text/plain Received-SPF: pass client-ip=2a02:6b8:0:801:2::102; envelope-from=kanichos@yandex.ru; helo=forward102j.mail.yandex.net X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=yandex.ru header.s=mail header.b=QRT2WHej; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yandex.ru (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: kP7gNl6C/hrL v4l-utils is a common dependency. Separate graphical tools to avoid pulling in qtbase unless they are referenced. * gnu/packages/video.scm (v4l-utils)[outputs]: New 'gui' output. [arguments]: Add 'split' phase. --- gnu/packages/video.scm | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 34b0fbe294..9ff7d0a45a 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -2987,11 +2987,37 @@ tools, XML authoring components, and an extensible plug-in based API.") (base32 "1bkqlrizx0j2rd6ybam2x17bjrpwzl4v4szmnzm3cmixis3w3npr")))) (build-system gnu-build-system) + (outputs '("out" "gui")) (arguments '(#:configure-flags (list (string-append "--with-udevdir=" (assoc-ref %outputs "out") - "/lib/udev")))) + "/lib/udev")) + #:phases + (modify-phases %standard-phases + (add-after 'install 'split + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (gui (assoc-ref outputs "gui"))) + (mkdir-p (string-append gui "/bin")) + (mkdir-p (string-append gui "/share/man/man1")) + (mkdir-p (string-append gui "/share/applications")) + (for-each + (lambda (prog) + (for-each + (lambda (file) + (rename-file (string-append out file) + (string-append gui file))) + (list + (string-append "/bin/" prog) + (string-append "/share/man/man1/" prog ".1") + (string-append "/share/applications/" prog ".desktop")))) + '("qv4l2" "qvidcap")) + (copy-recursively (string-append out "/share/icons") + (string-append gui "/share/icons")) + (delete-file-recursively (string-append out "/share/icons")) + (rmdir (string-append out "/share/applications")) + #t)))))) (native-inputs `(("perl" ,perl) ("pkg-config" ,pkg-config))) -- 2.28.0