gnu: ngspice: Improve style.

* gnu/packages/engineering.scm (libngspice)[source]: Switch to git-fetch.
[native-inputs]: Add autoconf, automake and libtool.
[home-page]: Correct.
* gnu/packages/engineering.scm (ngspice)[native-inputs]: Inherit from
libngspice.

Change-Id: I30d767e10a8e4612d3ba705ac470d7f7fc41a1c7
Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
This commit is contained in:
Cayetano Santos 2025-07-26 00:00:51 +02:00 committed by Maxim Cournoyer
parent 8bb7145467
commit 495a8de637
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -2416,15 +2416,13 @@ high-performance parallel differential evolution (DE) optimization algorithm.")
(version "44.2")
(source
(origin
(method url-fetch)
(uri (list (string-append
"mirror://sourceforge/ngspice/ng-spice-rework/" version
"/ngspice-" version ".tar.gz")
(string-append
"mirror://sourceforge/ngspice/ng-spice-rework/"
"old-releases/" version "/ngspice-" version ".tar.gz")))
(method git-fetch)
(uri (git-reference
(url "https://git.code.sf.net/p/ngspice/ngspice")
(commit (string-append "ngspice-" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1zfpj09vqjamgkhnipwpwmvrzhfymikml7lw80igsx2lpnvxznp7"))))
(base32 "1vp27149kx8l7397bv5p708jqph1kma8rb9bl7ckgmbr9sw9cn3q"))))
(build-system gnu-build-system)
(arguments
(list
@ -2437,9 +2435,9 @@ high-performance parallel differential evolution (DE) optimization algorithm.")
"/share/ngspice/scripts")))))
#:configure-flags #~(list "--enable-openmp" "--enable-cider"
"--enable-xspice" "--with-ngshared")))
(native-inputs (list bison flex))
(native-inputs (list autoconf automake bison flex libtool))
(inputs (list openmpi))
(home-page "https://ngspice.sourceforge.net/")
(home-page "https://ngspice.sourceforge.io/")
(synopsis "Mixed-level/mixed-signal circuit simulator")
(description
"Ngspice is a mixed-level/mixed-signal circuit simulator. It includes
@ -2465,7 +2463,9 @@ an embedded event driven algorithm.")
((#:phases phases)
#~(modify-phases #$phases
(delete 'delete-scripts)))))
(native-inputs (list perl))
(native-inputs
(modify-inputs (package-native-inputs libngspice)
(append perl)))
(inputs (list libngspice readline libxaw libx11))))
(define trilinos-serial-xyce