From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uDPZNdjCr18fXgAA0tVLHw (envelope-from ) for ; Sat, 14 Nov 2020 11:43:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qA+yMdjCr19LDwAA1q6Kng (envelope-from ) for ; Sat, 14 Nov 2020 11:43:20 +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 44C599403AB for ; Sat, 14 Nov 2020 11:43:20 +0000 (UTC) Received: from localhost ([::1]:57512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdtxf-0005YV-93 for larch@yhetil.org; Sat, 14 Nov 2020 06:43:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdtxR-0005Vg-7J for guix-patches@gnu.org; Sat, 14 Nov 2020 06:43:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdtxN-00081l-Kh for guix-patches@gnu.org; Sat, 14 Nov 2020 06:43:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdtxN-0008Hx-Jn for guix-patches@gnu.org; Sat, 14 Nov 2020 06:43:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44423] [PATCH 1/3] gnu: Add mailcap. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 14 Nov 2020 11:43:01 +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: Alexandru-Sergiu Marton Cc: 44423@debbugs.gnu.org Received: via spool by 44423-submit@debbugs.gnu.org id=B44423.160535414031812 (code B ref 44423); Sat, 14 Nov 2020 11:43:01 +0000 Received: (at 44423) by debbugs.gnu.org; 14 Nov 2020 11:42:20 +0000 Received: from localhost ([127.0.0.1]:49900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdtwi-0008H2-K7 for submit@debbugs.gnu.org; Sat, 14 Nov 2020 06:42:20 -0500 Received: from mira.cbaines.net ([212.71.252.8]:53766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdtwh-0008Gr-4t for 44423@debbugs.gnu.org; Sat, 14 Nov 2020 06:42:19 -0500 Received: from localhost (188.28.119.104.threembb.co.uk [188.28.119.104]) by mira.cbaines.net (Postfix) with ESMTPSA id 98D7927BBF4; Sat, 14 Nov 2020 11:42:18 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 4b6770e2; Sat, 14 Nov 2020 11:42:16 +0000 (UTC) References: <20201103191737.7836-1-brown121407@posteo.ro> <20201103191918.7944-1-brown121407@posteo.ro> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines In-reply-to: <20201103191918.7944-1-brown121407@posteo.ro> Date: Sat, 14 Nov 2020 11:42:16 +0000 Message-ID: <87ft5ccgh3.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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=none; dmarc=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.61 X-TUID: KFp/wuKYvtmr --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Alexandru-Sergiu Marton writes: > * 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)))) >=20=20 > +(define-public mailcap > + (let* ((version "2.1.49") > + (tag ;; mailcap tags their releases like this: rMajor-minor-pat= ch > + (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 This looks fine to me, although looking again at the description now, it's a bit lacking in context. I tweaked the indentation in places, and switched the end of line comments to just use a single ; > + > (define-public bogofilter > (package > (name "bogofilter") --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl+vwphfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xd+ARAAj5Wk+FfCGWijhXRPDrCj9hCeXv0jeAl6 I2nN1IKSmmVvS2eCsLvLJqoHD9KvCH2/CzXfNxUbWWGmMQaJxnfRB9SSdiaNMOVL pxkJIJFIclE24cGA+JyfOagZZlP5AOzldobGGaGRHTFfFDbKTUUzAfxqwqVj5Udf 9ChX5vfmI8ageSpPsXgzr22JcPE3WmXSDSsyuB3f5cXyy2YJqU/OpXc/+BYfWeel 89Vi6l5RYFK3qYg3YQGLcKJNcp9qT2X9v7843/Fz2TmxqkLgriJcYrI0PQ5Zo0M4 orbz8sLeS64Pb6swpstoPS6/aDsp6iSaMBP2bw/33sk1dPkwcNeAGtcgsX34kiBm 7AJLxged6xNqWkdgAki/3rDKs+M03GmChCwJf/ZE13H9ieaWXAI4eO8+vdyL+y0m Y8GOuyh2pzWjVpvZcDY+KuqQmA+Sz6f8ZXEaWQh2PwRliDD2lW3fzZd5rskLI9Tq EQDvTtyX++NgZ0jky4ZG+89nlnOZ4qSOhDoyPAN90wVUJXiTMaKErN9fVD0UKusO +omA0uEa+SIB5DRxqDD9LT0GIcgFDbEb6gCfj0NAReqz12y4GgJ+jxUeWQw61hkZ z1wdvcmJTyRzjnVWKatXgIjR5Cu6KPXRGzDFOhbz0nDyYLWpqLmgHVX6cs0Bagvs W2ZQC4rNecw= =Sq5t -----END PGP SIGNATURE----- --=-=-=--