From patchwork Wed Jul 20 05:18:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 3803 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 64DBC27BBEA; Wed, 20 Jul 2022 06:22:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DA1F627BBE9 for ; Wed, 20 Jul 2022 06:22:16 +0100 (BST) Received: from localhost ([::1]:39060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE2A4-000888-2F for patchwork@mira.cbaines.net; Wed, 20 Jul 2022 01:22:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE29q-00086h-BA for guix-patches@gnu.org; Wed, 20 Jul 2022 01:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oE29q-0007zp-20 for guix-patches@gnu.org; Wed, 20 Jul 2022 01:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oE29p-00007I-T2 for guix-patches@gnu.org; Wed, 20 Jul 2022 01:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50833] [PATCH v2] gnu: Add bower. References: <20210926190836.GB8410@gac.attlocal.net> In-Reply-To: <20210926190836.GB8410@gac.attlocal.net> Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Jul 2022 05:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50833 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo To: 50833@debbugs.gnu.org Cc: jgart , Maxim Cournoyer Received: via spool by 50833-submit@debbugs.gnu.org id=B50833.1658294484391 (code B ref 50833); Wed, 20 Jul 2022 05:22:01 +0000 Received: (at 50833) by debbugs.gnu.org; 20 Jul 2022 05:21:24 +0000 Received: from localhost ([127.0.0.1]:55608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE29D-00006E-K5 for submit@debbugs.gnu.org; Wed, 20 Jul 2022 01:21:24 -0400 Received: from mx1.dismail.de ([78.46.223.134]:47845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE29B-00005x-7B for 50833@debbugs.gnu.org; Wed, 20 Jul 2022 01:21:22 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id a86cd20e; Wed, 20 Jul 2022 07:21:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=qPZLMqteaXewTYQGv2dDw h7dYQlOZKm/xwnAACR+YNU=; b=C1c9Yx0wGUhIHX3JLpQkucbNhGIPnn/yGGg+1 AwjbdK5Hc2hKOSvE/B7OZ47Y77jKX7LomIkogLTdKwCMQsc+rip+AqxYU6buAdpC vaB5mZ9MHfpLk9UZ8HbXV+cxQK4m14DLFvAl0G8QLTPyXaD3wmhjjyIxqvrxeyUw P9yuXjCbkFx8d6hSfvpe1swFBA+Rp/uz6NojiPyiZMWgv5Neo/UGF+B2P2+ySOAy JLH7nJdBwCnD29PFl5ZgQCwhPIOhGgA3O6moICVjJwQdvMRmf0c4aTdS0f/Ay0ps IGKh9aJoPXJ6q+PdPpFmjOOu/Q69sBCHYLGZvt+17lx89HUsw== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 0cabcefc; Wed, 20 Jul 2022 07:21:14 +0200 (CEST) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id e6df6705; Wed, 20 Jul 2022 07:21:14 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 0a5ce922 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 20 Jul 2022 07:21:13 +0200 (CEST) Date: Wed, 20 Jul 2022 00:18:34 -0500 Message-Id: <20220720051833.23801-1-jgart@dismail.de> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 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: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart X-getmail-retrieved-from-mailbox: Patches * gnu/packages/mail.scm (bower): New variable. Hi Maxim, Here's v2 patching the executables you requested. Sorry for the delay. all best, jgart --- gnu/packages/mail.scm | 80 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 556c5b4305..afad1cc4bf 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -48,6 +48,7 @@ ;;; Copyright © 2022 Justin Veilleux ;;; Copyright © 2022 Thiago Jung Bauermann ;;; Copyright © 2022 Guillaume Le Vaillant +;;; Copyright © 2022 jgart ;;; ;;; This file is part of GNU Guix. ;;; @@ -124,6 +125,7 @@ (define-module (gnu packages mail) #:use-module (gnu packages lua) #:use-module (gnu packages m4) #:use-module (gnu packages man) + #:use-module (gnu packages mercury) #:use-module (gnu packages ncurses) #:use-module (gnu packages nettle) #:use-module (gnu packages networking) @@ -1522,6 +1524,84 @@ (define-public python-notmuch2 (synopsis "Pythonic bindings for the notmuch mail database using CFFI") (license license:gpl3+))) +(define-public bower + (package + (name "bower") + (version "0.13") + (home-page "https://github.com/wangp/bower") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url home-page) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0r5s16pc3ym5nd33lv9ljv1p1gpb7yysrdni4g7w7yvjrnwk35l6")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list + "bower" + "man" + (string-append "CC=" ,(cc-for-target)) + (string-append "prefix=" %output)) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'patch-executables + (lambda* (#:key inputs #:allow-other-keys) + (let ((file (assoc-ref inputs "file")) + (base64 (assoc-ref inputs "coreutils")) + (lynx (assoc-ref inputs "lynx")) + (sendmail (assoc-ref inputs "sendmail")) + (notmuch (assoc-ref inputs "notmuch"))) + (substitute* "src/detect_mime_type.m" + (("\"file") + (string-append "\"" file "/bin/file"))) + (substitute* "src/compose.m" + (("\"base64") + (string-append "\"" base64 "/bin/base64")) + (("\"lynx") + (string-append "\"" lynx "/bin/lynx"))) + (substitute* "src/prog_config.m" + (("\"notmuch\"") + (string-append "\"" notmuch "/bin/notmuch\"")) + (("/usr/bin/sendmail") + (string-append sendmail "/sbin/sendmail")) + (("\"lynx") + (string-append "\"" lynx "/bin/lynx")))))) + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (chdir "tests") + (invoke "make")))) + (replace 'install + (lambda* (#:key outpus #:allow-other-keys) + (let ((bin (string-append (assoc-ref %outputs "out") "/bin")) + (man (string-append (assoc-ref %outputs "out") "/share/man/man1"))) + (chdir "..") + (install-file "bower" bin) + (install-file "bower.1" man))))))) + (native-inputs + (list diffutils + gawk + mercury + pandoc + util-linux)) + (inputs + (list gpgme + coreutils + lynx + notmuch + sendmail + ncurses)) + (synopsis "Terminal client for the notmuch email system") + (description "@code{bower} is a curses frontend for the notmuch email +system. It is written in @{mercury}.") + (license license:gpl3+))) + (define-public muchsync (package (name "muchsync")