Add mgiza
more/packages/moses.scm
25 | 25 | #:use-module (guix download) | |
26 | 26 | #:use-module (guix git-download) | |
27 | 27 | #:use-module (guix utils) | |
28 | + | #:use-module (guix build-system cmake) | |
28 | 29 | #:use-module (guix build-system gnu)) | |
29 | 30 | ||
30 | 31 | (define-public cmph | |
… | |||
68 | 69 | "13wvxizbvzrklswf1s8751r0vqd71xfn55biy76ifni2pg6pcwrm")))) | |
69 | 70 | (build-system gnu-build-system) | |
70 | 71 | (arguments | |
71 | - | `(#:tests? #f | |
72 | + | `(#:tests? #f; Tests run during build | |
72 | 73 | #:make-flags | |
73 | 74 | `(,(string-append "--with-boost=" (assoc-ref %build-inputs "boost")) | |
74 | 75 | ,(string-append "--with-cmph=" (assoc-ref %build-inputs "cmph")) | |
… | |||
104 | 105 | each sentence in one language is matched with its corresponding translated | |
105 | 106 | sentence in the other language.") | |
106 | 107 | (license license:asl2.0))) | |
108 | + | ||
109 | + | (define-public mgiza | |
110 | + | (package | |
111 | + | (name "mgiza") | |
112 | + | (version "0") | |
113 | + | (source (origin | |
114 | + | (method git-fetch) | |
115 | + | (uri (git-reference | |
116 | + | (url "https://github.com/moses-smt/mgiza") | |
117 | + | (commit "d643960de98565d208114780ba8025799208afa7"))) | |
118 | + | (sha256 | |
119 | + | (base32 | |
120 | + | "1zvs18fxdw9frhlxlrmq3pjzm9b9chcjvppmn2yljqdxpzmqimc6")))) | |
121 | + | (build-system cmake-build-system) | |
122 | + | (arguments | |
123 | + | `(#:tests? #f; no tests | |
124 | + | #:phases | |
125 | + | (modify-phases %standard-phases | |
126 | + | (add-before 'configure 'chdir | |
127 | + | (lambda _ | |
128 | + | (chdir "mgizapp") | |
129 | + | #t))))) | |
130 | + | (inputs | |
131 | + | `(("boost" ,boost))) | |
132 | + | (home-page "https://github.com/moses-smt/mgiza") | |
133 | + | (synopsis "Word alignement tool") | |
134 | + | (description "Mgiza is a word alignment tool based on the famous GIZA++, | |
135 | + | extended to support multi-threading, resume training and incremental training.") | |
136 | + | (license license:gpl2+))) |