build moses
more/packages/moses.scm
| 68 | 68 | "13wvxizbvzrklswf1s8751r0vqd71xfn55biy76ifni2pg6pcwrm")))) | |
| 69 | 69 | (build-system gnu-build-system) | |
| 70 | 70 | (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 | |
| 72 | 78 | (modify-phases %standard-phases | |
| 73 | 79 | (delete 'configure) | |
| 74 | 80 | (add-before 'build 'patch-bin-sh | |
… | |||
| 76 | 82 | (substitute* "jam-files/engine/execunix.c" | |
| 77 | 83 | (("\"/bin/sh\"") (string-append "\"" (which "sh") "\""))))) | |
| 78 | 84 | (replace 'build | |
| 79 | - | (lambda* (#:key inputs #:allow-other-keys) | |
| 85 | + | (lambda* (#:key make-flags inputs #:allow-other-keys) | |
| 80 | 86 | (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)))))) | |
| 84 | 91 | (inputs | |
| 85 | 92 | `(("boost" ,boost) | |
| 86 | 93 | ("cmph" ,cmph) | |