diff options
Diffstat (limited to 'gnu/packages/mpi.scm')
| -rw-r--r-- | gnu/packages/mpi.scm | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm index 2bf77a8d7ce..a0b9de1f1b8 100644 --- a/gnu/packages/mpi.scm +++ b/gnu/packages/mpi.scm | |||
| @@ -336,18 +336,9 @@ software vendors, application developers and computer science researchers.") | |||
| 336 | (uri (string-append "https://www.open-mpi.org/software/ompi/v" | 336 | (uri (string-append "https://www.open-mpi.org/software/ompi/v" |
| 337 | (version-major+minor version) | 337 | (version-major+minor version) |
| 338 | "/downloads/openmpi-" version ".tar.bz2")) | 338 | "/downloads/openmpi-" version ".tar.bz2")) |
| 339 | (modules '((guix build utils) | 339 | (modules '((guix build utils))) |
| 340 | (ice-9 ftw) | ||
| 341 | (srfi srfi-26))) | ||
| 342 | (snippet | 340 | (snippet |
| 343 | '(begin | 341 | '(begin |
| 344 | ;; XXX: 'delete-all-but' is copied from the turbovnc package. | ||
| 345 | (define (delete-all-but directory . preserve) | ||
| 346 | (with-directory-excursion directory | ||
| 347 | (let* ((pred (negate (cut member <> | ||
| 348 | (cons* "." ".." preserve)))) | ||
| 349 | (items (scandir "." pred))) | ||
| 350 | (for-each (cut delete-file-recursively <>) items)))) | ||
| 351 | ;; Delete as many bundled libraries as permitted by the build | 342 | ;; Delete as many bundled libraries as permitted by the build |
| 352 | ;; system. | 343 | ;; system. |
| 353 | (delete-all-but "3rd-party" "treematch" "Makefile.in" "Makefile.am") | 344 | (delete-all-but "3rd-party" "treematch" "Makefile.in" "Makefile.am") |
