Subject: [bug#27344] [PATCH v2 07/12] gnu: Add asco.

From: [email-masked] (Ludovic Courtès)
Date: Thu, 28 Sep 2017 14:52:49 +0200

Theodoros Foradis <[email-masked]> skribis:

> * gnu/packages/engineering.scm (asco): New variable.

[...]

> +         (add-before 'build 'fix-paths
> +           (lambda* (#:key inputs #:allow-other-keys)
> +             (substitute* '("errfunc.c" "asco.c")
> +               (("cp ") (string-append (which "cp") " "))
> +               (("nice") (string-append (assoc-ref inputs "coreutils") "/bin/nice")))
> +             (substitute* "Makefile"
> +               (("<FULL_PATH_TO_MPICH>/bin/mpicc") (which "mpicc")))
> +             #t))
> +         (replace 'install ; no install target
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (for-each (lambda (file)
> +                         (install-file file (string-append
> +                                             (assoc-ref outputs "out")
> +                                             "/bin")))
> +                       '("asco" "asco-mpi" "asco-test"
> +                         "tools/alter/alter" "tools/log/log"))
> +             #t)))))
> +    (native-inputs
> +     `(("mpi" ,openmpi)))
> +    (inputs
> +     `(("coreutils" ,coreutils-minimal)))

I changed the label to “coreutils-minimal” as otherwise we’d be picking
up the other coreutils.

Thanks,
Ludo’.