From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OPdhLbGUhmOnXwAAbAwnHQ (envelope-from ) for ; Wed, 30 Nov 2022 00:24:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WJNVLbGUhmON2wAA9RJhRA (envelope-from ) for ; Wed, 30 Nov 2022 00:24:33 +0100 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 4271719CA7 for ; Wed, 30 Nov 2022 00:24:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p09xO-0007GX-6z; Tue, 29 Nov 2022 18:24:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p09xK-0007FW-Hy for guix-patches@gnu.org; Tue, 29 Nov 2022 18:24:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p09xK-0006cR-6T for guix-patches@gnu.org; Tue, 29 Nov 2022 18:24:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p09xJ-0004XX-Qe for guix-patches@gnu.org; Tue, 29 Nov 2022 18:24:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#58931] [PATCH v2 2/2] gnu: clipmenu: Improve package style. Resent-From: EuAndreh Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Nov 2022 23:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58931 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: 58931@debbugs.gnu.org Cc: EuAndreh Received: via spool by 58931-submit@debbugs.gnu.org id=B58931.166976423617439 (code B ref 58931); Tue, 29 Nov 2022 23:24:01 +0000 Received: (at 58931) by debbugs.gnu.org; 29 Nov 2022 23:23:56 +0000 Received: from localhost ([127.0.0.1]:57115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p09xD-0004XC-JK for submit@debbugs.gnu.org; Tue, 29 Nov 2022 18:23:56 -0500 Received: from euandre.org ([216.238.68.100]:48066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p09xA-0004Wv-RZ for 58931@debbugs.gnu.org; Tue, 29 Nov 2022 18:23:54 -0500 Received: from euandre.org (localhost [127.0.0.1]) by euandre.org (Postfix) with ESMTP id 4181E37948D; Tue, 29 Nov 2022 20:23:51 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=euandre.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=dkimproxy; bh=jwVtwOx LsMgfIHJpJ4Cs7iyJlcs=; b=gKlESD8+U85Sdo/6Ddf0A7VVopVIcWdcB6GxCiT 5Zqh5IclgsQC/sdh46QK5sbPCV9VMVnQD6aeRtgdx9BkFfSS/UKeOyQQ0f+nxMPp ezF9ZFw3DFw7dC8hmU4Jg36yl6gXnwcwiU+b9MIS+jJgy7o8kYKwDfio1+vtEiMY TPbEP5qp+YWMLJWk/eBmYMvQMFzqE0JaX926pxJq8xMk+LJDKZWjg76qERvVOQJz r9Gl17D+Vve3EVE7apGzh3FS9p8vsXwR8ROgC+kZKbu++APCm+zlBJu+rMkqXMFN zAQ9BxvHrp0D7BGn2d3blLoyyry8yss0MGSx1bIDddswUVg== Date: Tue, 29 Nov 2022 20:23:46 -0300 Message-Id: <20221129232346.29710-3-eu@euandre.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221129232346.29710-1-eu@euandre.org> References: <877d0cm00k.fsf@cbaines.net> <20221129232346.29710-1-eu@euandre.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: , Reply-to: EuAndreh X-ACL-Warn: , EuAndreh via Guix-patches From: EuAndreh via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669764273; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Uf8xAxaNCtzKCUt0mbNl4jGEx1OY5CfxXi4X9j29B/w=; b=VnSztS3xC1fIAMjjjoDTWw/6HnfQ5zzMSMz3qZjc7brkLvc4NschJmlT0NUKlQvZItWOZH QymbzeK+MaKYo8TWElu7WS/dYjeXQDnxTzJTGCeJtRqhI1DTIlWxPadQSUYPAd0gsZ9oYZ hlmbiOyQd9i9yWEMyP6RFMU9shUOVrb6GzZtrV2Bbr2EK2hwyDrcTg91EHjXwzk5xsmK2v uUvAvNpQEWmgzEDsHh48S8YiP5DOOlIGtJfzdm6A5rg+jwuyjL2YeXk+uZVZbS9E9R2DbX lhRn0/e8CVBXt2jB17KHaNju9/p0ctGKyuOse2G7FurcF7fXGjPYsjSfTBUGwA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669764273; a=rsa-sha256; cv=none; b=t6QB01N85/iDvmCeEoFf4K81ECRLobU9RSUNsOOMesP9xuanYYxs2kbUDvt2dd6aIaQSYC F9X6fY9KmbOm7+I33h3AGOzpUFDcfGtUMDNPjSfGUOZdbdf27uEvVmtAihcIx6YNdeJBkV iGwIrjZZpMYIWmwTPugBpEJ5Vpwwm2Xv7Ll6iDqg2aKJHr5tLIy8B1F6mp/K/4wgA9oIBl L3oRmPNpE+kTJgxlSW+B1Zzhc5zDOh50GTlLicKOL/i/2truQQGK7pu9m7rCeIC5QQPF5+ Sa1OJwmVdYPmQ/Tw2P7r/HULuhDKQWtc3Ok8GOmwghAkyNOWWlS3xIeekyRsTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=euandre.org header.s=dkimproxy header.b=gKlESD8+; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=euandre.org header.s=dkimproxy header.b=gKlESD8+; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4271719CA7 X-Spam-Score: -3.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: kmTzs5/CTWTC * gnu/packages/xdisorg.scm (clipmenu)[arguments]: Use g-expressions; remove trailing #t from phases. --- No more changing the git-fetch here. gnu/packages/xdisorg.scm | 91 +++++++++++++++++++--------------------- 1 file changed, 44 insertions(+), 47 deletions(-) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index f2edb793e8..1943a75377 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -2827,53 +2827,50 @@ (define-public clipmenu "1403sw49ccb8xsd8v611fzp0csaglfz8nmz3wcjsk8x11h9jvxwy")))) (build-system gnu-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (delete 'configure) - (delete 'build) - (replace 'install - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (bin (string-append out "/bin")) - (doc (string-append %output "/share/doc/" - ,name "-" ,version))) - (install-file "clipdel" bin) - (install-file "clipmenu" bin) - (install-file "clipmenud" bin) - (install-file "clipfsck" bin) - (install-file "clipctl" bin) - (install-file "README.md" doc) - #t))) - (add-after 'install 'wrap-script - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (clipnotify (assoc-ref inputs "clipnotify")= ) - (coreutils-minimal (assoc-ref inputs "coreutils-mi= nimal")) - (gawk (assoc-ref inputs "gawk")) - (util-linux (assoc-ref inputs "util-linux")= ) - (xdotool (assoc-ref inputs "xdotool")) - (xsel (assoc-ref inputs "xsel")) - (guile (search-input-file inputs "bin/= guile"))) - (for-each - (lambda (prog) - (wrap-script (string-append out "/bin/" prog) - #:guile guile - `("PATH" ":" prefix - ,(map (lambda (dir) - (string-append dir "/bin")) - (list clipnotify coreutils-minimal - gawk util-linux xdotool xsel))))) - '("clipmenu" "clipmenud" "clipdel" "clipfsck" "clipctl= "))) - #t)) - (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - ;; substitute a shebang appearing inside a string (the te= st - ;; file writes this string to a temporary file): - (substitute* "tests/test-clipmenu" - (("#!/usr/bin/env bash") - (string-append "#!" (which "bash")))) - (invoke "tests/test-clipmenu") - #t))))) + (list + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (replace 'install + (lambda _ + (let ((bin (string-append #$output "/bin")) + (doc (string-append #$output "/share/doc/" + #$name "-" #$version))) + (install-file "clipdel" bin) + (install-file "clipmenu" bin) + (install-file "clipmenud" bin) + (install-file "clipfsck" bin) + (install-file "clipctl" bin) + (install-file "README.md" doc)))) + (add-after 'install 'wrap-script + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (clipnotify (assoc-ref inputs "clipnotify"= )) + (coreutils-minimal (assoc-ref inputs "coreutils-m= inimal")) + (gawk (assoc-ref inputs "gawk")) + (util-linux (assoc-ref inputs "util-linux"= )) + (xdotool (assoc-ref inputs "xdotool")) + (xsel (assoc-ref inputs "xsel")) + (guile (search-input-file inputs "bin= /guile"))) + (for-each + (lambda (prog) + (wrap-script (string-append out "/bin/" prog) + #:guile guile + `("PATH" ":" prefix + ,(map (lambda (dir) + (string-append dir "/bin")) + (list clipnotify coreutils-minimal + gawk util-linux xdotool xsel))))) + '("clipmenu" "clipmenud" "clipdel" "clipfsck" "clipct= l"))))) + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; substitute a shebang appearing inside a string (the t= est + ;; file writes this string to a temporary file): + (substitute* "tests/test-clipmenu" + (("#!/usr/bin/env bash") + (string-append "#!" (which "bash")))) + (invoke "tests/test-clipmenu")))))) (inputs (list clipnotify coreutils-minimal --=20 2.38.1