gnu: libngspice: Enable ciderlib.
* gnu/packages/engineering.scm (libngspice)[source]: Remove snippet that deleted ciderlib. [arguments]: Pass "--enable-ciderlib" to #:configure-flags. [license]: Add license for ciderlib. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
		
							parent
							
								
									2b8730bf80
								
							
						
					
					
						commit
						e0407ca0a3
					
				
					 1 changed files with 3 additions and 14 deletions
				
			
		| 
						 | 
					@ -1694,20 +1694,7 @@ high-performance parallel differential evolution (DE) optimization algorithm.")
 | 
				
			||||||
                            "old-releases/" version
 | 
					                            "old-releases/" version
 | 
				
			||||||
                            "/ngspice-" version ".tar.gz")))
 | 
					                            "/ngspice-" version ".tar.gz")))
 | 
				
			||||||
       (sha256
 | 
					       (sha256
 | 
				
			||||||
        (base32 "1dfpkgkwmgwhq8dnbb8dh28cfap6rw0yywkhmxr4jxclcvygyqr2"))
 | 
					        (base32 "1dfpkgkwmgwhq8dnbb8dh28cfap6rw0yywkhmxr4jxclcvygyqr2"))))
 | 
				
			||||||
       (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") ""))
 | 
					 | 
				
			||||||
           #t))))
 | 
					 | 
				
			||||||
    (build-system gnu-build-system)
 | 
					    (build-system gnu-build-system)
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     `(;; No tests for libngspice exist.
 | 
					     `(;; No tests for libngspice exist.
 | 
				
			||||||
| 
						 | 
					@ -1731,6 +1718,7 @@ high-performance parallel differential evolution (DE) optimization algorithm.")
 | 
				
			||||||
                             "/share/ngspice/scripts")))))
 | 
					                             "/share/ngspice/scripts")))))
 | 
				
			||||||
       #:configure-flags
 | 
					       #:configure-flags
 | 
				
			||||||
       (list "--enable-openmp"
 | 
					       (list "--enable-openmp"
 | 
				
			||||||
 | 
					             "--enable-ciderlib"
 | 
				
			||||||
             "--enable-xspice"
 | 
					             "--enable-xspice"
 | 
				
			||||||
             "--with-ngshared"
 | 
					             "--with-ngshared"
 | 
				
			||||||
             "--with-readline=yes")))
 | 
					             "--with-readline=yes")))
 | 
				
			||||||
| 
						 | 
					@ -1750,6 +1738,7 @@ 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:public-domain)))) ; xspice
 | 
					                   license:public-domain)))) ; xspice
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define-public ngspice
 | 
					(define-public ngspice
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue