diff options
| author | Carlos Durán Domínguez <wurt@wurt.eu> | 2026-01-16 03:14:43 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:24:29 +0100 |
| commit | a98c0d94e80c046e10fdc7b10c7f619e2239d082 (patch) | |
| tree | 20da65d9646b0516234448c9bb45bd7660cfebef /gnu | |
| parent | e16c8fcb5f289851af6e89548b77b51a46a77337 (diff) | |
gnu: mailcap: Modernize package style.
* gnu/packages/mail.scm (mailcap): Fix indentation.
[arguments] {phases} Modernize to use G-Exp instead of quasiquotes.
Change-Id: Id4f38cec593912d81481b24d863eb1b72abae9e9
Signed-off-by: Gabriel Wicki <gabriel@erlikon.ch>
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/mail.scm | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index bc0a8ce3d75..592065eb971 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -1150,30 +1150,28 @@ MIME-encoded email package.") (origin (method git-fetch) (uri (git-reference - (url "https://pagure.io/mailcap.git") - (commit tag))) + (url "https://pagure.io/mailcap.git") + (commit tag))) (file-name (git-file-name name version)) (sha256 (base32 "163kf88spdvywhym08487ia7y88dq7mn93hz8q4qa1wjha4rhb5n")))) (build-system gnu-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - (delete 'configure) - (add-before 'install 'patch-xdg-open-references - (lambda _ - (substitute* "mailcap" - ;; If /usr/bin/xdg-open does not exists. - (("/usr/bin/xdg-open") "/usr/bin/env xdg-open")))) - (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 - (list python)) ; for tests + (list + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'install 'patch-xdg-open-references + (lambda _ + (substitute* "mailcap" + ;; If /usr/bin/xdg-open does not exists. + (("/usr/bin/xdg-open") "/usr/bin/env xdg-open")))) + (add-before 'install 'set-dest-dir + (lambda _ + (setenv "DESTDIR" #$output) + (substitute* "Makefile" + (("/usr") ""))))))) ; This allows the man page to install. + (native-inputs (list python)) ; for tests (synopsis "MIME type associations for file types") (description "This package provides MIME type associations for file types.") |
