~ruther/guix-local

ba2281f2e74e85f53499aeb0f37235c5dda29983 — Anderson Torres 5 months ago 1a41413
gnu: l2md: Modernize definition.

* gnu/packages/mail.scm (lm2d)[arguments]: Use gexps.
<#:tests?>: Set to #f.
<#:phases>{check}: Do no delete phase.
{mkdir}: Simplify.

Change-Id: Ia449f1c851f269aa6c9e0e1da5cb896ce3e1e0e2
Signed-off-by: Andreas Enge <andreas@enge.fr>
1 files changed, 24 insertions(+), 23 deletions(-)

M gnu/packages/mail.scm
M gnu/packages/mail.scm => gnu/packages/mail.scm +24 -23
@@ 4474,40 4474,41 @@ related tools to process winmail.dat files.")
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/l2md.git")
               (commit commit)))
                (url "https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/l2md.git")
                (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1hfbngwdavdhw5ghnadmi0djg2yrr0wrkv15jdd9wcqh9h6mxy8z"))
         (snippet
          #~(begin (use-modules (guix build utils))
                   ;; Don't try to redefine loff_t.
                   (substitute* "utils.c"
                     (("typedef off_t loff_t;")
                      (string-append "#ifdef __APPLE__\n"
                                     "typedef off_t loff_t;\n"
                                     "#endif\n")))))))
          #~(begin
              (use-modules (guix build utils))
              ;; Don't try to redefine loff_t.
              (substitute* "utils.c"
                (("typedef off_t loff_t;")
                 (string-append "#ifdef __APPLE__\n"
                                "typedef off_t loff_t;\n"
                                "#endif\n")))))))
      (build-system gnu-build-system)
      (arguments
       (list
        #:tests? #f                     ; No tests
        #:make-flags
        #~(list (string-append "CC=" #$(cc-for-target))
                (string-append "PREFIX=" #$output "/bin"))
        #:phases
        #~(modify-phases %standard-phases
            (delete 'configure)
            (add-before 'install 'mkdir
              (lambda _
                (mkdir-p (string-append #$output "/bin")))))))
      (inputs
       (list libgit2))
      (arguments
       `(#:phases
         (modify-phases %standard-phases
           (delete 'configure)          ;no configure scripts
           (delete 'check)              ;no tests
           (add-before 'install 'mkdir
             (lambda* (#:key outputs #:allow-other-keys)
               (let ((l2md (string-append (assoc-ref outputs "out") "/bin")))
                 (mkdir-p l2md)))))
         #:make-flags
         (list ,(string-append "CC=" (cc-for-target))
               (string-append "PREFIX=" %output "/bin"))))
      (home-page
       "https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/l2md.git")
      (synopsis "Import public-inbox archives via Git")
      (description
       "The @command{l2md} command line tool imports public-inbox archives via
Git and exports them in maildir format or to an MDA through a pipe.")
      (home-page
       "https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/l2md.git")
      (license license:gpl2))))

(define-public bubger