From patchwork Tue Sep 13 15:48:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Garek Dyszel X-Patchwork-Id: 42601 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 05C7127BBEA; Tue, 13 Sep 2022 16:50:48 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 67CC227BBE9 for ; Tue, 13 Sep 2022 16:50:47 +0100 (BST) Received: from localhost ([::1]:32918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oY8BR-0000AF-Hp for patchwork@mira.cbaines.net; Tue, 13 Sep 2022 11:50:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY8An-00007p-6L for guix-patches@gnu.org; Tue, 13 Sep 2022 11:50:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oY8Ak-00064i-1u for guix-patches@gnu.org; Tue, 13 Sep 2022 11:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oY8Aj-0006uu-Td for guix-patches@gnu.org; Tue, 13 Sep 2022 11:50:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57774] [PATCH] Add qucs-s. Resent-From: Garek Dyszel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 13 Sep 2022 15:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57774 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57774@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166308414226439 (code B ref -1); Tue, 13 Sep 2022 15:50:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Sep 2022 15:49:02 +0000 Received: from localhost ([127.0.0.1]:52538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY89l-0006sC-Hv for submit@debbugs.gnu.org; Tue, 13 Sep 2022 11:49:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:55806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY89j-0006rs-8k for submit@debbugs.gnu.org; Tue, 13 Sep 2022 11:48:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY89j-0007nQ-3V for guix-patches@gnu.org; Tue, 13 Sep 2022 11:48:59 -0400 Received: from knopi.disroot.org ([178.21.23.139]:55734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY89g-0005o7-M1 for guix-patches@gnu.org; Tue, 13 Sep 2022 11:48:58 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 88FC240056 for ; Tue, 13 Sep 2022 17:48:52 +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 ESMTP id aDqDolka-o4S for ; Tue, 13 Sep 2022 17:48:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1663084131; bh=Ol5CuMYBFWWZwS/TmMc+Y8/T5jV+lnQ/bkNT47mtMug=; h=From:To:Subject:Date; b=UuaP8EhE2yORXVyeEPcryEyfE4EMu66vfsiCFUkzZC9yczGHG+fyIRbO9ApZnUVRI V3SlQ2BvNt1hxMPd24XgP9fU/Jf7YAfN2/tzmvZDnT4BCUIM/bKcNeW25mBfoHRwFK hZyXdRJP7QR/iZoUD+8lvh5YclwIftjngYviUg67UH/4IYkQf33XpY8EfkIORiKrZa 5sYPbjp3UIoXFMpTWJpg1sa3T1d3N+XP3i7Pr2pndKfBVi9vp+XxMBTriRupZwBTun uW02MciIVrIElqaAPwumDIaD+rJkV9CS7XlonX6+YMTT6f9w1t3JTF5yKyQ/PDcrGB fwP96UwqMnWMw== Date: Tue, 13 Sep 2022 11:48:40 -0400 Message-ID: <875yhrgtrb.fsf@disroot.org> Mime-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=garekdyszel@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Garek Dyszel X-ACL-Warn: , Garek Dyszel via Guix-patches X-Patchwork-Original-From: Garek Dyszel via Guix-patches via From: Garek Dyszel X-getmail-retrieved-from-mailbox: Patches * gnu/packages/engineering.scm (qucs-s): New variable. --- gnu/packages/engineering.scm | 74 ++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index a8b9f1e786..376cb7e8c1 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -2006,6 +2006,80 @@ (define-public xyce-parallel ,@(alist-delete "trilinos" (package-inputs xyce-serial)))))) +(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) + (outputs '("out")) + (inputs (list qtbase-5 qtscript qtsvg-5)) + (native-inputs (list qttools-5)) + (propagated-inputs (list ngspice)) + (arguments + `(;; There exists no "tests" target in the Makefile generated by + ;; CMake. + ;; No other tests provided. + #:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'install 'get-ngspice-path + (lambda* (#:key inputs #:allow-other-keys) + ;; Adjust two lines in the ~/.config/qucs/qucs_s.conf + ;; file. + (mkdir-p "etc/xdg/qucs_s") + (with-directory-excursion "etc/xdg/qucs_s" + (invoke "touch" "qucs_s.conf") + ;; Specify where the ngspice executable is located. + (invoke "sed" "-i" + (string-append "1iNgspiceExecutable=/gnu/store/" + (assoc-ref inputs "ngspice") + "/bin/ngspice") "qucs_s.conf") + ;; Set the spice4qucs working directory to + ;; ~/.qucs/spice4qucs. + ;; (The default is /spice4qucs, which is rather + ;; dangerous.) + (invoke "sed" "-i" "2iS4Q_workdir=~/.qucs/spice4qucs" + "qucs_s.conf"))))))) + + (home-page "https://ra3xdh.github.io") + (synopsis "QUCS RF circuit simulator with SPICE") + (description + "Qucs-S is a spin-off of the Qucs cross-platform circuit +simulator. The \"S\" letter indicates SPICE. The purpose of the Qucs-S +subproject is to use free SPICE circuit simulation kernels with the +Qucs GUI. It merges the power of SPICE and the simplicity of the Qucs +GUI. Qucs intentionally uses its own SPICE incompatible simulation +kernel Qucsator. It has advanced RF and AC domain simulation features, +but most of the existing industrial SPICE models are incompatible with +it. Qucs-S is not a simulator by itself, but it requires to use a +simulation backend with it. The schematic document format of Qucs and +Qucs-S are fully compatible. Qucs-S can be used with the following +simulation kernels: +@itemize +@item Ngspice is recommended to use. Ngspice is powerful +mixed-level/mixed-signal circuit simulator. The most of industrial +SPICE models are compatible with Ngspice. It has an excellent +performance for time-domain simulation of switching circuits and +powerful postprocessor. +@item XYCE is a new SPICE-compatible circuit simulator written by +Sandia from the scratch. It supports basic SPICE simulation types and +has an advanced RF simulation features such as harmonic balance +simulation. +@item SpiceOpus is developed by the Faculty of Electrical Engineering +of the Ljubljana University. It is based on the SPICE-3f5 code. +@item Backward compatible with Qucsator. +@end itemize") + (license license:gpl2))) + (define-public freehdl (package (name "freehdl")