From: Christopher Baines <mail@cbaines.net>
To: Alexandru-Sergiu Marton <brown121407@posteo.ro>
Cc: 44423@debbugs.gnu.org
Subject: [bug#44423] [PATCH 1/3] gnu: Add mailcap.
Date: Sat, 14 Nov 2020 11:42:16 +0000 [thread overview]
Message-ID: <87ft5ccgh3.fsf@cbaines.net> (raw)
In-Reply-To: <20201103191918.7944-1-brown121407@posteo.ro>
[-- Attachment #1: Type: text/plain, Size: 2431 bytes --]
Alexandru-Sergiu Marton <brown121407@posteo.ro> 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))))
>
> +(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
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")
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]
next prev parent reply other threads:[~2020-11-14 11:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-03 19:17 [bug#44423] [PATCH 0/3] Update gmnisrv Alexandru-Sergiu Marton
2020-11-03 19:19 ` [bug#44423] [PATCH 1/3] gnu: Add mailcap Alexandru-Sergiu Marton
2020-11-03 19:19 ` [bug#44423] [PATCH 2/3] services: gmnisrv: Export types Alexandru-Sergiu Marton
2020-11-03 19:19 ` [bug#44423] [PATCH 3/3] gnu: Update gmnisrv Alexandru-Sergiu Marton
2020-11-14 11:43 ` Christopher Baines
2020-11-14 11:42 ` Christopher Baines [this message]
2020-11-14 11:40 ` bug#44423: [PATCH 0/3] " Christopher Baines
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ft5ccgh3.fsf@cbaines.net \
--to=mail@cbaines.net \
--cc=44423@debbugs.gnu.org \
--cc=brown121407@posteo.ro \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).