gnu: lepton-eda: Remove dependency on geda tools.

* gnu/packages/engineering.scm (lepton-eda)[inherit]: Remove.
[build-system]: Set to gnu-build-system.
[arguments]<#:configure-flags>: Remove pcb references; add
--enable-guild and --enable-contrib.
[native-inputs]: Copy list from gead-gaf.
[inputs]: Remove m4 and pcb.
[synopsys, license]: Add them.

Change-Id: I0e1f01534d1eea1acc2f4b7cd6eac92f462ab834
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Cayetano Santos 2025-08-01 21:04:37 +02:00 committed by Andreas Enge
parent ed042737f9
commit 0902c70eef
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -427,39 +427,39 @@ utilities.")
(license license:gpl2+))) (license license:gpl2+)))
(define-public lepton-eda (define-public lepton-eda
;; This is a fork of gEDA/gaf started in late 2016. One of its goal is to
;; keep and to extend Guile support.
(package (package
(inherit geda-gaf)
(name "lepton-eda") (name "lepton-eda")
(version "1.9.18-20220529") (version "1.9.18-20220529")
(home-page "https://github.com/lepton-eda/lepton-eda")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url home-page) (url "https://github.com/lepton-eda/lepton-eda/")
(commit version))) (commit version)))
(sha256 (sha256
(base32 (base32
"06plrcab3s2rpyf0qv2gzc1yp33627xi8105niasgixckk6glnc2")) "06plrcab3s2rpyf0qv2gzc1yp33627xi8105niasgixckk6glnc2"))
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(build-system gnu-build-system)
(arguments (arguments
(list (list
#:configure-flags #:configure-flags
#~(let ((pcb #$(this-package-input "pcb"))) #~(list
;; When running "make", the POT files are built with the build time as ;; When running "make", the POT files are built with the build time as
;; their "POT-Creation-Date". Later on, "make" notices that .pot ;; their "POT-Creation-Date". Later on, "make" notices that .pot
;; files were updated and goes on to run "msgmerge"; as a result, the ;; files were updated and goes on to run "msgmerge"; as a result, the
;; non-deterministic POT-Creation-Date finds its way into .po files, ;; non-deterministic POT-Creation-Date finds its way into .po files,
;; and then in .gmo files. To avoid that, simply make sure 'msgmerge' ;; and then in .gmo files. To avoid that, simply make sure 'msgmerge'
;; never runs. See <https://bugs.debian.org/792687>. ;; never runs. See <https://bugs.debian.org/792687>.
(list "ac_cv_path_MSGMERGE=true" "--with-gtk3" "ac_cv_path_MSGMERGE=true"
(string-append "--with-pcb-datadir=" pcb ;; FIXME: pcb package is broken at this point; it might be replaced
"/share") ;; by pcb-rnd or use pcb again when fixed.
(string-append "--with-pcb-lib-path=" pcb ;; (string-append "--with-pcb-datadir=" pcb "/share")
"/share/pcb/pcblib-newlib:" ;; (string-append "--with-pcb-lib-path=" pcb
pcb "/share/pcb/newlib") ;; "/share/pcb/pcblib-newlib:" pcb "/share/pcb/newlib")
"CFLAGS=-fcommon")) "--with-gtk3"
"CFLAGS=-fcommon"
"--enable-guild"
"--enable-contrib")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'fix-tests (add-after 'unpack 'fix-tests
@ -540,24 +540,27 @@ utilities.")
(unsetenv "LD_LIBRARY_PATH") (unsetenv "LD_LIBRARY_PATH")
(invoke "make" "precompile")))))) (invoke "make" "precompile"))))))
(native-inputs (native-inputs
(modify-inputs (package-native-inputs geda-gaf) (list autoconf
(prepend autoconf automake
automake desktop-file-utils
desktop-file-utils flex
libtool gettext-minimal
gettext-minimal groff
texinfo gawk
groff libtool
which))) pkg-config
m4
perl
texinfo))
(inputs (inputs
(list glib (list glib
gtk+ gtk+
gtksheet gtksheet
guile-3.0 guile-3.0
guile-readline guile-readline
shared-mime-info shared-mime-info))
m4 (home-page "https://lepton-eda.github.io/")
pcb)) (synopsis "GPL Electronic Design Automation")
(description (description
"Lepton EDA ia an @dfn{electronic design automation} (EDA) tool set "Lepton EDA ia an @dfn{electronic design automation} (EDA) tool set
forked from gEDA/gaf in late 2016. EDA tools are used for electrical circuit forked from gEDA/gaf in late 2016. EDA tools are used for electrical circuit
@ -565,7 +568,8 @@ design, schematic capture, simulation, prototyping, and production. Lepton
EDA includes tools for schematic capture, attribute management, bill of EDA includes tools for schematic capture, attribute management, bill of
materials (BOM) generation, netlisting into over 20 netlist formats, analog materials (BOM) generation, netlisting into over 20 netlist formats, analog
and digital simulation, and printed circuit board (PCB) layout, and many other and digital simulation, and printed circuit board (PCB) layout, and many other
features."))) features.")
(license license:gpl2+)))
(define-public pcb (define-public pcb
(package (package