From patchwork Tue Nov 3 19:19:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru-Sergiu Marton X-Patchwork-Id: 24972 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 AE7E627BBF3; Tue, 3 Nov 2020 17:20:42 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1220327BBF4 for ; Tue, 3 Nov 2020 17:20:42 +0000 (GMT) Received: from localhost ([::1]:45048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZzz7-000654-0N for patchwork@mira.cbaines.net; Tue, 03 Nov 2020 12:20:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZzyU-000645-Vl for guix-patches@gnu.org; Tue, 03 Nov 2020 12:20:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34747) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZzyU-0005bB-M2 for guix-patches@gnu.org; Tue, 03 Nov 2020 12:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kZzyU-0006S4-Hs for guix-patches@gnu.org; Tue, 03 Nov 2020 12:20:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44423] [PATCH 1/3] gnu: Add mailcap. Resent-From: Alexandru-Sergiu Marton Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 03 Nov 2020 17:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44423 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44423@debbugs.gnu.org Cc: Alexandru-Sergiu Marton Received: via spool by 44423-submit@debbugs.gnu.org id=B44423.160442396824720 (code B ref 44423); Tue, 03 Nov 2020 17:20:02 +0000 Received: (at 44423) by debbugs.gnu.org; 3 Nov 2020 17:19:28 +0000 Received: from localhost ([127.0.0.1]:46289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZzxv-0006QY-Sf for submit@debbugs.gnu.org; Tue, 03 Nov 2020 12:19:28 -0500 Received: from mout02.posteo.de ([185.67.36.66]:59387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZzxt-0006QD-MY for 44423@debbugs.gnu.org; Tue, 03 Nov 2020 12:19:26 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 53540240100 for <44423@debbugs.gnu.org>; Tue, 3 Nov 2020 18:19:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1604423959; bh=FoLfRbjuYiMXEMEUQfwGLY7HH7kDLQWEohcs/QpNwsY=; h=From:To:Cc:Subject:Date:From; b=dSAWXpEWlzwMIXb1aBkrIb8Ble5Jv9eCq0+Xc6x+Bdkb8+MEpV+bF4xh9kSZHglWc bb+vdIljnnI/pstpHia4vldcKpHY3x6ITu2FyyWGxH9P5j0LKlXmoNcTgglMxBmuyP v40lmRtW/naQaRbmBhAnLIODk6bghKK9Rsjk6FjfM57IOQ7YR+HW/0I1poZagzZg8I zRZ/Z4nz5VdpGeNHK7yzPZWG/7Vcbk9KmE16ikZdA1grWj1aa0Shs88AGsaYDHiboQ lc1Q1E9MhhP9DdEFJMcoHsWUm9i6tsVxjgfx+9b3Tss5j+lSvp9Ws6Ou4l9W7gao+G wAdi7Ig5beMuA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CQc2t5DDFz9rxk; Tue, 3 Nov 2020 18:19:18 +0100 (CET) From: Alexandru-Sergiu Marton Date: Tue, 3 Nov 2020 21:19:16 +0200 Message-Id: <20201103191918.7944-1-brown121407@posteo.ro> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201103191737.7836-1-brown121407@posteo.ro> References: <20201103191737.7836-1-brown121407@posteo.ro> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/mail.scm (mailcap): New variable. --- gnu/packages/mail.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 44a156fd99..2f4173dc92 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -747,6 +747,43 @@ MIME-encoded email package.") (home-page "https://github.com/inflex/ripMIME") (license license:bsd-3)))) +(define-public mailcap + (let* ((version "2.1.49") + (tag ;; mailcap tags their releases like this: rMajor-minor-patch + (string-append "r" (string-join (string-split version #\.) "-")))) + (package + (name "mailcap") + (version version) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://pagure.io/mailcap.git") + (commit tag))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ck1fw6gqn51phcfakhfpfq1yziv3gnmgjvswzhj9x0p162n6alj")))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (delete 'configure) + (add-before 'install 'set-dest-dir + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (setenv "DESTDIR" out) + (substitute* "Makefile" + (("/usr") "")) ;; This allows the man page to install. + #t)))))) + (native-inputs `(("python" ,python-3.8))) ;; for tests + (synopsis "MIME type associations for file types") + (description "This package provides MIME type associations for file +types.") + (home-page "https://pagure.io/mailcap") + (license (list license:expat ;; mailcap.5 + license:public-domain))))) ;; mailcap and mime.types + (define-public bogofilter (package (name "bogofilter")