From 981000bd3bd15c138f71cb8eb82f09b531e4c5cd Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Sun, 27 Jul 2025 12:56:29 +0200 Subject: [PATCH] gnu: pcb-rnd: Move to electronics. * gnu/packages/engineering.scm (pcb-rnd): Move from here ... * gnu/packages/electronics.scm: ... to here. Change-Id: I7b8d84e1dcffd26e6c4833eb51310167c5c5fa4a Signed-off-by: Andreas Enge --- gnu/packages/electronics.scm | 35 +++++++++++++++++++++++++++++++++++ gnu/packages/engineering.scm | 31 ------------------------------- 2 files changed, 35 insertions(+), 31 deletions(-) diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index b3a1bffda9c..4c90a4877d2 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -9,6 +9,8 @@ ;;; Copyright © 2025 Cayetano Santos ;;; Copyright © 2025 Sharlatan Hellseher ;;; Copyright © 2022 Konstantinos Agiannis +;;; Copyright © 2018-2021 Tobias Geerinckx-Rice +;;; Copyright © 2015-2025 Ricardo Wurmus ;;; ;;; This file is part of GNU Guix. ;;; @@ -28,6 +30,7 @@ (define-module (gnu packages electronics) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system cmake) + #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system pyproject) #:use-module (guix download) @@ -46,6 +49,7 @@ #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages documentation) + #:use-module (gnu packages engineering) #:use-module (gnu packages embedded) #:use-module (gnu packages flex) #:use-module (gnu packages fontutils) @@ -427,6 +431,37 @@ such as: @end itemize") (license license:expat))) +(define-public pcb-rnd + (package + (name "pcb-rnd") + (version "3.1.7b") + (source (origin + (method url-fetch) + (uri (string-append "http://repo.hu/projects/pcb-rnd/" + "releases/pcb-rnd-" version ".tar.gz")) + (sha256 + (base32 + "1djsa0w53l6nvhwv28rlhpva55ir9n3xdvjgnjj8fgvcmrqlzrsl")))) + (build-system glib-or-gtk-build-system) + (arguments + (list + #:test-target "test" + #:phases + #~(modify-phases %standard-phases + (replace 'configure + ;; The configure script doesn't tolerate most of our configure + ;; flags. + (lambda _ + (setenv "CC" #$(cc-for-target)) + (setenv "LIBRND_PREFIX" #$(this-package-input "librnd")) + (invoke "./configure" (string-append "--prefix=" #$output))))))) + (inputs (list librnd)) + (home-page "http://repo.hu/projects/pcb-rnd/") + (synopsis "Modular layout editor") + (description "@code{Pcb-rnd} is a @acronym{Printed Circuit Board} layout +editor, part of the RiNgDove EDA suite.") + (license license:gpl2+))) + (define-public prjtrellis ;; The last release is 2 years old; use the latest commit for now. (let ((commit "898329dddf6ce6463299973081f109d645b9c55f") diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index c7f70fec456..e8735a89b0c 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -654,37 +654,6 @@ 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") - (version "3.1.7b") - (source (origin - (method url-fetch) - (uri (string-append "http://repo.hu/projects/pcb-rnd/" - "releases/pcb-rnd-" version ".tar.gz")) - (sha256 - (base32 - "1djsa0w53l6nvhwv28rlhpva55ir9n3xdvjgnjj8fgvcmrqlzrsl")))) - (build-system glib-or-gtk-build-system) - (arguments - (list - #:test-target "test" - #:phases - #~(modify-phases %standard-phases - (replace 'configure - ;; The configure script doesn't tolerate most of our configure - ;; flags. - (lambda _ - (setenv "CC" #$(cc-for-target)) - (setenv "LIBRND_PREFIX" #$(this-package-input "librnd")) - (invoke "./configure" (string-append "--prefix=" #$output))))))) - (inputs (list librnd)) - (home-page "http://repo.hu/projects/pcb-rnd/") - (synopsis "Modular layout editor") - (description "@code{Pcb-rnd} is a @acronym{Printed Circuit Board} layout -editor, part of the RiNgDove EDA suite.") - (license license:gpl2+))) - (define-public fastcap (package (name "fastcap")