From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cBqFCS3yIGNULAEAbAwnHQ (envelope-from ) for ; Tue, 13 Sep 2022 23:12:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YCRoCS3yIGNWSAEA9RJhRA (envelope-from ) for ; Tue, 13 Sep 2022 23:12:13 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 919652AEDB for ; Tue, 13 Sep 2022 23:12:12 +0200 (CEST) Received: from localhost ([::1]:59692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYDCV-0000TH-FD for larch@yhetil.org; Tue, 13 Sep 2022 17:12:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYDCN-0000SX-Ow for guix-patches@gnu.org; Tue, 13 Sep 2022 17:12:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36083) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYDCN-0008Up-Gr for guix-patches@gnu.org; Tue, 13 Sep 2022 17:12:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYDCM-0002rM-95 for guix-patches@gnu.org; Tue, 13 Sep 2022 17:12:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57774] [PATCH v2] Add qucs-s. References: <875yhrgtrb.fsf@disroot.org> In-Reply-To: <875yhrgtrb.fsf@disroot.org> Resent-From: Garek Dyszel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 13 Sep 2022 21:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57774 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57774@debbugs.gnu.org Received: via spool by 57774-submit@debbugs.gnu.org id=B57774.166310351610979 (code B ref 57774); Tue, 13 Sep 2022 21:12:02 +0000 Received: (at 57774) by debbugs.gnu.org; 13 Sep 2022 21:11:56 +0000 Received: from localhost ([127.0.0.1]:53015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYDCG-0002r1-0t for submit@debbugs.gnu.org; Tue, 13 Sep 2022 17:11:56 -0400 Received: from knopi.disroot.org ([178.21.23.139]:39130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYDCD-0002qq-Mf for 57774@debbugs.gnu.org; Tue, 13 Sep 2022 17:11:54 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id DD3A741A85; Tue, 13 Sep 2022 23:11:51 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id 3H7DD9eWxdHX; Tue, 13 Sep 2022 23:11:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1663103509; bh=K8NmuEdO/MCNrj9SylCnyO0qv5vwZDhIJUhvIXZQJNo=; h=From:To:Cc:Subject:Date; b=BE/l9F2loKTSEY5bSPMPmwf2BtrH1wstlB2j38WRt0EyaWdMowNxpCo9+XZeRzcF4 ODBJACWR5muNEeu0wiQSqJ/mG1id2/IHQi7vDO87pp1a21hzWgUAl/wRLsz8dAad7X yJGr7+4WJ+RHeLoQUYLdL+3/ZJgApivUHmEfeTsUyvjTKhmsxn1tRP20RZdwya45Pe QkKu4tqGqgbRSum8HIzzoqWJWGKuj+jm+ntxj6Vw+Tt6EiiyF7yDknFs/mHj0AMJsJ BiZ2+wNiz/d+IPHQ5cPpQ+BqP+T1iLGvtt0s0gXtAWacO33K7B08Dp3P+x5eYhFL6/ OLB2AOZ0LEqrA== Date: Tue, 13 Sep 2022 21:11:40 +0000 Message-ID: <87fsgvm12r.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Garek Dyszel X-ACL-Warn: , Garek Dyszel via Guix-patches From: Garek Dyszel via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663103532; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=c4aMqFtwxTqlhizG4343RpL5HrF2T/kuVPtz2ln9DqI=; b=Pm+/i923DP+lecAhSVqsSMGkqEwNnKjs/prbE1v8njPef8WUCMJ4eyl6YGzCvE+iEJbpIB /2clSjFBouAkBTtiT5SzFALaPx6nNLUQrVSllXk7+U5N1mzSRTSRQsn9n4epW2MhGO0Jky 4+Ik/TiRaLv1GTaO26KfCKA10o5Fnk/5XPg/2Y3qf8ddDe1D4staPtpzGjRMvvxg8xSKfy 5nQECHc0Gesi6+cvbvtlg9w5tG7aSN5U8kBHTKSrAOoCWRq/fafEnpeBu3SXa3zYZ7EYzA k7oEjfI/vpsQUmP3h0ZieCjcvPDmM2p3lfRwMVmaib1AKyVh7SIIch6JRBBaeA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663103532; a=rsa-sha256; cv=none; b=KdG1aATXn8fD439HqYcSMyIp2J3z8QIHBzqd3bHc8s+2yrz8V8tl26q+mkj1cQH5tRCo8V Z00Al7zIVsyxpyZoWRbecMkCjKTX53mls+FsHLH17o9Qhk9FxykGLg2ykyeIXj59rtGKC/ fb/KmzDclhyigNz8Xua2WfYlpz0YdV9TFySSMM1C+poMWnZQbA5YSNSQlZWQFvUqqwXnAu bXDah0sGoOYLPWRbiZb0lGMGSWZPFF1y2KFRkz7lUsKAJXzNc659R5lLpHSOwKbpiJ81PX kX7nc7lkdJAfkVd1qhp9XGGpfyH3oM49BayS4iI5EypfDr09MOMsnz4cF8mcHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="BE/l9F2l"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="BE/l9F2l"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 919652AEDB X-Spam-Score: -2.81 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9qHNC00+Au2G ( and Artyom, I synthesized my last version of this package with Artyom's version in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D56768. Starting over from that version, more or less, automatically fixed the following issues: 1. (outputs '("out")) removed 2. (propagated-inputs (list ngspice)) removed 3. (arguments `( --> (arguments (list : style changed Further changes: 1. Overly long description shortened by blending ('s suggestion and Artyom'= s version. 2. Regexps in the (substitute*) procedure now correctly detect and replace = the lines where ngspice and octave are referenced in qucs/main.cpp.=20 Let me know what you think. Thanks, Garek * gnu/packages/engineering.scm (qucs-s): New variable. --- gnu/packages/engineering.scm | 60 ++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index a8b9f1e786..e759134ae4 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -36,6 +36,7 @@ ;;; Copyright =C2=A9 2022 Artyom V. Poptsov ;;; Copyright =C2=A9 2022 Maxim Cournoyer ;;; Copyright =C2=A9 2022 Felix Gruber +;;; Copyright =C2=A9 2022 Garek Dyszel ;;; ;;; This file is part of GNU Guix. ;;; @@ -2006,6 +2007,65 @@ (define-public xyce-parallel ,@(alist-delete "trilinos" (package-inputs xyce-serial)))))) =20 +(define-public qucs-s + (package + (name "qucs-s") + (version "0.0.24") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ra3xdh/qucs_s") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1lbkaw0grw9w7d37z5dbhaqi8p57cpf9yp071zp6xrairkgimdx8")))) + (build-system qt-build-system) + (native-inputs (list qttools-5)) + (inputs (list qtbase-5 qtscript qtsvg-5 ngspice octave)) + (arguments + (list #:tests? #f ;no tests + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'patch + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "qucs/main.cpp" + ;; Use the user's configuration files in + ;; ~/.config/qucs/qucs_s.conf for the + ;; locations of ngspice and octave. If + ;; the locations are not given in + ;; ~/.config/qucs/qucs_s.conf, use the + ;; locations provided by Guix. + (("QString ngsp_exe =3D \ +QCoreApplication::applicationDirPath\\(\\) \\+") + (string-append + "QString ngsp_exe =3D \"" + (search-input-file inputs "/bin/ngspice") + "\";")) + (("QDir::separator\\(\\) \\+ \"ngspice\" \\+= \ +executableSuffix;") "") + (("else QucsSettings.OctaveExecutable =3D \"o= ctave\" \ +\\+ QString\\(executableSuffix\\);") + (string-append + "else QucsSettings.OctaveExecutable =3D \"" + (search-input-file inputs "/bin/octave") + "\";")))))))) + (synopsis "GUI for different circuit simulation kernels") + (description + "@code{Qucs-S} provides a fork of the Qucs circuit simulator, +which is used as a graphical user interface for a number of popular +circuit simulation engines. The package contains libraries for +schematic capture, visualization and components. The following +simulation kernels are supported: + +@itemize +@item Ngspice (recommended) +@item Xyce +@item SpiceOpus +@item Qucsator (non-spice) +@end itemize") + (home-page "https://ra3xdh.github.io/") + (license license:gpl2+))) + (define-public freehdl (package (name "freehdl") --=20 2.37.2