gnu: qucs-s: Update to 0.0.20.

* gnu/packages/engineering.scm (qucs-s): Update to 0.0.20.
[arguments]: Modify patch-paths phase to work with version 0.0.20.

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
Theodoros Foradis 2018-05-19 21:46:27 +03:00 committed by Danny Milosavljevic
parent fc3c88ec9c
commit 394b89ae04
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 16 additions and 13 deletions

View File

@ -1622,14 +1622,15 @@ simulations are also supported.")
(define-public qucs-s (define-public qucs-s
(package (package
(name "qucs-s") (name "qucs-s")
(version "0.0.19S") (version "0.0.20")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://github.com/ra3xdh/qucs/releases/download/" (uri (string-append "https://github.com/ra3xdh/qucs_s/archive/"
version "/qucs-" version ".tar.gz")) version ".tar.gz"))
(file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1bhahvdqmayaw0306fxz1ghmjhd4fq05yk3rk7zi0z703w5imgjv")))) "01dizf4rjciqc8x7bmv3kbhdlz90bm6n9m9fz7dbzqcwvszcs1hx"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:tests? #f ; no tests `(#:tests? #f ; no tests
@ -1664,19 +1665,21 @@ simulations are also supported.")
"\\+ \"qucsator\" \\+ executableSuffix")) "\\+ \"qucsator\" \\+ executableSuffix"))
(string-append "}{ QucsSettings.Qucsator = \"" (string-append "}{ QucsSettings.Qucsator = \""
(assoc-ref inputs "qucs") "/bin/qucsator\"")) (assoc-ref inputs "qucs") "/bin/qucsator\""))
(((string-append "else QucsSettings\\.XyceExecutable = " (((string-append "QucsSettings\\.XyceExecutable = "
"\"/usr/local/Xyce-Release-6.2.0-OPENSOURCE/bin/runxyce")) "\"/usr/local/Xyce-Release-6.8.0-OPENSOURCE/bin/Xyce"))
(string-append "QucsSettings.XyceExecutable = \"" (string-append "}{ QucsSettings.XyceExecutable = \""
(assoc-ref inputs "xyce-serial") "/bin/Xyce")) (assoc-ref inputs "xyce-serial") "/bin/Xyce"))
(((string-append "else QucsSettings\\.XyceParExecutable = \"/usr/local" (((string-append "else QucsSettings\\.XyceParExecutable = "
"/Xyce-Release-6.2.0-OPENMPI-OPENSOURCE/bin/xmpirun")) "\"mpirun -np %p /usr/local"
"/Xyce-Release-6.8.0-OPENMPI-OPENSOURCE/bin/Xyce"))
(string-append "QucsSettings.XyceParExecutable = \"" (string-append "QucsSettings.XyceParExecutable = \""
(assoc-ref inputs "mpi") "/bin/mpirun")) (assoc-ref inputs "mpi") "/bin/mpirun -np %p "
(("%p") (assoc-ref inputs "xyce-parallel") "/bin/Xyce"))
(string-append "%p "(assoc-ref inputs "xyce-parallel") "/bin/Xyce"))
(("else QucsSettings\\.NgspiceExecutable = \"ngspice\"") (("else QucsSettings\\.NgspiceExecutable = \"ngspice\"")
(string-append "QucsSettings.NgspiceExecutable = " "\"" (string-append "QucsSettings.NgspiceExecutable = " "\""
(assoc-ref inputs "ngspice") "/bin/ngspice\""))) (assoc-ref inputs "ngspice") "/bin/ngspice\"")))
(substitute* "qucs/extsimkernels/ngspice.cpp"
(("share/qucs/xspice_cmlib") "share/qucs-s/xspice_cmlib"))
(substitute* "qucs/qucs_actions.cpp" (substitute* "qucs/qucs_actions.cpp"
(("qucstrans") (("qucstrans")
(string-append (assoc-ref inputs "qucs") "/bin/qucstrans")) (string-append (assoc-ref inputs "qucs") "/bin/qucstrans"))
@ -1689,7 +1692,7 @@ simulations are also supported.")
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(for-each (for-each
(lambda (script) (lambda (script)
(let ((file (string-append "../qucs-" ,version (let ((file (string-append "../qucs_s-" ,version
"/qucs/" script)) "/qucs/" script))
(out (assoc-ref outputs "out"))) (out (assoc-ref outputs "out")))
(install-file file (string-append out "/bin")) (install-file file (string-append out "/bin"))