GNU bug report logs - #55129
[PATCH] gnu: Add xschem

Previous Next

Package: guix-patches;

Reported by: Konstantinos Agiannis <agiannis.kon <at> gmail.com>

Date: Tue, 26 Apr 2022 15:43:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55129 in the body.
You can then email your comments to 55129 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#55129; Package guix-patches. (Tue, 26 Apr 2022 15:43:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Konstantinos Agiannis <agiannis.kon <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 26 Apr 2022 15:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Konstantinos Agiannis <agiannis.kon <at> gmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add xschem
Date: Tue, 26 Apr 2022 14:27:51 +0300
---
 gnu/packages/engineering.scm | 46 ++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 1c945eb07b..ec58a92451 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -31,6 +31,7 @@
 ;;; Copyright © 2022 Olivier Dion <olivier.dion <at> polymtl.ca>
 ;;; Copyright © 2022 Peter Polidoro <peter <at> polidoro.io>
 ;;; Copyright © 2022 Malte Frank Gerdes <malte.f.gerdes <at> gmail.com>
+;;; Copyright © 2022 Konstantinos Agiannis <agiannis.kon <at> gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -78,6 +79,7 @@
   #:use-module (gnu packages compression)
   #:use-module (gnu packages cpp)
   #:use-module (gnu packages curl)
+  #:use-module (gnu packages gawk)
   #:use-module (gnu packages dejagnu)
   #:use-module (gnu packages digest)
   #:use-module (gnu packages docbook)
@@ -3659,3 +3661,47 @@ python bindings.  It belongs to the Cura project from Ultimaker.")
     (description "Cura is a slicing software from Ultimaker.  A @emph{slicer}
 generates G-Code for 3D printers.")
     (license license:lgpl3+)))
+
+(define-public xschem
+  (let ((commit "f574539e21b297fa3bcebd52114555e162a5fc56")
+        (revision "1"))
+    (package
+      (name "xschem")
+      (version (git-version "3.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/StefanSchippers/xschem")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "129kj8m3wcf62plp74kml6pqwld4lnfmxy070a82lvj0rfiy77hb"))))
+      (native-inputs (list flex bison pkg-config))
+      (inputs (list gawk
+                    tcl
+                    tk
+                    libxpm
+                    cairo
+                    libxrender
+                    libxcb)) ; Last 3 are optional, but good to have.
+      (build-system gnu-build-system)
+      (arguments
+       `(#:tests? #f
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure)
+           (add-before 'build 'setenv
+             (lambda _
+               (setenv "CC"
+                       ,(cc-for-target))
+               (invoke "./configure"
+                       (string-append "--prefix="
+                                      (assoc-ref %outputs "out"))) #t)))))
+      (synopsis "Hierarchical schematic editor")
+      (description
+       "Xschem is an X11 schematic editor written in C and focused on
+hierarchical and parametric design. It can generate VHDL, Verilog or Spice
+netlists from the drawn schematic, allowing the simulation of the circuit.")
+      (home-page "https://xschem.sourceforge.io/stefan/index.html")
+      (license license:gpl2+))))
-- 
2.30.2





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Mon, 02 May 2022 16:03:02 GMT) Full text and rfc822 format available.

Notification sent to Konstantinos Agiannis <agiannis.kon <at> gmail.com>:
bug acknowledged by developer. (Mon, 02 May 2022 16:03:02 GMT) Full text and rfc822 format available.

Message #10 received at 55129-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Konstantinos Agiannis <agiannis.kon <at> gmail.com>
Cc: 55129-done <at> debbugs.gnu.org
Subject: Re: bug#55129: [PATCH] gnu: Add xschem
Date: Mon, 02 May 2022 18:02:40 +0200
[Message part 1 (text/plain, inline)]
Hi,

Konstantinos Agiannis <agiannis.kon <at> gmail.com> skribis:

> ---
>  gnu/packages/engineering.scm | 46 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 46 insertions(+)

Pushed with a commit log and the cosmetic changes below.

Thanks!

Ludo’.

[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 9d06b77c27..0ef1870a50 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -3692,12 +3692,11 @@ (define-public xschem
          (modify-phases %standard-phases
            (delete 'configure)
            (add-before 'build 'setenv
-             (lambda _
-               (setenv "CC"
-                       ,(cc-for-target))
+             (lambda* (#:key outputs #:allow-other-keys)
+               (setenv "CC" ,(cc-for-target))
                (invoke "./configure"
                        (string-append "--prefix="
-                                      (assoc-ref %outputs "out"))) #t)))))
+                                      (assoc-ref outputs "out"))))))))
       (synopsis "Hierarchical schematic editor")
       (description
        "Xschem is an X11 schematic editor written in C and focused on

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 31 May 2022 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 324 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.