diff options
author | Alexandru-Sergiu Marton <brown121407@posteo.ro> | 2020-11-03 21:19:16 +0200 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-11-14 11:32:37 +0000 |
commit | 85ad155158d63f8046bc925049a4fd57008f9303 (patch) | |
tree | c1bfffb0f71f30e2b746226f318e8a7a80254c9a /gnu/packages | |
parent | 403ba4140f52b9ea9483e4c775f102bbb9753e51 (diff) |
gnu: Add mailcap.
* gnu/packages/mail.scm (mailcap): New variable.
Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/mail.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index b6c51c337b..c3aa91f126 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -748,6 +748,44 @@ 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))) ; 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") |