From: Danny Milosavljevic <dannym@scratchpost.org>
To: Theodoros Foradis <theodoros.for@openmailbox.org>
Cc: 27344@debbugs.gnu.org
Subject: [bug#27344] [PATCH v2 08/12] gnu: Add ngspice.
Date: Sun, 23 Jul 2017 15:16:46 +0200 [thread overview]
Message-ID: <20170723151646.013b6408@scratchpost.org> (raw)
In-Reply-To: <20170723133712.2239b7d9@scratchpost.org>
My current version of your patch is below.
After it, the following duplicates remain:
* ./bin/cmpp
* ./lib/ngspice/analog.cm
* ./lib/ngspice/digital.cm
* ./lib/ngspice/spice2poly.cm
* ./lib/ngspice/xtradev.cm
* ./lib/ngspice/xtraevt.cm
* ./share/ngspice/dlmain.c
* ./share/ngspice/scripts/setplot
* ./share/ngspice/scripts/spectrum
* ./share/ngspice/scripts/spinit
Also, how can other programs find libngspice? There's no pkg-config file and also no replacement (a la gtk-config) that I can see.
cmpp seems to be a preprocessor for xspice extensions - should it be part of ngspice or libngspice ? Is libngspice useful without cmpp being there ?
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 650ac2b89..2687b5758 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -59,6 +59,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 ncurses)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
@@ -1013,3 +1014,87 @@ specified in high-level description language into ready-to-compile C code for
the API of spice simulators. Based on transformations specified in XML
language, ADMS transforms Verilog-AMS code into other target languages.")
(license license:gpl3)))
+
+(define-public libngspice
+ (package
+ (name "libngspice")
+ (version "26")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://sourceforge/ngspice/ng-spice-rework/"
+ version "/ngspice-" version ".tar.gz"))
+ (sha256
+ (base32
+ "02019ndcl057nq9z41nxycqba7wxlb081ibvfj9jv010nz431qji"))
+ (modules '((guix build utils)))
+ ;; We remove the non-free cider and build without it.
+ (snippet
+ '(begin
+ (delete-file-recursively "src/ciderlib")
+ (delete-file "src/ciderinit")
+ (substitute* "configure"
+ (("src/ciderlib/Makefile") "")
+ (("src/ciderlib/input/Makefile") "")
+ (("src/ciderlib/support/Makefile") "")
+ (("src/ciderlib/oned/Makefile") "")
+ (("src/ciderlib/twod/Makefile") ""))))))
+ (build-system gnu-build-system)
+ (arguments
+ `(;; No tests for libngspice exist.
+ ;; The transient tests for ngspice fail.
+ #:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-timestamps
+ (lambda _
+ (substitute* "configure"
+ (("`date`") "Do 1. Jan 00:00:00 UTC 1970"))
+ #t))
+ (add-after 'unpack 'delete-program-manuals
+ (lambda _
+ (substitute* "man/man1/Makefile.in"
+ (("^man_MANS = ngspice\\.1 ngnutmeg\\.1 ngsconvert\\.1 ngmultidec\\.1")
+ "man_MANS = "))
+ #t)))
+ #:configure-flags
+ (list "--enable-openmp"
+ "--enable-xspice"
+ "--with-ngshared"
+ "--with-readline=yes")))
+ (native-inputs
+ `(("bison" ,bison)
+ ("flex" ,flex)))
+ (inputs
+ `(("libxaw" ,libxaw)
+ ("mpi" ,openmpi)
+ ("readline" ,readline)))
+ (home-page "http://ngspice.sourceforge.net/")
+ (synopsis "Mixed-level/mixed-signal circuit simulator")
+ (description
+ "Ngspice is a mixed-level/mixed-signal circuit simulator. It includes
+@code{Spice3f5}, a circuit simulator, and @code{Xspice}, an extension that
+provides code modeling support and simulation of digital components through
+an embedded event driven algorithm.")
+ (license (list license:lgpl2.0+ ; code in frontend/numparam
+ (license:non-copyleft "file:///COPYING") ; spice3 bsd-style
+ license:public-domain)))) ; xspice
+
+(define-public ngspice
+ (package (inherit libngspice)
+ (name "ngspice")
+ (arguments
+ (substitute-keyword-arguments (package-arguments libngspice)
+ ((#:configure-flags flags)
+ `(delete "--with-ngshared" ,flags))
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'delete-include-files
+ (lambda _
+ (substitute* "src/Makefile.in"
+ (("^SUBDIRS = misc maths frontend spicelib include/ngspice")
+ "SUBDIRS = misc maths frontend spicelib"))
+ #t))
+ (delete 'delete-program-manuals)))))
+ (inputs
+ `(("libngspice" ,libngspice)
+ ("readline" ,readline)))))
next prev parent reply other threads:[~2017-07-23 13:18 UTC|newest]
Thread overview: 104+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-12 12:33 [bug#27344] [PATCH 0/12] Add computational software and circuit simulators Theodoros Foradis
2017-06-12 16:52 ` [bug#27344] [PATCH 01/12] gnu: Add harminv Theodoros Foradis
2017-06-12 16:52 ` [bug#27344] [PATCH 02/12] gnu: Add libctl Theodoros Foradis
2017-06-15 11:32 ` Danny Milosavljevic
2017-06-15 12:47 ` Ludovic Courtès
2017-06-15 14:15 ` Danny Milosavljevic
2017-06-15 21:28 ` Ludovic Courtès
2017-09-28 12:29 ` Ludovic Courtès
2017-09-28 12:42 ` Ludovic Courtès
2017-06-12 16:52 ` [bug#27344] [PATCH 03/12] gnu: Add mpb Theodoros Foradis
2017-06-15 11:42 ` Danny Milosavljevic
2017-06-16 15:16 ` Theodoros Foradis
2017-06-19 20:40 ` Danny Milosavljevic
2017-09-28 12:37 ` Ludovic Courtès
2017-06-12 16:52 ` [bug#27344] [PATCH 04/12] gnu: Add meep Theodoros Foradis
2017-06-12 16:52 ` [bug#27344] [PATCH 05/12] gnu: Add adms Theodoros Foradis
2017-06-15 11:49 ` Danny Milosavljevic
2017-06-12 16:52 ` [bug#27344] [PATCH 06/12] gnu: Add freehdl Theodoros Foradis
2017-06-15 11:35 ` Danny Milosavljevic
2017-06-16 15:50 ` Theodoros Foradis
2017-06-16 18:20 ` Danny Milosavljevic
2017-06-17 10:16 ` Theodoros Foradis
2017-06-12 16:52 ` [bug#27344] [PATCH 07/12] gnu: Add asco Theodoros Foradis
2017-06-15 12:22 ` Danny Milosavljevic
2017-06-16 15:54 ` Theodoros Foradis
2017-06-12 16:52 ` [bug#27344] [PATCH 08/12] gnu: Add ngspice Theodoros Foradis
2017-06-15 11:45 ` Danny Milosavljevic
2017-06-16 17:20 ` Theodoros Foradis
2017-06-12 16:52 ` [bug#27344] [PATCH 09/12] gnu: Add xyce-serial Theodoros Foradis
2017-06-12 16:52 ` [bug#27344] [PATCH 10/12] gnu: Add xyce-parallel Theodoros Foradis
2017-06-12 16:52 ` [bug#27344] [PATCH 11/12] gnu: Add qucs Theodoros Foradis
2017-06-15 11:37 ` Danny Milosavljevic
2017-06-16 16:52 ` Theodoros Foradis
2017-06-16 18:18 ` Danny Milosavljevic
2017-06-17 10:24 ` Theodoros Foradis
2017-06-12 16:52 ` [bug#27344] [PATCH 12/12] gnu: Add qucs-s Theodoros Foradis
2017-06-15 11:39 ` [bug#27344] [PATCH 01/12] gnu: Add harminv Danny Milosavljevic
2017-06-16 15:11 ` Theodoros Foradis
2017-06-22 19:09 ` [bug#27344] [PATCH v2 " Theodoros Foradis
2017-06-22 19:09 ` [bug#27344] [PATCH v2 02/12] gnu: Add guile-libctl Theodoros Foradis
2017-06-22 19:09 ` [bug#27344] [PATCH v2 03/12] gnu: Add mpb Theodoros Foradis
2017-06-24 6:51 ` Danny Milosavljevic
2017-06-22 19:09 ` [bug#27344] [PATCH v2 04/12] gnu: Add meep Theodoros Foradis
2017-06-24 6:49 ` Danny Milosavljevic
2017-06-24 9:14 ` Theodoros Foradis
2017-06-22 19:09 ` [bug#27344] [PATCH v2 05/12] gnu: Add adms Theodoros Foradis
2017-06-22 19:09 ` [bug#27344] [PATCH v2 06/12] gnu: Add freehdl Theodoros Foradis
2017-06-24 7:18 ` Danny Milosavljevic
2017-06-24 9:34 ` Theodoros Foradis
2017-06-26 18:40 ` Theodoros Foradis
2017-06-22 19:10 ` [bug#27344] [PATCH v2 07/12] gnu: Add asco Theodoros Foradis
2017-09-28 12:52 ` Ludovic Courtès
2017-06-22 19:10 ` [bug#27344] [PATCH v2 08/12] gnu: Add ngspice Theodoros Foradis
2017-07-23 11:37 ` Danny Milosavljevic
2017-07-23 13:16 ` Danny Milosavljevic [this message]
2017-07-28 17:17 ` Theodoros Foradis
2017-06-22 19:10 ` [bug#27344] [PATCH v2 09/12] gnu: Add xyce-serial Theodoros Foradis
2017-06-22 19:10 ` [bug#27344] [PATCH v2 10/12] gnu: Add xyce-parallel Theodoros Foradis
2017-06-22 19:10 ` [bug#27344] [PATCH v2 11/12] gnu: Add qucs Theodoros Foradis
2017-06-22 19:14 ` [bug#27344] [PATCH v2 12/12] gnu: Add qucs-s Theodoros Foradis
2017-07-20 9:25 ` [bug#27344] [PATCH 0/12] Add computational software and circuit simulators Ludovic Courtès
2017-07-28 19:46 ` Theodoros Foradis
2017-08-31 10:34 ` Ludovic Courtès
2017-09-09 16:51 ` Theodoros Foradis
2017-09-09 17:57 ` [bug#27344] [PATCH v3 1/8] gnu: Add asco Theodoros Foradis
2017-09-09 17:57 ` [bug#27344] [PATCH v3 2/8] gnu: Add libngspice and ngspice Theodoros Foradis
2017-09-28 20:07 ` Ludovic Courtès
2017-09-28 21:24 ` Theodoros Foradis
2017-10-01 13:04 ` Ludovic Courtès
2017-09-09 17:57 ` [bug#27344] [PATCH v3 3/8] gnu: Add lapack-3.5 Theodoros Foradis
2017-09-09 17:57 ` [bug#27344] [PATCH v3 4/8] gnu: Add xyce-serial Theodoros Foradis
2017-10-05 10:08 ` [bug#27344] Trilinos (was: Re: [bug#27344] [PATCH v3 4/8] gnu: Add xyce-serial.) Ludovic Courtès
2017-10-06 20:11 ` Theodoros Foradis
2017-10-11 7:57 ` [bug#27344] Trilinos Ludovic Courtès
2017-09-09 17:57 ` [bug#27344] [PATCH v3 5/8] gnu: Add xyce-parallel Theodoros Foradis
2017-10-11 8:20 ` Ludovic Courtès
2017-09-09 17:57 ` [bug#27344] [PATCH v3 6/8] gnu: Add freehdl Theodoros Foradis
2017-10-11 8:19 ` Ludovic Courtès
2017-10-12 17:00 ` Theodoros Foradis
2017-10-13 8:21 ` Ludovic Courtès
2017-10-27 14:07 ` Theodoros Foradis
2017-10-27 14:18 ` [bug#27344] [PATCH v4 1/3] gnu: freehdl: Fix gvhdl and freehdl-gennodes scripts Theodoros Foradis
2017-10-27 14:18 ` [bug#27344] [PATCH v4 2/3] gnu: Add qucs Theodoros Foradis
2017-10-27 15:22 ` Ludovic Courtès
2017-10-27 16:20 ` Theodoros Foradis
2017-10-27 19:42 ` Ludovic Courtès
2017-10-27 14:18 ` [bug#27344] [PATCH v4 3/3] gnu: Add qucs-s Theodoros Foradis
2017-10-27 15:26 ` Ludovic Courtès
2017-10-27 16:22 ` Theodoros Foradis
2017-11-08 17:42 ` Theodoros Foradis
2017-11-16 9:54 ` bug#27344: " Ludovic Courtès
2017-10-27 15:19 ` [bug#27344] [PATCH v4 1/3] gnu: freehdl: Fix gvhdl and freehdl-gennodes scripts Ludovic Courtès
2017-10-27 16:17 ` Theodoros Foradis
2017-10-27 19:38 ` Ludovic Courtès
2017-09-09 17:57 ` [bug#27344] [PATCH v3 7/8] gnu: Add qucs Theodoros Foradis
2017-10-11 8:27 ` Ludovic Courtès
2017-10-12 17:07 ` Theodoros Foradis
2017-10-13 8:25 ` Ludovic Courtès
2017-09-09 17:57 ` [bug#27344] [PATCH v3 8/8] gnu: Add qucs-s Theodoros Foradis
2017-09-30 22:30 ` Theodoros Foradis
2017-09-09 18:16 ` [bug#27344] [PATCH v3 1/8] gnu: Add asco Theodoros Foradis
2017-09-28 12:58 ` [bug#27344] [PATCH 0/12] Add computational software and circuit simulators Ludovic Courtès
2017-09-28 13:18 ` Theodoros Foradis
2017-09-28 20:00 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170723151646.013b6408@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=27344@debbugs.gnu.org \
--cc=theodoros.for@openmailbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.