build moses

Julien LepillerTue Mar 06 13:49:20+0100 2018

19c7f5a

build moses

more/packages/moses.scm

6868
                "13wvxizbvzrklswf1s8751r0vqd71xfn55biy76ifni2pg6pcwrm"))))
6969
    (build-system gnu-build-system)
7070
    (arguments
71-
     `(#:phases
71+
     `(#:tests? #f
72+
       #:make-flags
73+
       `(,(string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
74+
         ,(string-append "--with-cmph=" (assoc-ref %build-inputs "cmph"))
75+
         "--with-mm" "--with-probing-pt" "--no-xmlrpc-c" "-q" "link=shared"
76+
         ,(string-append "--prefix=" (assoc-ref %outputs "out")))
77+
       #:phases
7278
       (modify-phases %standard-phases
7379
         (delete 'configure)
7480
         (add-before 'build 'patch-bin-sh

7682
             (substitute* "jam-files/engine/execunix.c"
7783
               (("\"/bin/sh\"") (string-append "\"" (which "sh") "\"")))))
7884
         (replace 'build
79-
           (lambda* (#:key inputs #:allow-other-keys)
85+
           (lambda* (#:key make-flags inputs #:allow-other-keys)
8086
             (setenv "JAMSHELL" (string-append (which "sh") " -c"))
81-
             (invoke "./bjam" (string-append "--with-boost=" (assoc-ref inputs "boost"))
82-
                     (string-append "--with-cmph=" (assoc-ref inputs "cmph"))
83-
                     "--with-mm" "--with-probing-pt" "--no-xmlrpc-c" "-q"))))))
87+
             (apply invoke "./bjam" make-flags)))
88+
         (replace 'install
89+
           (lambda* (#:key make-flags inputs #:allow-other-keys)
90+
             (apply invoke "./bjam" "install" make-flags))))))
8491
    (inputs
8592
     `(("boost" ,boost)
8693
       ("cmph" ,cmph)