gnu: libngspice, ngspice: Improve package style.
* gnu/packages/engineering.scm (libngspice, ngspice): Reformat packages using 'guix style'. [arguments]: Use G-Expressions. Change-Id: I59efa6a78797c2dc2a960ce0be74b2a7381d6d4cmaster
parent
bd03b42d91
commit
0c3fd900cf
|
@ -1983,35 +1983,28 @@ high-performance parallel differential evolution (DE) optimization algorithm.")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (list
|
(uri (list (string-append
|
||||||
(string-append "mirror://sourceforge/ngspice/ng-spice-rework/"
|
"mirror://sourceforge/ngspice/ng-spice-rework/" version
|
||||||
version "/ngspice-" version ".tar.gz")
|
"/ngspice-" version ".tar.gz")
|
||||||
(string-append "mirror://sourceforge/ngspice/ng-spice-rework/"
|
(string-append
|
||||||
"old-releases/" version
|
"mirror://sourceforge/ngspice/ng-spice-rework/"
|
||||||
"/ngspice-" version ".tar.gz")))
|
"old-releases/" version "/ngspice-" version ".tar.gz")))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "169nn6bw5628m2k8cy77yd1vs22plj83grisq58j07sk11pnmp8l"))))
|
(base32 "169nn6bw5628m2k8cy77yd1vs22plj83grisq58j07sk11pnmp8l"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(;; No tests for libngspice exist.
|
(list
|
||||||
;; The transient tests for ngspice fail.
|
#:tests? #f ;there are no tests for libngspice
|
||||||
#:tests? #f
|
#:phases #~(modify-phases %standard-phases
|
||||||
#:phases
|
(add-after 'install 'delete-scripts
|
||||||
(modify-phases %standard-phases
|
(lambda _
|
||||||
(add-after 'install 'delete-scripts
|
(delete-file-recursively
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(string-append #$output
|
||||||
(delete-file-recursively
|
"/share/ngspice/scripts")))))
|
||||||
(string-append (assoc-ref outputs "out")
|
#:configure-flags #~(list "--enable-openmp" "--enable-ciderlib"
|
||||||
"/share/ngspice/scripts")))))
|
"--enable-xspice" "--with-ngshared")))
|
||||||
#:configure-flags
|
(native-inputs (list bison flex))
|
||||||
(list "--enable-openmp"
|
(inputs (list libxaw openmpi))
|
||||||
"--enable-ciderlib"
|
|
||||||
"--enable-xspice"
|
|
||||||
"--with-ngshared")))
|
|
||||||
(native-inputs
|
|
||||||
(list bison flex))
|
|
||||||
(inputs
|
|
||||||
(list libxaw openmpi))
|
|
||||||
(home-page "https://ngspice.sourceforge.net/")
|
(home-page "https://ngspice.sourceforge.net/")
|
||||||
(synopsis "Mixed-level/mixed-signal circuit simulator")
|
(synopsis "Mixed-level/mixed-signal circuit simulator")
|
||||||
(description
|
(description
|
||||||
|
@ -2019,25 +2012,26 @@ high-performance parallel differential evolution (DE) optimization algorithm.")
|
||||||
@code{Spice3f5}, a circuit simulator, and @code{Xspice}, an extension that
|
@code{Spice3f5}, a circuit simulator, and @code{Xspice}, an extension that
|
||||||
provides code modeling support and simulation of digital components through
|
provides code modeling support and simulation of digital components through
|
||||||
an embedded event driven algorithm.")
|
an embedded event driven algorithm.")
|
||||||
(license (list license:lgpl2.0+ ; code in frontend/numparam
|
(license (list license:lgpl2.0+ ;code in frontend/numparam
|
||||||
(license:non-copyleft "file:///COPYING") ; spice3 bsd-style
|
(license:non-copyleft "file:///COPYING") ;spice3 bsd-style
|
||||||
license:bsd-3 ; ciderlib
|
license:bsd-3 ;ciderlib
|
||||||
license:public-domain)))) ; xspice
|
license:public-domain)))) ;xspice
|
||||||
|
|
||||||
(define-public ngspice
|
(define-public ngspice
|
||||||
;; The ngspice executables (see libngpsice above.)
|
;; The ngspice executables (see libngpsice above.)
|
||||||
(package (inherit libngspice)
|
(package
|
||||||
|
(inherit libngspice)
|
||||||
(name "ngspice")
|
(name "ngspice")
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments libngspice)
|
(substitute-keyword-arguments (package-arguments libngspice)
|
||||||
((#:configure-flags flags)
|
((#:configure-flags flags)
|
||||||
`(cons "--with-readline=yes"
|
#~(cons "--with-readline=yes"
|
||||||
(delete "--with-ngshared" ,flags)))
|
(delete "--with-ngshared"
|
||||||
|
#$flags)))
|
||||||
((#:phases phases)
|
((#:phases phases)
|
||||||
`(modify-phases ,phases
|
#~(modify-phases #$phases
|
||||||
(delete 'delete-scripts)))))
|
(delete 'delete-scripts)))))
|
||||||
(inputs
|
(inputs (list libngspice readline))))
|
||||||
(list libngspice readline))))
|
|
||||||
|
|
||||||
(define trilinos-serial-xyce
|
(define trilinos-serial-xyce
|
||||||
;; Note: This is a Trilinos containing only the packages Xyce needs, so we
|
;; Note: This is a Trilinos containing only the packages Xyce needs, so we
|
||||||
|
|
Reference in New Issue