From unknown Sun Aug 17 01:48:20 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#35162] [PATCH] gnu: Add gnucap. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Apr 2019 17:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35162 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35162@debbugs.gnu.org Cc: Arun Isaac X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15544860744866 (code B ref -1); Fri, 05 Apr 2019 17:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Apr 2019 17:41:14 +0000 Received: from localhost ([127.0.0.1]:46255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCSpw-0001GK-3E for submit@debbugs.gnu.org; Fri, 05 Apr 2019 13:41:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCSps-0001Fd-Ji for submit@debbugs.gnu.org; Fri, 05 Apr 2019 13:41:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:34935) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCSov-0004zn-BO for submit@debbugs.gnu.org; Fri, 05 Apr 2019 13:40:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCSot-0006cc-Un for guix-patches@gnu.org; Fri, 05 Apr 2019 13:40:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCShy-0007kS-J1 for guix-patches@gnu.org; Fri, 05 Apr 2019 13:32:56 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:37024) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCSgz-0005nk-Vv for guix-patches@gnu.org; Fri, 05 Apr 2019 13:32:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cKQXkkVRl6tc9Ha27TGfD5he4nZ7ShtnJP38yRqhvus=; b=kSK2P4mgFWoTGixkuntxP/Hi7f IY2zjsZdeRngopfcxrkQUWwQtUp6lBdj8a69mytk4aK++9Co4AYukGNueg7yuUKzleOZbw6/3kuZn 4TJQF4oWMFS2WwIs3+PDMK8BQS8JF1eliHQJd+uXaDcM3lWkeUh5H+mWN+maVA2YwlDw=; Received: from [49.206.14.41] (helo=steel.lan) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1hCSfF-0002ve-8Y; Fri, 05 Apr 2019 23:00:05 +0530 From: Arun Isaac Date: Fri, 5 Apr 2019 22:59:51 +0530 Message-Id: <20190405172952.11706-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 139.59.75.54 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) * gnu/packages/engineering.scm (gnucap): New variable. --- gnu/packages/engineering.scm | 56 +++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index a90ceab0d2..cf308e03f6 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -9,7 +9,7 @@ ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice ;;; Copyright © 2018 Clément Lassieur ;;; Copyright © 2018, 2019 Jonathan Brielmaier -;;; Copyright © 2018 Arun Isaac +;;; Copyright © 2018, 2019 Arun Isaac ;;; Copyright © 2019 Tim Stahel ;;; ;;; This file is part of GNU Guix. @@ -2008,3 +2008,57 @@ editors.") slicing software to x3g files for standalone 3D printing on common 3D printers.") (license license:gpl2+))) + +(define-public gnucap + (package + (name "gnucap") + (version "20171003") + (source + (origin + (method url-fetch) + (uri (string-append "https://git.savannah.gnu.org/cgit/gnucap.git/snapshot/gnucap-" + version ".tar.gz")) + (sha256 + (base32 + "16m09xa685qhj5fqq3bcgakrwnb74xhf5f7rpqkkf9fg8plzbb1g")))) + (build-system gnu-build-system) + (inputs + `(("readline" ,readline))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + ;; Set correct rpath so that gnucap finds libgnucap.so. + (substitute* (list "apps/configure" "lib/configure" + "main/configure" "modelgen/configure") + (("LDFLAGS =") + (string-append "LDFLAGS = -Wl,-rpath=" out "/lib"))) + ;; gnucap uses a hand-written configure script that expects the + ;; --prefix argument to be the first argument passed to it. + (invoke "./configure" (string-append "--prefix=" out))))) + (replace 'check + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (libpath "../lib/O:../apps/O")) + (with-directory-excursion "tests" + ;; Make test return non-zero exit code when a test fails. + (substitute* "test" + (("/bin/sh") "/bin/sh -e") + (("\\|\\| echo \"\\*\\*\\*\\* \\$ii fails \\*\\*\\*\\*\"") "")) + ;; Fix expected plugin search path for test c_attach.1.gc + (substitute* "==out/c_attach.1.gc.out" + (("/usr/local/lib/gnucap") + (string-append libpath ":" out "/lib/gnucap"))) + ;; Set library path so that gnucap can find libgnucap.so + ;; while running the tests. + (setenv "LD_LIBRARY_PATH" libpath) + (invoke "./test" "../main/O/gnucap" "" "test-output" "==out")))))))) + (home-page "https://www.gnu.org/software/gnucap/") + (synopsis "Mixed analog and digital circuit simulator") + (description "GNUcap is a circuit analysis package. It offers a general +purpose circuit simulator and can perform DC and transient analyses, fourier +analysis and AC analysis. The engine is designed to do true mixed-mode +simulation.") + (license license:gpl3+))) -- 2.21.0 From unknown Sun Aug 17 01:48:20 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#35162] [PATCH] gnu: Add gnucap. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Apr 2019 10:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35162 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Arun Isaac Cc: 35162@debbugs.gnu.org Received: via spool by 35162-submit@debbugs.gnu.org id=B35162.155454628131546 (code B ref 35162); Sat, 06 Apr 2019 10:25:02 +0000 Received: (at 35162) by debbugs.gnu.org; 6 Apr 2019 10:24:41 +0000 Received: from localhost ([127.0.0.1]:46593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCiV6-0008Ck-NA for submit@debbugs.gnu.org; Sat, 06 Apr 2019 06:24:40 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:45438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCiV5-0008Cc-0s for 35162@debbugs.gnu.org; Sat, 06 Apr 2019 06:24:39 -0400 Received: from localhost (178.113.210.35.wireless.dyn.drei.com [178.113.210.35]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 1F9C8336297C; Sat, 6 Apr 2019 12:24:38 +0200 (CEST) Date: Sat, 6 Apr 2019 12:24:34 +0200 From: Danny Milosavljevic Message-ID: <20190406122434.5496aaf0@scratchpost.org> In-Reply-To: <20190405172952.11706-1-arunisaac@systemreboot.net> References: <20190405172952.11706-1-arunisaac@systemreboot.net> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/2pYEOS4+I0gq2D4OA9=o.v5"; protocol="application/pgp-signature" X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: LGTM! Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [85.13.145.193 listed in list.dnswl.org] 2.3 BODY_SINGLE_WORD Message body is only one word (no spaces) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.6 (/) --Sig_/2pYEOS4+I0gq2D4OA9=o.v5 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable LGTM! --Sig_/2pYEOS4+I0gq2D4OA9=o.v5 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlyofmIACgkQ5xo1VCww uqUqkAgAjghNjQg6WQ3rEnvPL5LaeI1/QNFI5FhrOLjJqEPVW3+zcNSwMOM1pmaM o2+XDPPP0JyfXYKtgf+Pd8nW+xauIk4dJ/9ZoUGdoxXBTLHvnTGiG21qy31ls5gb PDiAj6SdbUzqhu/MIOtijh1+yXMLQIKlKfB9zySvJoIid1Z+gMXq8Hv40cXXjIMT 8MDDcRFMAer1qaE5934lj2PjLZS7QbtfnT1AcFh3O5F1/yfiIxTVn0CcnKEPrKV3 gJqZFemD9Dxt91d6wE24DAP5/BMdUP9qoQ318J6zr8xfEIwPWMLO/SlMLtTL6UcM XZz8yaY4T3ucuhp3dxl9qfGs7ygOmw== =OSSD -----END PGP SIGNATURE----- --Sig_/2pYEOS4+I0gq2D4OA9=o.v5-- From unknown Sun Aug 17 01:48:20 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Arun Isaac Subject: bug#35162: closed (Re: [bug#35162] [PATCH] gnu: Add gnucap.) Message-ID: References: <20190405172952.11706-1-arunisaac@systemreboot.net> X-Gnu-PR-Message: they-closed 35162 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 35162@debbugs.gnu.org Date: Tue, 09 Apr 2019 07:57:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1554796622-20493-1" This is a multi-part message in MIME format... ------------=_1554796622-20493-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #35162: [PATCH] gnu: Add gnucap. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 35162@debbugs.gnu.org. --=20 35162: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D35162 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1554796622-20493-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 35162-done) by debbugs.gnu.org; 9 Apr 2019 07:56:48 +0000 Received: from localhost ([127.0.0.1]:50488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDlca-0005Jz-NN for submit@debbugs.gnu.org; Tue, 09 Apr 2019 03:56:48 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:53948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDlcU-0005Jh-8k for 35162-done@debbugs.gnu.org; Tue, 09 Apr 2019 03:56:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QnIImcZew0rJZhDjC9clLH2poKgQ7fiG35ptC+C1Cgk=; b=bGvMJ8Bmd6BqZDlK9TS0YjbWS lmG29zLcfYQTQfdBxudSzkHBBkBCDSshK7RO2BMQEEj0NxAD1Gd7c+sSTMovidh+D1NnjToQ7n08o a9VNYqz0InN0b0Utx0pG7L4E7r+N4iybpRSSOZMnYVfvvRf4TgZ2DCWAbK5WggP0irR4w=; Received: from [14.139.128.10] (helo=steel) by systemreboot.net with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hDlcQ-0002Tf-3h; Tue, 09 Apr 2019 13:26:34 +0530 From: Arun Isaac To: Danny Milosavljevic Subject: Re: [bug#35162] [PATCH] gnu: Add gnucap. In-Reply-To: <20190406122434.5496aaf0@scratchpost.org> References: <20190405172952.11706-1-arunisaac@systemreboot.net> <20190406122434.5496aaf0@scratchpost.org> Date: Tue, 09 Apr 2019 13:26:24 +0530 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35162-done Cc: 35162-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Pushed, thanks for the review! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAlysUCgACgkQLiXui2GA K7OPsggAsvXgb6FrQw8Pr5YVAq21dzfJm+DGbXzd0O7sfzl8wX7cXpEw31LgV+U8 /NQQFoC0Xt6W+rqfZlF1xrV4yzwHwhKzfiwc9swskMwmInK/kLLnPNSPsNVJGn9B Z6SFwK+ab7Tw0UE00l+4HakjuTxKc33uEghCoyBxsTcDB+YVn0OJ/fHYpCe0E6tt qmua12Rhd8zeF8N1n/dg0gomRIE9wXeGFo7RfT+Z4/IGs8ba+oaYYKx6ICcEHwvK H+lJWIWN2M1hbrRsjeHAraahFsAccCFK/0KOJ4JqoZmgNNQAKlFgHxvhGwCSrMKb z0oOX4mLhNMXAbQG/eyDGk6aoxwCEw== =XY+D -----END PGP SIGNATURE----- --=-=-=-- ------------=_1554796622-20493-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Apr 2019 17:41:14 +0000 Received: from localhost ([127.0.0.1]:46255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCSpw-0001GK-3E for submit@debbugs.gnu.org; Fri, 05 Apr 2019 13:41:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCSps-0001Fd-Ji for submit@debbugs.gnu.org; Fri, 05 Apr 2019 13:41:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:34935) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCSov-0004zn-BO for submit@debbugs.gnu.org; Fri, 05 Apr 2019 13:40:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCSot-0006cc-Un for guix-patches@gnu.org; Fri, 05 Apr 2019 13:40:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCShy-0007kS-J1 for guix-patches@gnu.org; Fri, 05 Apr 2019 13:32:56 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:37024) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCSgz-0005nk-Vv for guix-patches@gnu.org; Fri, 05 Apr 2019 13:32:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cKQXkkVRl6tc9Ha27TGfD5he4nZ7ShtnJP38yRqhvus=; b=kSK2P4mgFWoTGixkuntxP/Hi7f IY2zjsZdeRngopfcxrkQUWwQtUp6lBdj8a69mytk4aK++9Co4AYukGNueg7yuUKzleOZbw6/3kuZn 4TJQF4oWMFS2WwIs3+PDMK8BQS8JF1eliHQJd+uXaDcM3lWkeUh5H+mWN+maVA2YwlDw=; Received: from [49.206.14.41] (helo=steel.lan) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1hCSfF-0002ve-8Y; Fri, 05 Apr 2019 23:00:05 +0530 From: Arun Isaac To: guix-patches@gnu.org Subject: [PATCH] gnu: Add gnucap. Date: Fri, 5 Apr 2019 22:59:51 +0530 Message-Id: <20190405172952.11706-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 139.59.75.54 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: Arun Isaac X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) * gnu/packages/engineering.scm (gnucap): New variable. --- gnu/packages/engineering.scm | 56 +++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index a90ceab0d2..cf308e03f6 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -9,7 +9,7 @@ ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice ;;; Copyright © 2018 Clément Lassieur ;;; Copyright © 2018, 2019 Jonathan Brielmaier -;;; Copyright © 2018 Arun Isaac +;;; Copyright © 2018, 2019 Arun Isaac ;;; Copyright © 2019 Tim Stahel ;;; ;;; This file is part of GNU Guix. @@ -2008,3 +2008,57 @@ editors.") slicing software to x3g files for standalone 3D printing on common 3D printers.") (license license:gpl2+))) + +(define-public gnucap + (package + (name "gnucap") + (version "20171003") + (source + (origin + (method url-fetch) + (uri (string-append "https://git.savannah.gnu.org/cgit/gnucap.git/snapshot/gnucap-" + version ".tar.gz")) + (sha256 + (base32 + "16m09xa685qhj5fqq3bcgakrwnb74xhf5f7rpqkkf9fg8plzbb1g")))) + (build-system gnu-build-system) + (inputs + `(("readline" ,readline))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + ;; Set correct rpath so that gnucap finds libgnucap.so. + (substitute* (list "apps/configure" "lib/configure" + "main/configure" "modelgen/configure") + (("LDFLAGS =") + (string-append "LDFLAGS = -Wl,-rpath=" out "/lib"))) + ;; gnucap uses a hand-written configure script that expects the + ;; --prefix argument to be the first argument passed to it. + (invoke "./configure" (string-append "--prefix=" out))))) + (replace 'check + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (libpath "../lib/O:../apps/O")) + (with-directory-excursion "tests" + ;; Make test return non-zero exit code when a test fails. + (substitute* "test" + (("/bin/sh") "/bin/sh -e") + (("\\|\\| echo \"\\*\\*\\*\\* \\$ii fails \\*\\*\\*\\*\"") "")) + ;; Fix expected plugin search path for test c_attach.1.gc + (substitute* "==out/c_attach.1.gc.out" + (("/usr/local/lib/gnucap") + (string-append libpath ":" out "/lib/gnucap"))) + ;; Set library path so that gnucap can find libgnucap.so + ;; while running the tests. + (setenv "LD_LIBRARY_PATH" libpath) + (invoke "./test" "../main/O/gnucap" "" "test-output" "==out")))))))) + (home-page "https://www.gnu.org/software/gnucap/") + (synopsis "Mixed analog and digital circuit simulator") + (description "GNUcap is a circuit analysis package. It offers a general +purpose circuit simulator and can perform DC and transient analyses, fourier +analysis and AC analysis. The engine is designed to do true mixed-mode +simulation.") + (license license:gpl3+))) -- 2.21.0 ------------=_1554796622-20493-1--