From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 6Og2AgaR12L4XwEAbAwnHQ (envelope-from ) for ; Wed, 20 Jul 2022 07:22:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UK8hAgaR12IHSgEAauVa8A (envelope-from ) for ; Wed, 20 Jul 2022 07:22:14 +0200 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 8303A22833 for ; Wed, 20 Jul 2022 07:22:12 +0200 (CEST) Received: from localhost ([::1]:39060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE29z-000888-4P for larch@yhetil.org; Wed, 20 Jul 2022 01:22:11 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches From: jgart via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658294533; 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-type:content-type: 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=pDtCfp6whA9gitPJGp/O8gP8xDQ1FqDFboeP7v5omNg=; b=k3yoYYrNySW9AV4AgVu2zuga6BPYMq7YTe4tniYWWbVEJeNTKy2s+OqiP67IKuW+WZMAhq AtaiET7fIKwsolToDzQyJUPP69Y4ykXC2iQcyQSSgEjjNla4PqASsMrsGzxBO+jPwEX0og ppjbM6OW2x0j6bjTc2YMvVTPBf58Vw+D/hS5NwIE8X/WycB+oxC/zN2C/e4ACTPnC4iJKA FWxQOkHz3YRS7KwuG/QjXb9hQCBqp1wempV8xxW0G/VKCCovaON/ucIse3yDZ0EuhtC0n2 68Uu77/qPqekNc0lSlNW+DZhiNoIJMzwXfHLr/YIwQPiOso0nmSF7xrNhTlIyg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658294533; a=rsa-sha256; cv=none; b=lIj6OzxOdVCbxILZWda5Mk5Z5/TRMmmsLUCxl5G45LcGyK4sbrQsx98skNHsWctX3L6LbA iLEiDhfXJZ5zsjanpI0ni0bjDOOIY992vnq/E/8fq08+7YLV4iFfwUWLpFIE+t2Dyx+NV8 KlQs2cdcNJNaQ8D+Iy6JYvv3Y5zJPuEaUgF30tvjhe7hwce/6vgBqjxP8tScK6PggmCj6S 49RErAJx6nlxjBARUlNj4BxMC9p7njzYZMy4TWtJbDVCxY5LG1Hm0+OJfShtq6/EaW3eJ2 GwIi2Y+xWdNLI0FoNv7nlKJ8P5AlP6uImv9EXgO+zZc5LIEwm8Syj0nQjokHzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=C1c9Yx0w; 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: -4.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=C1c9Yx0w; 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: 8303A22833 X-Spam-Score: -4.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: UoT0o5Rg/TIe * 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") -- 2.37.1