From 452607ffc7b0117e494c4acf28dfeae92e5217dd Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 21 Jan 2026 20:27:29 -0300 Subject: [PATCH] gnu: pcb: Migrate to electronics. * gnu/packages/engineering.scm (pcb): Move from here ... * gnu/packages/electronics.scm: ... to here. Use module (gnu packages imagemagick). Change-Id: I682f8ba841a0cce74a8f74a7d9002762e752ae03 --- gnu/packages/electronics.scm | 57 ++++++++++++++++++++++++++++++++++++ gnu/packages/engineering.scm | 56 ----------------------------------- 2 files changed, 57 insertions(+), 56 deletions(-) diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index 7fc49aa8bd8..1f06ccd8a6f 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -94,6 +94,7 @@ #:use-module (gnu packages graphviz) #:use-module (gnu packages gtk) #:use-module (gnu packages image) + #:use-module (gnu packages imagemagick) #:use-module (gnu packages java) #:use-module (gnu packages libedit) #:use-module (gnu packages libffi) @@ -1692,6 +1693,62 @@ such as: @end itemize") (license license:expat))) +(define-public pcb + (package + (name "pcb") + (version "4.3.0") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/pcb/pcb/pcb-" version + "/pcb-" version ".tar.gz")) + (sha256 + (base32 + "0ppv8cblw0h70laly4zp8gmbxkbzzhbbjgw13pssgaw4mx32z1df")))) + (build-system gnu-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'convert-encoding + (lambda _ + (for-each + (lambda (name) + (invoke "iconv" "-f" "LATIN1" "-t" "UTF-8" name "-o" name)) + '("src/pcb-menu.res.in" + "src/pcb-menu.res.h")))) + (add-before 'check 'pre-check + (lambda _ + (system "Xvfb :1 &") + (setenv "DISPLAY" ":1")))))) + (inputs + (list dbus + mesa + glu + gd + gtk+-2 + gtkglext + shared-mime-info + tk)) + (native-inputs + (list bison + desktop-file-utils + flex + intltool + pkg-config + ;; For tests + imagemagick + gerbv + ghostscript + xorg-server-for-tests)) + (home-page "http://pcb.geda-project.org/") + (synopsis "Design printed circuit board layouts") + (description + "GNU PCB is an interactive tool for editing printed circuit board +layouts. It features a rats-nest implementation, schematic/netlist import, +and design rule checking. It also includes an autorouter and a trace +optimizer; and it can produce photorealistic and design review images.") + (license license:gpl2+))) + (define-public pcb-rnd (package (name "pcb-rnd") diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 3c383c87f3c..56868bff15c 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -504,62 +504,6 @@ and digital simulation, and printed circuit board (PCB) layout, and many other features.") (license license:gpl2+))) -(define-public pcb - (package - (name "pcb") - (version "4.3.0") - (source (origin - (method url-fetch) - (uri (string-append "mirror://sourceforge/pcb/pcb/pcb-" version - "/pcb-" version ".tar.gz")) - (sha256 - (base32 - "0ppv8cblw0h70laly4zp8gmbxkbzzhbbjgw13pssgaw4mx32z1df")))) - (build-system gnu-build-system) - (arguments - (list - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'convert-encoding - (lambda _ - (for-each - (lambda (name) - (invoke "iconv" "-f" "LATIN1" "-t" "UTF-8" name "-o" name)) - '("src/pcb-menu.res.in" - "src/pcb-menu.res.h")))) - (add-before 'check 'pre-check - (lambda _ - (system "Xvfb :1 &") - (setenv "DISPLAY" ":1")))))) - (inputs - (list dbus - mesa - glu - gd - gtk+-2 - gtkglext - shared-mime-info - tk)) - (native-inputs - (list bison - desktop-file-utils - flex - intltool - pkg-config - ;; For tests - imagemagick - gerbv - ghostscript - xorg-server-for-tests)) - (home-page "http://pcb.geda-project.org/") - (synopsis "Design printed circuit board layouts") - (description - "GNU PCB is an interactive tool for editing printed circuit board -layouts. It features a rats-nest implementation, schematic/netlist import, -and design rule checking. It also includes an autorouter and a trace -optimizer; and it can produce photorealistic and design review images.") - (license license:gpl2+))) - (define-public fastcap (package (name "fastcap")