[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#27344] [PATCH 07/12] gnu: Add asco.
From: |
Theodoros Foradis |
Subject: |
[bug#27344] [PATCH 07/12] gnu: Add asco. |
Date: |
Mon, 12 Jun 2017 19:52:21 +0300 |
* gnu/packages/engineering.scm (asco): New variable.
---
gnu/packages/engineering.scm | 47 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 3f5dd9d33..b88dad3b3 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -58,6 +58,7 @@
#:use-module (gnu packages linux) ;FIXME: for pcb
#:use-module (gnu packages m4)
#:use-module (gnu packages maths)
+ #:use-module (gnu packages mpi)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
@@ -1028,3 +1029,49 @@ language, ADMS transforms Verilog-AMS code into other
target languages.")
VHDL'93 as well as VHDL'87 standards are supported.")
(license (list license:gpl2+
license:lgpl2.0+)))) ; freehdl's libraries
+
+(define-public asco
+ (package
+ (name "asco")
+ (version "0.4.10")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://sourceforge/asco/asco/" version
"/ASCO-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "119rbc2dc8xzwxvykgji0v0nrzvymjmlizr1bc2mihspj686kxsl"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f ; no tests
+ #:make-flags '("all" "asco-mpi")
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (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)))
+ (home-page "http://asco.sourceforge.net/")
+ (synopsis "SPICE circuit optimizer")
+ (description
+ "ASCO brings circuit optimization capabilities to existing SPICE
simulators using a
+high-performance parallel differential evolution (DE) optimization algorithm.")
+ (license license:gpl2+)))
--
2.13.1
- [bug#27344] [PATCH 02/12] gnu: Add libctl., (continued)
[bug#27344] [PATCH 03/12] gnu: Add mpb., Theodoros Foradis, 2017/06/12
[bug#27344] [PATCH 07/12] gnu: Add asco.,
Theodoros Foradis <=
[bug#27344] [PATCH 09/12] gnu: Add xyce-serial., Theodoros Foradis, 2017/06/12
[bug#27344] [PATCH 11/12] gnu: Add qucs., Theodoros Foradis, 2017/06/12
[bug#27344] [PATCH 08/12] gnu: Add ngspice., Theodoros Foradis, 2017/06/12