3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: libngspice: Delete autogenerated config.h.

* gnu/packages/engineering.scm (libngspice)[arguments]<#:phases>: Rename phase
  'delete-script-files to 'delete-scripts-and-config and delete config.h.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
This commit is contained in:
Vinicius Monego 2021-06-22 09:53:41 -03:00 committed by Guillaume Le Vaillant
parent e22a711c97
commit 33fa648f75
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -1711,11 +1711,16 @@ high-performance parallel differential evolution (DE) optimization algorithm.")
(substitute* "man/man1/Makefile.in"
(("^man_MANS = ngspice\\.1 ngnutmeg\\.1 ngsconvert\\.1 ngmultidec\\.1")
"man_MANS = "))))
(add-after 'install 'delete-script-files
(add-after 'install 'delete-scripts-and-config
(lambda* (#:key outputs #:allow-other-keys)
(delete-file-recursively
(string-append (assoc-ref outputs "out")
"/share/ngspice/scripts")))))
"/share/ngspice/scripts"))
;; This file is autogenerated by the configure script and should
;; not be distributed. It could be removed in ngspice 35. See
;; https://bugs.archlinux.org/task/70569 for reference.
(delete-file (string-append (assoc-ref outputs "out")
"/include/config.h")))))
#:configure-flags
(list "--enable-openmp"
"--enable-ciderlib"